mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Hide console on Windows
Show command line help text in dialog, accessible from About menu Show command line help dialog instead of console output on Windows p4#: 22130
This commit is contained in:
@@ -267,6 +267,8 @@ void RiuMainWindow::createActions()
|
||||
// Help actions
|
||||
m_aboutAction = new QAction("&About", this);
|
||||
connect(m_aboutAction, SIGNAL(triggered()), SLOT(slotAbout()));
|
||||
m_commandLineHelpAction = new QAction("&Command Line Help", this);
|
||||
connect(m_commandLineHelpAction, SIGNAL(triggered()), SLOT(slotShowCommandLineHelp()));
|
||||
|
||||
// Draw style actions
|
||||
m_dsActionGroup = new QActionGroup(this);
|
||||
@@ -365,6 +367,7 @@ void RiuMainWindow::createMenus()
|
||||
// Help menu
|
||||
QMenu* helpMenu = menuBar()->addMenu("&Help");
|
||||
helpMenu->addAction(m_aboutAction);
|
||||
helpMenu->addAction(m_commandLineHelpAction);
|
||||
}
|
||||
|
||||
|
||||
@@ -1647,3 +1650,13 @@ void RiuMainWindow::slotImportWellPathsFromSSIHub()
|
||||
if (app->project()) app->project()->createDisplayModelAndRedrawAllViews();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::slotShowCommandLineHelp()
|
||||
{
|
||||
RiaApplication* app = RiaApplication::instance();
|
||||
QString text = app->commandLineParameterHelp();
|
||||
app->showFormattedTextInMessageBox(text);
|
||||
}
|
||||
|
||||
@@ -156,6 +156,7 @@ private:
|
||||
|
||||
// Help actions
|
||||
QAction* m_aboutAction;
|
||||
QAction* m_commandLineHelpAction;
|
||||
|
||||
// Animation
|
||||
caf::AnimationToolBar* m_animationToolBar;
|
||||
@@ -231,6 +232,7 @@ private slots:
|
||||
|
||||
// Help slots
|
||||
void slotAbout();
|
||||
void slotShowCommandLineHelp();
|
||||
|
||||
void slotSubWindowActivated(QMdiSubWindow* subWindow);
|
||||
void slotCurrentChanged(const QModelIndex & current, const QModelIndex & previous);
|
||||
|
||||
Reference in New Issue
Block a user