[rkward-cvs] rkward/rkward main.cpp,1.17,1.18 rkward.cpp,1.86,1.87
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Sun Sep 11 22:06:33 UTC 2005
Update of /cvsroot/rkward/rkward/rkward
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27570/rkward
Modified Files:
main.cpp rkward.cpp
Log Message:
Made standard-menus available to place plugins in. Set default debug level to DL_WARNING
Index: rkward.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/rkward.cpp,v
retrieving revision 1.86
retrieving revision 1.87
diff -C2 -d -r1.86 -r1.87
*** rkward.cpp 11 Sep 2005 18:53:04 -0000 1.86
--- rkward.cpp 11 Sep 2005 22:06:31 -0000 1.87
***************
*** 167,171 ****
--- 167,188 ----
startR ();
+
+ // create handle for menu bar and register standard menus
menu_list = new RKMenuList (menuBar ());
+ QMenuItem* item = menuBar ()->findItem (menuBar ()->idAt (0));
+ if (item && item->popup ()) menu_list->registerMenu (item->popup (), "file");
+ item = menuBar ()->findItem (menuBar ()->idAt (1));
+ if (item && item->popup ()) menu_list->registerMenu (item->popup (), "edit");
+ item = menuBar ()->findItem (menuBar ()->idAt (2));
+ if (item && item->popup ()) menu_list->registerMenu (item->popup (), "workspace");
+ item = menuBar ()->findItem (menuBar ()->idAt (3));
+ if (item && item->popup ()) menu_list->registerMenu (item->popup (), "output");
+ item = menuBar ()->findItem (menuBar ()->idAt (4));
+ if (item && item->popup ()) menu_list->registerMenu (item->popup (), "run");
+ item = menuBar ()->findItem (menuBar ()->idAt (5));
+ if (item && item->popup ()) menu_list->registerMenu (item->popup (), "settings");
+ item = menuBar ()->findItem (menuBar ()->idAt (6));
+ if (item && item->popup ()) menu_list->registerMenu (item->popup (), "help");
+
initPlugins ();
Index: main.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/main.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** main.cpp 8 May 2005 16:54:29 -0000 1.17
--- main.cpp 11 Sep 2005 22:06:31 -0000 1.18
***************
*** 78,82 ****
{
{ "+[File]", I18N_NOOP ("file to open"), 0 },
! { "debug-level <level>", I18N_NOOP ("Verbosity of debug messages (0-5)"), "3"},
{ "debug-flags <flags>", I18N_NOOP ("Mask for components to debug as a binary number (see debug.h)"), "1111111111111" },
{ 0, 0, 0 }
--- 78,82 ----
{
{ "+[File]", I18N_NOOP ("file to open"), 0 },
! { "debug-level <level>", I18N_NOOP ("Verbosity of debug messages (0-5)"), "2"},
{ "debug-flags <flags>", I18N_NOOP ("Mask for components to debug as a binary number (see debug.h)"), "1111111111111" },
{ 0, 0, 0 }
More information about the rkward-tracker
mailing list