Beispiel #1
0
/*!
 * \brief Creates menu.
 * \note This is a virtual function that can be overridden.
 */
void GUI::createMenu()
{
    //clear anything that is currently in the menu
    mainWindow->menuBar()->clear();

    //add menu
    createFileMenu();
    createEditMenu();
    createViewMenu();
    if(useModuleMenu)
    {
        createModuleMenu();
    }
    mainWindow->createToolsMenu();
    createHelpMenu();

    //request GPU list from module, which will subsequently update device menu
    interfaceBase->sendGpuListRequest();
}
Beispiel #2
0
MainWindow::MainWindow(void)
  : QMainWindow(NULL, Qt::Window)
{

  // Make central RTXI parent widget
  mdiArea = new QMdiArea;
  setCentralWidget(mdiArea);

  /* Initialize Window Settings */
  setWindowTitle("RTXI - Real-time eXperimental Interface");
  setWindowIcon(QIcon("/usr/local/share/rtxi/RTXI-icon.png"));

  /* Set Qt Settings Information */
  QCoreApplication::setOrganizationName("RTXI");
  QCoreApplication::setOrganizationDomain("rtxi.org");
  QCoreApplication::setApplicationName("RTXI");

  /* Initialize Menus */
  createFileActions();
  createFileMenu();

  /* Initialize Module Menu */
  createModuleMenu();

  /* Initialize Utilities menu */
  createUtilMenu();

  /* Initialize System Menu */
  createSystemMenu();

  /* Initialize Windows Menu */
  createWindowsMenu();

  /* Initialize Help Menu */
  createHelpActions();
  createHelpMenu();
}