コード例 #1
0
//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void RicShowMainWindowFeature::onActionTriggered(bool isChecked)
{
    this->disableModelChangeContribution();

    RiuMainWindow* mainWnd = RiuMainWindow::instance();

    if (mainWnd->isMinimized())
    {
        mainWnd->showNormal();
        mainWnd->update();
    }
    else
    {
        mainWnd->show();
    }

    mainWnd->raise();
}
コード例 #2
0
ファイル: RiaMain.cpp プロジェクト: PETECLAM/ResInsight
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;
}