//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RicShowMainWindowFeature::onActionTriggered(bool isChecked) { this->disableModelChangeContribution(); RiuMainWindow* mainWnd = RiuMainWindow::instance(); if (mainWnd->isMinimized()) { mainWnd->showNormal(); mainWnd->update(); } else { mainWnd->show(); } mainWnd->raise(); }
int main(int argc, char *argv[]) { RiaApplication app(argc, argv); QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates)); setlocale(LC_NUMERIC,"C"); RiuMainWindow window; QString platform = cvf::System::is64Bit() ? "(64bit)" : "(32bit)"; window.setWindowTitle("ResInsight " + platform); window.setDefaultWindowSize(); window.show(); if (app.parseArguments()) { return app.exec(); } return 0; }