Added icons for VFP and help actions

This commit is contained in:
Ruben Thoms authored and Magne Sjaastad committed 2021-04-21 15:21:45 +02:00
1 parent b14fe92eb4
commit 4b0f3486ad
8 files changed
+77 -6

No files matched your search

@@ -164,6 +164,7 @@ void RicHelpAboutFeature::onActionTriggered( bool isChecked )
void RicHelpAboutFeature::setupActionLook( QAction* actionToSetup )
{
actionToSetup->setText( "&About" );
actionToSetup->setIcon( QIcon( ":/HelpCircle.svg" ) );
}
//--------------------------------------------------------------------------------------------------
@@ -192,6 +193,7 @@ void RicHelpCommandLineFeature::onActionTriggered( bool isChecked )
void RicHelpCommandLineFeature::setupActionLook( QAction* actionToSetup )
{
actionToSetup->setText( "&Command Line Help" );
actionToSetup->setIcon( QIcon( ":/HelpCircle.svg" ) );
}
//--------------------------------------------------------------------------------------------------
@@ -220,6 +222,7 @@ void RicHelpSummaryCommandLineFeature::onActionTriggered( bool isChecked )
void RicHelpSummaryCommandLineFeature::setupActionLook( QAction* actionToSetup )
{
actionToSetup->setText( "&Summary Command Line Help" );
actionToSetup->setIcon( QIcon( ":/HelpCircle.svg" ) );
}
//--------------------------------------------------------------------------------------------------
@@ -252,7 +255,7 @@ void RicHelpOpenUsersGuideFeature::onActionTriggered( bool isChecked )
void RicHelpOpenUsersGuideFeature::setupActionLook( QAction* actionToSetup )
{
actionToSetup->setText( "&Users Guide" );
actionToSetup->setIcon( QIcon( ":/HelpCircle.svg" ) );
// applyShortcutWithHintToAction( actionToSetup, QKeySequence::HelpContents );
}
@@ -301,6 +304,7 @@ void RicSearchHelpFeature::setupActionLook( QAction* actionToSetup )
{
actionToSetup->setText( "Search Help" );
}
actionToSetup->setIcon( QIcon( ":/HelpCircle.svg" ) );
applyShortcutWithHintToAction( actionToSetup, QKeySequence::HelpContents );
}
@@ -108,6 +108,5 @@ void RicNewVfpPlotFeature::onActionTriggered( bool isChecked )
void RicNewVfpPlotFeature::setupActionLook( QAction* actionToSetup )
{
actionToSetup->setText( "New VFP Plots" );
// TODO: add icon
// actionToSetup->setIcon( QIcon( ":/VerticalFlowPerformancePlot16x16.png" ) );
actionToSetup->setIcon( QIcon( ":/VfpPlot.svg" ) );
}
@@ -88,7 +88,7 @@ CAF_PDM_SOURCE_INIT( RimVfpPlot, "VfpPlot" );
RimVfpPlot::RimVfpPlot()
{
// TODO: add icon
CAF_PDM_InitObject( "VFP Plot", "", "", "" );
CAF_PDM_InitObject( "VFP Plot", ":/VfpPlot.svg", "", "" );
CAF_PDM_InitField( &m_plotTitle, "PlotTitle", QString( "VFP Plot" ), "Plot Title", "", "", "" );
m_plotTitle.uiCapability()->setUiHidden( true );
@@ -36,7 +36,7 @@ CAF_PDM_SOURCE_INIT( RimVfpPlotCollection, "RimVfpPlotCollection" );
//--------------------------------------------------------------------------------------------------
RimVfpPlotCollection::RimVfpPlotCollection()
{
CAF_PDM_InitObject( "VFP Plots", ":/SummaryXPlotsLight16x16.png", "", "" );
CAF_PDM_InitObject( "VFP Plots", ":/VfpPlotCollection.svg", "", "" );
CAF_PDM_InitFieldNoDefault( &m_vfpPlots, "VfpPlots", "Vertical Flow Performance Plots", "", "", "" );
m_vfpPlots.uiCapability()->setUiHidden( true );