ndManager::ndManager() :QMainWindow(0), mainDock(0), importedFile(false), newFile(false), managerView(0L), parameterView(0) { setObjectName("NDManager"); mMainToolBar = new QToolBar(); mMainToolBar->setObjectName("maintoolbar"); addToolBar(mMainToolBar); //Create a ndManagereDoc which will hold the document manipulated by the application. doc = new ndManagerDoc(this); //Setup the actions setupActions(); initStatusBar(); //Disable some actions at startup (see the ndManager.rc file) slotStateChanged("initState"); slotViewStatusBar(); readSettings(); }
SyntroZigbeeGateway::SyntroZigbeeGateway(QSettings *settings, QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags), m_settings(settings) { ui.setupUi(this); initStatusBar(); initStatTable(); loadNodeIDList(); connect(ui.actionExit, SIGNAL(triggered()), this, SLOT(close())); connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(onAbout())); connect(ui.actionConnect, SIGNAL(triggered()), this, SLOT(onConnect())); connect(ui.actionDisconnect, SIGNAL(triggered()), this, SLOT(onDisconnect())); connect(ui.actionConfigure, SIGNAL(triggered()), this, SLOT(onConfigure())); ui.actionDisconnect->setEnabled(false); m_controller = NULL; m_refreshTimer = 0; m_client = new ZigbeeGWClient(this, settings); m_client->resumeThread(); m_syntroStatusTimer = startTimer(3000); restoreWindowState(); }
Portal::Portal( QWidget *parent, KCmdLineArgs *args, const char* name) : KXmlGuiWindow( parent, 0 ), mCmdLineArgs( args ) { setObjectName( name ); /////////////////////////////////////////////////////////////////// // call inits to invoke all other construction parts initStatusBar(); initActions(); initView(); setAttribute( Qt::WA_QuitOnClose ); /////////////////////////////////////////////////////////////////// // disable actions at startup editCut->setEnabled(false); editCopy->setEnabled(false); editPaste->setEnabled(false); mAddressProvider = new AddressProvider( this ); connect( mAddressProvider, SIGNAL( addresseeFound( const QString&, const KABC::Addressee&)), this, SLOT( slotReceivedMyAddress( const QString&, const KABC::Addressee& ) ) ); setAutoSaveSettings(); QTimer::singleShot( 0, this, SLOT( slotStartupChecks() ) ); }
RTAutomationManager::RTAutomationManager() : QMainWindow() { ui.setupUi(this); layoutWindow(); m_dialog = NULL; m_client = new ManagerClient(); connect(ui.actionExit, SIGNAL(triggered()), this, SLOT(close())); connect(m_client, SIGNAL(clientConnected()), this, SLOT(clientConnected())); connect(m_client, SIGNAL(clientDisconnected()), this, SLOT(clientDisconnected())); connect(this, SIGNAL(clientRestart()), m_client, SLOT(clientRestart())); connect(this, SIGNAL(clientEnable(bool)), m_client, SLOT(clientEnable(bool))); m_client->resumeThread(); restoreWindowState(); initStatusBar(); setWindowTitle(RTAutomationArgs::getAppName()); }
StorageServiceManagerMainWindow::StorageServiceManagerMainWindow() : KXmlGuiWindow() { StorageServiceManagerSettingsJob *settingsJob = new StorageServiceManagerSettingsJob; PimCommon::StorageServiceJobConfig *configJob = PimCommon::StorageServiceJobConfig::self(); configJob->registerConfigIf(settingsJob); mStorageManager = new PimCommon::StorageServiceManager(this); connect(mStorageManager, &PimCommon::StorageServiceManager::servicesChanged, this, &StorageServiceManagerMainWindow::slotServicesChanged); mStorageServiceMainWidget = new StorageServiceManagerMainWidget; connect(mStorageServiceMainWidget, &StorageServiceManagerMainWidget::configureClicked, this, &StorageServiceManagerMainWindow::slotConfigure); connect(mStorageServiceMainWidget->storageServiceTabWidget(), &QTabWidget::currentChanged, this, &StorageServiceManagerMainWindow::slotUpdateActions); connect(mStorageServiceMainWidget->storageServiceTabWidget(), &StorageServiceTabWidget::updateStatusBarMessage, this, &StorageServiceManagerMainWindow::slotSetStatusBarMessage); connect(mStorageServiceMainWidget->storageServiceTabWidget(), &StorageServiceTabWidget::listFileWasInitialized, this, &StorageServiceManagerMainWindow::slotUpdateActions); connect(mStorageServiceMainWidget->storageServiceTabWidget(), &StorageServiceTabWidget::selectionChanged, this, &StorageServiceManagerMainWindow::slotUpdateActions); setCentralWidget(mStorageServiceMainWidget); mNetworkConfigurationManager = new QNetworkConfigurationManager(); connect(mNetworkConfigurationManager, &QNetworkConfigurationManager::onlineStateChanged, this, &StorageServiceManagerMainWindow::slotSystemNetworkOnlineStateChanged); setupActions(); setupGUI(Keys | StatusBar | Save | Create); readConfig(); mStorageServiceMainWidget->storageServiceTabWidget()->setListStorageService(mStorageManager->listService()); slotUpdateActions(); initStatusBar(); slotSystemNetworkOnlineStateChanged(mNetworkConfigurationManager->isOnline()); }
void App::initView(void) { initSettings(); initDoc(); initSequenceEngine(); QString dir; settings()->get(KEY_SYSTEM_DIR, dir); dir += QString("/") + PIXMAPPATH; setIcon(QPixmap(dir + QString("/Q.xpm"))); initWorkspace(); connect(m_settings, SIGNAL(outputPluginChanged(const QString&)), m_doc, SLOT(slotChangeOutputPlugin(const QString&))); initMenuBar(); initStatusBar(); initToolBar(); initVirtualConsole(); initDeviceManagerView(); QString config; settings()->get(KEY_OPEN_LAST_WORKSPACE, config); if (config == Settings::trueValue()) { settings()->get(KEY_LAST_WORKSPACE_NAME, config); doc()->loadWorkspaceAs(config); setCaption(KApplicationNameLong + QString(" - ") + doc()->workspaceFileName()); virtualConsole()->hide(); } }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); initStatusBar(); setWindowTitle("DOTA2统计学 V"PRODUCT_VERSION_STR); DataConfig::loadCurrent("datastatistics.ini"); m_webdatasourcemanager.setCurrentSource(WebDataSourceManager::WebDataSource(DataConfig::getCurrentConfig().webdatasource)); m_databasemanager.opendb(); m_herolist.load(); m_abilities.load(); for (int i = 0; i < IDataView::Count; ++i) { m_dataviews[i] = nullptr; } tableAddTab(IDataView::View_PlayerMatchHistory); }
scopePlot::scopePlot(QString title, QWidget *parent) : QMainWindow(parent) { wd=new QWidget(this); ui.setupUi(wd); mrk1=0; mrk2=0; initActions(); initMenuBar(); initToolBar(); initStatusBar(); curve1 = new QwtPlotCurve("Curve 1"); curve2 = new QwtPlotCurve("Curve 2"); curve3 = new QwtPlotCurve("Curve 3"); curve4 = new QwtPlotCurve("Curve 4"); xScaleMul=1.; xPrimeScaleMul=1.; xAltScaleMul=1; xAxisTitle="Samples"; xAltAxisTitle="Time (s)"; toggleMarker=false; showCrv1=true; showCrv2=true; showCrv3=true; showCrv4=true; init(title); }
/** * Main initialization function */ void App::init() { QSettings settings; setWindowIcon(QIcon(":/qlc.png")); #ifndef __APPLE__ /* MDI Area */ setCentralWidget(new QMdiArea(this)); centralWidget()->setContextMenuPolicy(Qt::CustomContextMenu); connect(centralWidget(), SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(slotCustomContextMenuRequested(const QPoint&))); /* Workspace background */ setBackgroundImage(settings.value("/workspace/background").toString()); /* Application geometry and window state */ QVariant var; var = settings.value(KXMLQLCGeometry, QRect(0, 0, 800, 600)); if (var.isValid() == true) setGeometry(var.toRect()); var = settings.value(KXMLQLCWindowState, Qt::WindowNoState); if (var.isValid() == true) setWindowState(Qt::WindowState(var.toInt())); #else /* App is just a toolbar, we only need it to be the size of the toolbar's buttons */ resize(600, 32); move(0, 22); #endif /* Input & output mappers and their plugins */ initOutputMap(); initInputMap(); /* Function running engine/master timer */ m_masterTimer = new MasterTimer(this, m_outputMap); m_masterTimer->start(); /* Buses */ Bus::init(this); /* Fixture definitions */ loadFixtureDefinitions(); // The main view initStatusBar(); initActions(); initMenuBar(); initToolBar(); // Document initDoc(); // Start up in non-modified state m_doc->resetModified(); }
/** \param parent \param f \param DB **/ BcBulmaCont::BcBulmaCont ( QWidget *parent, Qt::WindowFlags f, QString DB ) : BlMainWindow ( parent, f ) { BL_FUNC_DEBUG setupUi ( this ); m_pWorkspace = new BlWorkspace ( this ); m_pWorkspace->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); m_pWorkspace->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); QFrame *m_frame1 = new QFrame(); QProgressBar *m_pb = new QProgressBar(); m_pb->setMaximum ( 100 ); m_pb->setMinimum ( 0 ); m_pb->setValue ( 0 ); /// Hacemos que el ProgressBar esté invisible hasta que se seleccione una empresa. m_pb->setVisible ( false ); setCentralWidget ( m_frame1 ); /// Creamos un VerticalLayout donde metemos el contenido central del QMainWindow. QVBoxLayout *vboxlayout = new QVBoxLayout ( this->centralWidget() ); vboxlayout->setSpacing ( 0 ); vboxlayout->setMargin ( 0 ); vboxlayout->addWidget ( m_pWorkspace ); vboxlayout->addWidget ( m_pb ); m_company = new BcCompany ( this ); m_company->setProgressBar ( m_pb ); m_company->init ( DB, "BulmaCont" ); m_company->setWorkspace ( m_pWorkspace ); connect ( m_pWorkspace, SIGNAL ( subWindowActivated ( QMdiSubWindow * ) ), this, SLOT ( informaIndexador ( QMdiSubWindow * ) ) ); /// Aquí creamos la ventana dock para meter las distintas ventanas. m_list = new BlWindowListDock ( 0 ); m_list->setVisible ( false ); /// Iniciamos el listventanas con el workspace para que pueda operar con el. m_list->setWorkspace ( m_pWorkspace ); connect ( m_list, SIGNAL ( visibilityStateChanged ( bool ) ), this, SLOT ( setActionIndexador ( bool ) ) ); addDockWidget ( Qt::LeftDockWidgetArea, m_list ); m_company->setListVentanas ( m_list ); m_list->setVisible ( true ); m_pb->setVisible ( false ); initStatusBar(); statusBar() ->showMessage ( DB, 2000 ); setWindowTitle ( DB ); }
void Game::initGUI() { auto director = CCDirector::sharedDirector(); auto visibleSize = director->getVisibleSize(); initStatusBar(visibleSize); initInventory(visibleSize); addMenu(visibleSize); }
/** add comments here */ InterfaceDuel::InterfaceDuel() { _server = new AttalServer( PORT.toInt() ); setWindowTitle("Attal - Lords of Doom (Server)"); initMenuBar(); initStatusBar(); _widget = new ServerWidget( this ); setCentralWidget( _widget ); }
/** add comments here */ InterfaceDuel::InterfaceDuel() { _server = new AttalServer( ATTAL_PORT ); setCaption("Attal - Lords of Doom (Server)"); initMenuBar(); initStatusBar(); _widget = new ServerWidget( this ); setCentralWidget( _widget ); }
/* * The show() public SLOT, when the app is being drawn!!! * Init member variables and all UI widgets */ void MainWindow::show() { if(m_initializationCompleted == false) { restoreGeometry(SettingsManager::getWindowSize()); m_commandExecuting=ectn_NONE; m_commandQueued=ectn_NONE; m_leFilterPackage = new SearchLineEdit(this, m_hasSLocate); setWindowTitle(StrConstants::getApplicationName()); setMinimumSize(QSize(820, 520)); initTabOutput(); initTabInfo(); initTabFiles(); initTabTransaction(); initTabHelpUsage(); initTabNews(); initLineEditFilterPackages(); initPackageTreeView(); initActions(); loadSettings(); loadPanelSettings(); initStatusBar(); initToolButtonPacman(); initToolButtonAUR(); initAppIcon(); initMenuBar(); initToolBar(); initTabWidgetPropertiesIndex(); refreshDistroNews(false); if (Package::hasPacmanDatabase()) { refreshGroupsWidget(); } QMainWindow::show(); m_listOfVisitedPackages.clear(); m_indOfVisitedPackage = 0; if (Package::hasPacmanDatabase()) { metaBuildPackageList(); } // Maybe this system has never run a pacman -Syy else { doSyncDatabase(); } } else QMainWindow::show(); }
KVerbosApp::KVerbosApp(QWidget* , const char* name):KMainWindow (0, name) { // als erstes das Logo starten KStartupLogo* start_logo = new KStartupLogo(0); start_logo->show(); start_logo->raise(); // die Instanzen von kverbos zählen kverbosCounter++; config=kapp->config(); /////////////////////////////////////////////////////////////////// // call inits to invoke all other construction parts initStatusBar(); initActions(); initDocument(); initView(); readOptions(); /////////////////////////////////////////////////////////////////// // disable actions at startup // Mir ist nicht klar, warum die Autoren des Frameworks diese // Menuoptionen deaktivieren. // Ich werde hier jedenfalls gleich einmal einige auskommentieren. // fileSave->setEnabled(false); // fileSaveAs->setEnabled(false); filePrint->setEnabled(false); editCut->setEnabled(false); editCopy->setEnabled(false); editPaste->setEnabled(false); userResults->setEnabled(false); // El programa ha leído las opciones del programa. Entonces puedo iniciar el objeto // por la control de KFeeder. if (useKFeeder) { kfeederControl = new KFeederControl(kverbosCounter, showKFeederSplash, automaticKFeeder); useKFeeder = kfeederControl->isActive(); if (!useKFeeder) { // the KFeeder didn't start so it isn't installed. Delete the control object delete kfeederControl; kfeederControl = 0; }; } else kfeederControl = 0; // das Logo wieder löschen delete start_logo; }
MainWindow::MainWindow() { setCaption(tr("GA Bots " VERSION)); initActions(); initMenuBar(); initToolBar(); initStatusBar(); initGABotDoc(); initView(); ViewToolBar->setOn(true); ViewStatusBar->setOn(true); //ViewGame->setOn(true); connect(GABotDoc, SIGNAL(gameReady(bool)), this, SLOT(slotGameReady(bool))); connect(GABotDoc, SIGNAL(teamAScores()), View, SLOT(slotScoreA())); connect(GABotDoc, SIGNAL(teamBScores()), View, SLOT(slotScoreB())); connect(GABotDoc, SIGNAL(clearScores()), View, SLOT(slotClearScores())); connect(GABotDoc, SIGNAL(moveTeamA(Coordinate, Coordinate)), View, SLOT(slotMoveTeamA(Coordinate, Coordinate))); connect(GABotDoc, SIGNAL(moveTeamB(Coordinate, Coordinate)), View, SLOT(slotMoveTeamB(Coordinate, Coordinate))); connect(GABotDoc, SIGNAL(turnTeamA(Coordinate, Direction)), View, SLOT(slotTurnTeamA(Coordinate, Direction))); connect(GABotDoc, SIGNAL(turnTeamB(Coordinate, Direction)), View, SLOT(slotTurnTeamB(Coordinate, Direction))); connect(GABotDoc, SIGNAL(moveBall(Coordinate,Coordinate)), View, SLOT(slotMoveBall(Coordinate,Coordinate))); connect(GoGame, SIGNAL(activated()), this, SLOT(slotGoGame())); connect(GoGame, SIGNAL(activated()), GABotDoc, SLOT(slotStartTimer())); connect(StopGame, SIGNAL(activated()), GABotDoc, SLOT(slotStopTimer())); connect(StopGame, SIGNAL(activated()), this, SLOT(slotStopGame())); connect(View, SIGNAL(valueChanged(int)), this, SLOT(slotTickInterval(int))); connect(GABotDoc, SIGNAL(clearField()), View, SLOT(slotClearField())); connect(ResetScreen, SIGNAL(activated()), View, SLOT(slotClearField())); //not sure if we should clear the field whenever regenerating the team // connect(TeamAGenerate,SIGNAL(activated()), View, SLOT(slotClearField())); // connect(TeamBGenerate,SIGNAL(activated()), View, SLOT(slotClearField())); connect(GABotDoc, SIGNAL(gameOver()), View, SLOT(slotClearField())); connect(GABotDoc, SIGNAL(gameOver()), View, SLOT(slotClearScores())); connect(GABotDoc, SIGNAL(gameOver()), this, SLOT(slotGameOver())); }
void App::initView(void) { initSettings(); setIcon(QPixmap(QString(PIXMAPS) + QString("/Q.xpm"))); initWorkspace(); initMenuBar(); initStatusBar(); initToolBar(); m_lastPath = QString(FIXTURES); }
void App::initView(void) { setIcon(QPixmap(QString(PIXMAPS) + QString("/qlc-fixtureeditor.png"))); initWorkspace(); initMenuBar(); initStatusBar(); initToolBar(); m_lastPath = QString(FIXTURES); resize(800, 600); }
/*XmdvToolMainWnd::XmdvToolMainWnd(QWidget *parent) : QMainWindow(parent) { //To display help in QT Assistant assistant = new Assistant; m_pipelineManager = new PipelineManager(this); m_viewManager = new ViewManager(this); if (this->objectName().isEmpty()) this->setObjectName(QString::fromUtf8("XmdvToolMainWnd")); this->resize(1000, 600); this->setWindowIcon(ICON_PA); m_mdiArea = new QMdiArea(this); this->setCentralWidget(m_mdiArea); m_viewManager->setMdiArea(m_mdiArea); connect(m_mdiArea, SIGNAL(subWindowActivated(QMdiSubWindow*)), m_viewManager, SLOT(mdiSubWindowActivated(QMdiSubWindow*)) ); m_handleFiles = new HandleFiles(this); m_handleView = new HandleView(this); m_handleBrush = new HandleBrush(this); m_handleTools = new HandleTools(this); m_handleZoom = new HandleZoom(this); initFileActions(); initViewActions(); initBrushActions(); initToolsActions(); initWindowActions(); initVisActions(); initZoomActions(); initHelpActions(); initMenuBar(); initFileMenu(); initViewMenu(); initBrushMenu(); initToolsMenu(); initWindowMenu(); initHelpMenu(); initToolBarTop(); initToolBarRight(); initStatusBar(); this->setMouseTracking(true); }*/ XmdvToolMainWnd::XmdvToolMainWnd(QWidget *parent, RInside &R) :QMainWindow(parent),m_R(R) { // m_R = R.instance(); assistant = new Assistant; m_pipelineManager = new PipelineManager(this); m_viewManager = new ViewManager(this); if (this->objectName().isEmpty()) this->setObjectName(QString::fromUtf8("XmdvToolMainWnd")); this->resize(1000, 600); this->setWindowIcon(ICON_PA); m_mdiArea = new QMdiArea(this); this->setCentralWidget(m_mdiArea); m_viewManager->setMdiArea(m_mdiArea); connect(m_mdiArea, SIGNAL(subWindowActivated(QMdiSubWindow*)), m_viewManager, SLOT(mdiSubWindowActivated(QMdiSubWindow*)) ); m_handleFiles = new HandleFiles(this); m_handleView = new HandleView(this); m_handleBrush = new HandleBrush(this); m_handleTools = new HandleTools(this); m_handleZoom = new HandleZoom(this); initFileActions(); initViewActions(); initBrushActions(); initToolsActions(); initWindowActions(); initVisActions(); initZoomActions(); initHelpActions(); initMenuBar(); initFileMenu(); initViewMenu(); initBrushMenu(); initToolsMenu(); initWindowMenu(); initHelpMenu(); initToolBarTop(); initToolBarRight(); initStatusBar(); this->setMouseTracking(true); }
/** add comments here */ ScenarioInterface::ScenarioInterface() { _filename = ""; setCaption( "Scenario editor for 'Attal - Lords of Doom'" ); initMenuBar(); initStatusBar(); DataTheme.init(); ImageTheme.init(); _screen = new Screen( this ); setCentralWidget( _screen ); resize( 600, 600 ); }
void KBattleshipWindow::init() { m_aiPlaying = false; m_placeable = false; m_shootable = false; m_serverHasClient = false; m_config = kapp->config(); initStatusBar(); initActions(); readOptions(); initView(); initChat(); initShipPlacing(); parseCommandLine(); }
bool DiffAnalystWindow::init(QString session0, QString session1) { QString diffSessName; bool ret = false; // //////////////////////////////////////////////////////////////// // Instantiate the workspace // //////////////////////////////////////////////////////////////// m_pSplitter = new QSplitter (this); if(m_pSplitter == NULL) return ret; m_pVBox = new QVBox (m_pSplitter); if(m_pVBox == NULL) return ret; m_pWs = new QWorkspace (m_pVBox); if(m_pWs == NULL) return ret; // When we cascade the sessions... m_pWs->setScrollBarsEnabled (true); m_pVBox->setFrameStyle (QFrame::StyledPanel | QFrame::Sunken); QObject::connect (m_pWs, SIGNAL (windowActivated (QWidget *)), SLOT (onWindowActivated (QWidget *))); setCentralWidget (m_pSplitter); // ///////////////////////////////////////////////////////////////////// // Setup Initial Caption setDiffAnalystCaption(diffSessName); ret = true; ret = ret && initMenuBar(); ret = ret && initViewToolBar(); ret = ret && initDasmDockView(); ret = ret && initPropDockView(); // ///////////////////////////////////////////////////////////////////// // Initialize Status Bar ret = ret && initStatusBar(); // ///////////////////////////////////////////////////////////////////// if( !session0.isEmpty() && !session1.isEmpty()) { ret = ret && startCAProfDiffSession(session0, session1,diffSessName); } return ret; }//init()
KMouthApp::KMouthApp(QWidget* , const char* name): KXmlGuiWindow(0) { setObjectName(QLatin1String(name)); isConfigured = false; config = KGlobal::config(); /////////////////////////////////////////////////////////////////// // call inits to invoke all other construction parts initStatusBar(); initPhraseList(); initActions(); optionsDialog = new OptionsDialog(this); connect(optionsDialog, SIGNAL(configurationChanged()), this, SLOT(slotConfigurationChanged())); connect(optionsDialog, SIGNAL(configurationChanged()), phraseList, SLOT(configureCompletion())); phrases = new KActionCollection(static_cast<QWidget*>(this)); readOptions(); ConfigWizard *wizard = new ConfigWizard(this, config.data()); if (wizard->configurationNeeded()) { if (wizard->requestConfiguration()) { isConfigured = true; saveOptions(); wizard->saveConfig(); readOptions(); } else isConfigured = false; } else isConfigured = true; delete wizard; if (isConfigured) { phraseList->configureCompletion(); } /////////////////////////////////////////////////////////////////// // disable actions at startup fileSaveAs->setEnabled(false); filePrint->setEnabled(false); printer = 0; }
BOOL ModelTreeDialog::doInitDialog(HWND hKbControl) { RECT optionsRect; RECT clientRect; m_colorButton = new CUIColorButton(GetDlgItem(hWindow, IDC_HIGHLIGHT_COLOR), MODEL_TREE_CUST_COLORS_KEY, m_highlightR, m_highlightG, m_highlightB); setIcon(IDI_APP_ICON); m_hTreeView = GetDlgItem(hWindow, IDC_MODEL_TREE); m_resizer = new CUIWindowResizer; m_resizer->setHWindow(hWindow); m_resizer->addSubWindow(IDC_MODEL_TREE, CUISizeHorizontal | CUISizeVertical); m_resizer->addSubWindow(IDC_SHOW_BOX, CUIFloatLeft | CUIFloatBottom); m_resizer->addSubWindow(IDC_OPTIONS, CUIFloatLeft | CUIFloatTop); m_resizer->addSubWindow(IDC_HIGHLIGHT, CUIFloatRight | CUIFloatTop); m_resizer->addSubWindow(IDC_HIGHLIGHT_COLOR, CUIFloatRight | CUIFloatTop); m_lineChecks.resize(LDLLineTypeUnknown + 1); setupLineCheck(IDC_COMMENT, LDLLineTypeComment); setupLineCheck(IDC_MODEL, LDLLineTypeModel); setupLineCheck(IDC_LINE, LDLLineTypeLine); setupLineCheck(IDC_TRIANGLE, LDLLineTypeTriangle); setupLineCheck(IDC_QUAD, LDLLineTypeQuad); setupLineCheck(IDC_CONDITIONAL, LDLLineTypeConditionalLine); setupLineCheck(IDC_EMPTY, LDLLineTypeEmpty); setupLineCheck(IDC_UNKNOWN, LDLLineTypeUnknown); //m_hResizeGrip = CUIWindowResizer::createResizeGrip(hWindow); //positionResizeGrip(m_hResizeGrip); GetWindowRect(GetDlgItem(hWindow, IDC_SHOW_BOX), &optionsRect); screenToClient(hWindow, &optionsRect); GetClientRect(hWindow, &clientRect); m_optionsDelta = clientRect.right - optionsRect.left; minWidth = clientRect.right; minHeight = clientRect.bottom; if (!TCUserDefaults::boolForKey(MODEL_TREE_OPTIONS_SHOWN_KEY, true, false)) { hideOptions(); } checkSet(IDC_HIGHLIGHT, m_highlight); initStatusBar(); setAutosaveName("ModelTreeDialog"); return CUIDialog::doInitDialog(hKbControl); }
SyntroStore::SyntroStore(QSettings *settings, QWidget *parent) : QMainWindow(parent), m_settings(settings) { m_startingUp = true; ui.setupUi(this); m_storeStreamDlg = NULL; connect(ui.actionExit, SIGNAL(triggered()), this, SLOT(close())); connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(onAbout())); connect(ui.actionBasicSetup, SIGNAL(triggered()), this, SLOT(onBasicSetup())); initStatusBar(); initDisplayStats(); restoreWindowState(); m_timerId = startTimer(2000); SyntroUtils::syntroAppInit(m_settings); m_client = new StoreClient(this, m_settings); setWindowTitle(QString("%1 - %2") .arg(m_settings->value(SYNTRO_PARAMS_APPNAME).toString()) .arg(m_settings->value(SYNTRO_PARAMS_COMPTYPE).toString())); connect(this, SIGNAL(refreshStreamSource(int)), m_client, SLOT(refreshStreamSource(int)), Qt::QueuedConnection); m_client->resumeThread(); m_settings->beginReadArray(SYNTROSTORE_PARAMS_STREAM_SOURCES); for (int index = 0; index < SYNTROSTORE_MAX_STREAMS; index++) { m_settings->setArrayIndex(index); m_rxStreamTable->item(index, SYNTROSTORE_COL_STREAM)->setText(m_settings->value(SYNTROSTORE_PARAMS_STREAM_SOURCE).toString()); if (m_settings->value(SYNTROSTORE_PARAMS_INUSE).toString() == SYNTRO_PARAMS_TRUE) m_useBox[index]->setCheckState(Qt::Checked); else m_useBox[index]->setCheckState(Qt::Unchecked); } m_settings->endArray(); for (int index = 0; index < SYNTROSTORE_MAX_STREAMS; index++) emit refreshStreamSource(index); m_startingUp = false; }
/** add comments here */ AiInterface::AiInterface() { _socket = 0; iaLogLevel = LOG_VERBOSE; DataTheme.init(); _analyst = new Analyst(); setCaption( "Attal: IA client" ); initMenuBar(); initStatusBar(); _edit = new QMultiLineEdit( this ); _edit->setReadOnly( true ); screen = _edit; setCentralWidget( _edit ); connect( &aifLog, SIGNAL( sig_print( QString ) ), SLOT( slot_log( QString ) ) ); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); spreadsheet = new Spreadsheet; setCentralWidget(spreadsheet); findDialog = 0; setCurrentFileName(""); initStatusBar(); initToggleAction(); initrecentFilesAction(); setActionShortcuts(); createContextMenu(); readSettings(); }
/* * The show() public SLOT, when the app is being drawn!!! * Init member variables and all UI widgets */ void MainWindow::show() { if(m_initializationCompleted == false) { UnixCommand::getIgnorePkg(); loadSettings(); restoreGeometry(SettingsManager::getWindowSize()); m_commandExecuting=ectn_NONE; m_commandQueued=ectn_NONE; m_leFilterPackage = new SearchLineEdit(this); setWindowTitle(StrConstants::getApplicationName()); setMinimumSize(QSize(820, 520)); initTabOutput(); initTabInfo(); initTabFiles(); initTabTransaction(); initTabHelpUsage(); initTabNews(); initLineEditFilterPackages(); initPackageTreeView(); loadPanelSettings(); initActions(); initStatusBar(); initToolButtonPacman(); initToolButtonYaourt(); initAppIcon(); initToolBar(); initTabWidgetPropertiesIndex(); refreshDistroNews(false); refreshGroupsWidget(); QMainWindow::show(); metaBuildPackageList(); } else QMainWindow::show(); }
MainWindowBase::MainWindowBase(QWidget *parent) :QMainWindow(parent) { initStatusBar(); //loadPlugins(); originalPalette = QApplication::palette(); m_useStylePalette = false; actionLanguageDefaultEnglish = 0; actionUseStylesPalette = 0; actionPluginsManagement = 0; m_languageMenu = 0; m_styleMenu = 0; m_pluginsMenu = 0; }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); ui->txt_pkt_data->setFont(QFont("Monospace")); ui->txt_unpackinfo->setFont(QFont("Monospace")); m_unpackStatus = UNPACK_START; m_pUnpackThread = NULL; initStatusBar(); createDB(); avInit(); m_timer = new QTimer(this); //connect(m_timer,SIGNAL(timeout()),this,SLOT(slot_bind_tableview())); ui->tvw_unpack->setContextMenuPolicy(Qt::CustomContextMenu); connect(ui->tvw_unpack, SIGNAL(customContextMenuRequested(const QPoint&)), this, SLOT(slot_show_unpack_menu()));//this是datatable所在窗口 }