Logo Search packages:      
Sourcecode: valknut version File versions  Download package

void DCGuiApp::initMenuBar (  )  [private]

initMenuBar creates the menu_bar and inserts the menuitems

Definition at line 489 of file dcgui.cpp.

References actionAwayModeAway, actionAwayModeNormal, actionHubSearch, actionServerList, actionSpy, actionTransferList, actionUsers, fileDefaultDldGroup, fileFileListBrowser, fileFileListBrowserLocal, fileOptions, fileQuit, fileReloadPlugins, helpAboutApp, helpManualApp, helpNewVersionApp, helpSupportApp, pActionMenu, pAwayMenu, pFileMenu, pHelpMenu, pQuickOptionsMenu, pViewMenu, pWindowMenu, viewDock, viewStatusBar, viewTabBar, viewToolBar, and windowMenuAboutToShow().

Referenced by DCGuiApp().

{
      ///////////////////////////////////////////////////////////////////
      // MENUBAR

      ///////////////////////////////////////////////////////////////////
      // menuBar entry pFileMenu
      pFileMenu=new QPopupMenu();
      fileOptions->addTo(pFileMenu);
      pQuickOptionsMenu=new QPopupMenu();
      fileDefaultDldGroup->addTo(pQuickOptionsMenu);
      pFileMenu->insertItem(tr("Quick Options"),pQuickOptionsMenu);
      pFileMenu->insertSeparator();
      fileFileListBrowser->addTo(pFileMenu);
      fileFileListBrowserLocal->addTo(pFileMenu);
      pFileMenu->insertSeparator();
      fileReloadPlugins->addTo(pFileMenu);
      pFileMenu->insertSeparator();
      fileQuit->addTo(pFileMenu);

      ///////////////////////////////////////////////////////////////////
      // menuBar entry viewMenu
      pViewMenu=new QPopupMenu();
      pViewMenu->setCheckable(true);
      viewTabBar->addTo(pViewMenu);
      viewToolBar->addTo(pViewMenu);
      viewStatusBar->addTo(pViewMenu);
      viewDock->addTo(pViewMenu);

      ///////////////////////////////////////////////////////////////////
      // menuBar awayMenu
      pAwayMenu=new QPopupMenu();
      actionAwayModeNormal->addTo(pAwayMenu);
      actionAwayModeAway->addTo(pAwayMenu);

      ///////////////////////////////////////////////////////////////////
      // menuBar actionMenu
      pActionMenu=new QPopupMenu();
      actionServerList->addTo(pActionMenu);
      actionTransferList->addTo(pActionMenu);
      actionHubSearch->addTo(pActionMenu);
      actionSpy->addTo(pActionMenu);
      actionUsers->addTo(pActionMenu);
      pActionMenu->insertSeparator();
      pActionMenu->insertItem(tr("Away &Mode"),pAwayMenu);

      ///////////////////////////////////////////////////////////////////
      // menuBar entry windowMenu
      pWindowMenu = new QPopupMenu(this);
      pWindowMenu->setCheckable(true);
      connect(pWindowMenu, SIGNAL(aboutToShow()), this, SLOT(windowMenuAboutToShow()));

      ///////////////////////////////////////////////////////////////////
      // menuBar entry helpMenu
      pHelpMenu=new QPopupMenu();
      helpAboutApp->addTo(pHelpMenu);
      pHelpMenu->insertSeparator();
      helpManualApp->addTo(pHelpMenu);
      pHelpMenu->insertSeparator();
      helpSupportApp->addTo(pHelpMenu);
      pHelpMenu->insertSeparator();
      helpNewVersionApp->addTo(pHelpMenu);
      pHelpMenu->insertSeparator();
      pHelpMenu->insertItem(tr("What's &This"), this, SLOT(whatsThis()), SHIFT+Key_F1);

      menuBar()->insertItem(tr("&File"), pFileMenu);
      menuBar()->insertItem(tr("&View"), pViewMenu);
      menuBar()->insertItem(tr("&Action"), pActionMenu);
      menuBar()->insertItem(tr("&Window"), pWindowMenu);
      menuBar()->insertItem(tr("&Help"), pHelpMenu);
}


Generated by  Doxygen 1.6.0   Back to index