mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4892 Improved names and added improved icons to linked views commands
This commit is contained in:
@@ -118,10 +118,11 @@ void RicLinkViewFeature::setupActionLook( QAction* actionToSetup )
|
||||
if ( selectedGridViews.size() > 1u )
|
||||
{
|
||||
actionToSetup->setText( "Link Selected Views" );
|
||||
actionToSetup->setIcon( QIcon( ":/LinkView16x16.png" ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
actionToSetup->setText( "Link View" );
|
||||
actionToSetup->setIcon( QIcon( ":/ControlledView16x16.png" ) );
|
||||
}
|
||||
actionToSetup->setIcon( QIcon( ":/chain.png" ) );
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ void RicLinkVisibleViewsFeature::onActionTriggered( bool isChecked )
|
||||
void RicLinkVisibleViewsFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
actionToSetup->setText( "Link Visible Views" );
|
||||
actionToSetup->setIcon( QIcon( ":/chain.png" ) );
|
||||
actionToSetup->setIcon( QIcon( ":/LinkView16x16.png" ) );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -171,8 +171,8 @@ void RicLinkVisibleViewsFeature::linkViews( std::vector<RimGridView*>& views )
|
||||
RicLinkVisibleViewsFeatureUi featureUi;
|
||||
featureUi.setViews( masterCandidates );
|
||||
|
||||
caf::PdmUiPropertyViewDialog propertyDialog( nullptr, &featureUi, "Select Master View", "" );
|
||||
propertyDialog.setWindowIcon( QIcon( ":/chain.png" ) );
|
||||
caf::PdmUiPropertyViewDialog propertyDialog( nullptr, &featureUi, "Select Primary View", "" );
|
||||
propertyDialog.setWindowIcon( QIcon( ":/LinkView16x16.png" ) );
|
||||
if ( propertyDialog.exec() != QDialog::Accepted ) return;
|
||||
|
||||
masterView = featureUi.masterView();
|
||||
|
||||
@@ -34,9 +34,9 @@ CAF_PDM_SOURCE_INIT( RicLinkVisibleViewsFeatureUi, "RicLinkVisibleViewsFeatureUi
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicLinkVisibleViewsFeatureUi::RicLinkVisibleViewsFeatureUi( void )
|
||||
{
|
||||
CAF_PDM_InitObject( "Link Visible Views Feature UI", ":/chain.png", "", "" );
|
||||
CAF_PDM_InitObject( "Link Visible Views Feature UI", ":/LinkView16x16.png", "", "" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_masterView, "MasterView", "Master View", "", "", "" );
|
||||
CAF_PDM_InitFieldNoDefault( &m_masterView, "MasterView", "Primary View", "", "", "" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -96,5 +96,6 @@ void RicSetMasterViewFeature::onActionTriggered( bool isChecked )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicSetMasterViewFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
actionToSetup->setText( "Set As Master View" );
|
||||
actionToSetup->setText( "Set As Primary View" );
|
||||
actionToSetup->setIcon( QIcon( ":/MasterView16x16.png" ) );
|
||||
}
|
||||
|
||||
@@ -69,5 +69,5 @@ void RicShowLinkOptionsFeature::onActionTriggered( bool isChecked )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicShowLinkOptionsFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
actionToSetup->setText( "Show Link Options" );
|
||||
actionToSetup->setText( "Show Linked View Options" );
|
||||
}
|
||||
|
||||
@@ -81,4 +81,6 @@ void RicUnLinkViewFeature::onActionTriggered( bool isChecked )
|
||||
void RicUnLinkViewFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
actionToSetup->setText( "Unlink View" );
|
||||
actionToSetup->setIcon( QIcon( ":/UnLinkView16x16.png" ) );
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user