mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Minor issues related to release
* Add shortcut for Plot Editor, and modify how command features are triggered Use Ctrl-E to launch the Plot Editor. * Add optional use of NOECHO and ECHO keywords in GRDECL files * Add ECHO keywords to sector model export * Add Help button to Preferences
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
#include "RicEditPreferencesFeature.h"
|
||||
|
||||
#include "RiaGuiApplication.h"
|
||||
#include "RiaNetworkTools.h"
|
||||
#include "RiaPreferences.h"
|
||||
|
||||
#include "RimProject.h"
|
||||
|
||||
#include "RiuPropertyViewTabWidget.h"
|
||||
@@ -28,6 +30,8 @@
|
||||
#include "cafPdmUiModelChangeDetector.h"
|
||||
|
||||
#include <QAction>
|
||||
#include <QDialogButtonBox>
|
||||
#include <QPushButton>
|
||||
|
||||
CAF_CMD_SOURCE_INIT( RicEditPreferencesFeature, "RicEditPreferencesFeature" );
|
||||
|
||||
@@ -70,6 +74,10 @@ void RicEditPreferencesFeature::onActionTriggered( bool isChecked )
|
||||
|
||||
RiuPropertyViewTabWidget propertyDialog( nullptr, app->preferences(), "Preferences", tabNames );
|
||||
propertyDialog.setSizePolicy( QSizePolicy::Preferred, QSizePolicy::Preferred );
|
||||
|
||||
auto pushButton = propertyDialog.dialogButtonBox()->addButton( "Help", QDialogButtonBox::HelpRole );
|
||||
connect( pushButton, &QPushButton::clicked, this, &RicEditPreferencesFeature::showHelp );
|
||||
|
||||
if ( propertyDialog.exec() == QDialog::Accepted )
|
||||
{
|
||||
// Write preferences using QSettings and apply them to the application
|
||||
@@ -109,3 +117,11 @@ std::unique_ptr<RiaPreferences> RicEditPreferencesFeature::clonePreferences( con
|
||||
|
||||
return std::unique_ptr<RiaPreferences>( dynamic_cast<RiaPreferences*>( pdmClone ) );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicEditPreferencesFeature::showHelp()
|
||||
{
|
||||
RiaNetworkTools::openSearchPage( "preferences" );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user