finish menu code. thanks brad roberts <braddr@puremagic.com>

git-svn-id: svn://10.0.0.236/trunk@17225 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pavlov%pavlov.net 1999-01-06 02:54:04 +00:00
parent cf9125f987
commit e63ac30622

View File

@ -37,53 +37,75 @@ void gtk_ifactory_cb (gpointer callback_data,
GtkItemFactoryEntry menu_items[] =
{
{ "/_File", nsnull, nsnull, 0, "<Branch>" },
{ "/File/_New Window", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_WINDOW_OPEN, nsnull },
{ "/File/_Open...", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_FILE_OPEN, nsnull },
{ "/File/_Samples", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Branch>" },
{ "/File/Samples/demo #0", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO0, nsnull },
{ "/File/Samples/demo #1", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO1, nsnull },
{ "/File/Samples/demo #2", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO2, nsnull },
{ "/File/Samples/demo #3", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO3, nsnull },
{ "/File/Samples/demo #4", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO4, nsnull },
{ "/File/Samples/demo #5", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO5, nsnull },
{ "/File/Samples/demo #6", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO6, nsnull },
{ "/File/Samples/demo #7", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO7, nsnull },
{ "/File/Samples/demo #8", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO8, nsnull },
{ "/File/Samples/demo #9", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO9, nsnull },
{ "/File/Samples/demo #10", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO10, nsnull },
{ "/File/Samples/Top 100 Sites", nsnull, (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/_File", nsnull, nsnull, 0, "<Branch>" },
{ "/File/_New Window", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_WINDOW_OPEN, nsnull },
{ "/File/_Open...", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_FILE_OPEN, nsnull },
{ "/File/_Samples", nsnull, nsnull, 0, "<Branch>" },
{ "/File/Samples/demo #0", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO0, nsnull },
{ "/File/Samples/demo #1", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO1, nsnull },
{ "/File/Samples/demo #2", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO2, nsnull },
{ "/File/Samples/demo #3", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO3, nsnull },
{ "/File/Samples/demo #4", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO4, nsnull },
{ "/File/Samples/demo #5", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO5, nsnull },
{ "/File/Samples/demo #6", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO6, nsnull },
{ "/File/Samples/demo #7", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO7, nsnull },
{ "/File/Samples/demo #8", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO8, nsnull },
{ "/File/Samples/demo #9", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO9, nsnull },
{ "/File/Samples/demo #10", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_DEMO10, nsnull },
{ "/File/_Test Sites", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_TOP100, nsnull },
{ "/File/Test _Widgets", nsnull, nsnull, 0, "<Branch>" },
{ "/File/Test Widgets/_Tree View", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_TREEVIEW, nsnull },
// { "/File/Test Widgets/Tool_bar Test", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_TOOLBARDEMO, nsnull },
{ "/File/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/File/Print _Preview", nsnull, nsnull, 0, "<Branch>" },
{ "/File/Print Preview/One Column", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_ONE_COLUMN, nsnull },
{ "/File/Print Preview/Two Column", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_TWO_COLUMN, nsnull },
{ "/File/Print Preview/Three Column", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_THREE_COLUMN, nsnull },
{ "/File/Print", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_PRINT, nsnull },
{ "/File/Print Setup", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_PRINT_SETUP, nsnull },
{ "/File/sep2", nsnull, nsnull, 0, "<Separator>" },
{ "/File/_Exit", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_EXIT, nsnull },
{ "/_Edit", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Branch>" },
{ "/Edit/Cut", "T", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_CUT, nsnull },
{ "/Edit/Copy", "C", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_COPY, nsnull },
{ "/Edit/Paste", "P", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_PASTE, nsnull },
{ "/Edit/sep1", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Separator>" },
{ "/Edit/Select All", "A", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_SELECTALL, nsnull },
{ "/Edit/sep1", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Separator>" },
{ "/Edit/Find in Page", "F", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_FINDINPAGE, nsnull },
{ "/_Edit", nsnull, nsnull, 0, "<Branch>" },
{ "/Edit/Cu_t", "T", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_CUT, nsnull },
{ "/Edit/_Copy", "C", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_COPY, nsnull },
{ "/Edit/_Paste", "P", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_PASTE, nsnull },
{ "/Edit/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Edit/Select All", "A", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_SELECTALL, nsnull },
{ "/Edit/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Edit/Find in Page", "F", (GIFC)gtk_ifactory_cb, VIEWER_EDIT_FINDINPAGE, nsnull },
{ "/_Debug", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Branch>" },
{ "/Debug/Visual Debugging", "V", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/Reflow Test", "R", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/sep1", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Separator>" },
{ "/Debug/Dump Content", "C", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/Dump Frames", "F", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/Dump Views", "V", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/sep1", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Separator>" },
{ "/Debug/Dump Style Sheets", "S", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/Dump Style Contexts", "T", (GIFC)gtk_ifactory_cb, 0, nsnull},
{ "/Debug/sep1", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Separator>" },
{ "/Debug/Show Content Size", "z", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/Show Frame Size", "a", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/Show Style Size", "y", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/sep1", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Separator>" },
{ "/Debug/Debug Save", "v", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/Debug Toggle Selection", "q", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/sep1", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Separator>" },
{ "/Debug/Debug Debug Robot", "R", (GIFC)gtk_ifactory_cb, 0, nsnull },
{ "/Debug/sep1", nsnull, (GIFC)gtk_ifactory_cb, 0, "<Separator>" },
{ "/Debug/Show Content Quality", ".", (GIFC)gtk_ifactory_cb, 0, nsnull },
#ifdef _DEBUG
{ "/_Debug", nsnull, nsnull, 0, "<Branch>" },
{ "/Debug/_Visual Debugging", "V", (GIFC)gtk_ifactory_cb, VIEWER_VISUAL_DEBUGGING,nsnull },
{ "/Debug/_Reflow Test", "R", (GIFC)gtk_ifactory_cb, VIEWER_REFLOW_TESTING, nsnull },
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Debug/Dump _Content", "C", (GIFC)gtk_ifactory_cb, VIEWER_DUMP_CONTENTS, nsnull },
{ "/Debug/Dump _Frames", "F", (GIFC)gtk_ifactory_cb, VIEWER_DUMP_FRAMES, nsnull },
{ "/Debug/Dump _Views", "V", (GIFC)gtk_ifactory_cb, VIEWER_DUMP_VIEWS, nsnull },
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Debug/Dump _Style Sheets", "S", (GIFC)gtk_ifactory_cb, VIEWER_DUMP_STYLE_SHEETS, nsnull },
{ "/Debug/Dump _Style Contexts", "T", (GIFC)gtk_ifactory_cb, VIEWER_DUMP_STYLE_CONTEXTS, nsnull},
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Debug/Show Content Size", "z", (GIFC)gtk_ifactory_cb, VIEWER_SHOW_CONTENT_SIZE,nsnull },
{ "/Debug/Show Frame Size", "a", (GIFC)gtk_ifactory_cb, VIEWER_SHOW_FRAME_SIZE, nsnull },
{ "/Debug/Show Style Size", "y", (GIFC)gtk_ifactory_cb, VIEWER_SHOW_STYLE_SIZE, nsnull },
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Debug/Debug Save", "v", (GIFC)gtk_ifactory_cb, VIEWER_DEBUGSAVE, nsnull },
{ "/Debug/Debug Toggle Selection", "q", (GIFC)gtk_ifactory_cb, VIEWER_TOGGLE_SELECTION,nsnull },
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Debug/Debug Debug Robot", "R", (GIFC)gtk_ifactory_cb, VIEWER_DEBUGROBOT, nsnull },
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Debug/Show Content Quality", ".", (GIFC)gtk_ifactory_cb, VIEWER_SHOW_CONTENT_QUALITY, nsnull },
{ "/Debug/sep1", nsnull, nsnull, 0, "<Separator>" },
{ "/Debug/_Compatibility", nsnull, nsnull, 0, "<Separator>" },
{ "/Debug/Compatibility/Nav Quirks", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_NAV_QUIRKS_MODE, nsnull },
{ "/Debug/Compatibility/Standard", nsnull, (GIFC)gtk_ifactory_cb, VIEWER_STANDARD_MODE, nsnull },
#endif
{ "/_Tools/", nsnull, nsnull, 0, "<Branch>" },
{ "/Tools/_JavaScript Console", nsnull, (GIFC)gtk_ifactory_cb, JS_CONSOLE, nsnull },
{ "/Tools/_Editor Mode", nsnull, (GIFC)gtk_ifactory_cb, EDITOR_MODE, nsnull }
};
void CreateViewerMenus(GtkWidget *aParent, gpointer data)