mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#339) Added RicAddScriptPathFeature and RicDeleteScriptPathFeature
Did some additional refactoring - added code common to script related features to RicScriptFeatureImpl.
This commit is contained in:
@@ -661,6 +661,11 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu)
|
||||
commandIds << "Separator";
|
||||
commandIds << "RicExecuteScriptFeature";
|
||||
}
|
||||
else if (dynamic_cast<RimScriptCollection*>(uiItem))
|
||||
{
|
||||
commandIds << "RicAddScriptPathFeature";
|
||||
commandIds << "RicDeleteScriptPathFeature";
|
||||
}
|
||||
}
|
||||
|
||||
if (RicToggleItemsFeatureImpl::isToggleCommandsAvailable())
|
||||
|
||||
@@ -1340,6 +1340,7 @@ void RimUiTreeView::setExpandedUpToRoot(const QModelIndex& itemIndex)
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
// OBSOLETE - see RicAddScriptPathFeature
|
||||
void RimUiTreeView::slotAddScriptPath()
|
||||
{
|
||||
QString selectedFolder = QFileDialog::getExistingDirectory(this, "Select script folder");
|
||||
@@ -1363,6 +1364,7 @@ void RimUiTreeView::slotAddScriptPath()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
// OBSOLETE - see RicDeleteScriptPathFeature
|
||||
void RimUiTreeView::slotDeleteScriptPath()
|
||||
{
|
||||
RimUiTreeModelPdm* myModel = dynamic_cast<RimUiTreeModelPdm*>(model());
|
||||
|
||||
Reference in New Issue
Block a user