mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added context menu used to execute a script for multiple cases
For all selected cases, set current case and launch an external Octave process using this current case p4#: 21742
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
class QItemSelection;
|
||||
class RimIdenticalGridCaseGroup;
|
||||
class RimScriptCollection;
|
||||
|
||||
namespace caf {
|
||||
class PdmObjectGroup;
|
||||
@@ -48,8 +49,8 @@ public:
|
||||
|
||||
void populateObjectGroupFromModelIndexList(const QModelIndexList& modelIndexList, caf::PdmObjectGroup* objectGroup);
|
||||
|
||||
static void applyCurrentIndexFromString(QAbstractItemView& itemView, const QString& currentIndexString);
|
||||
static void storeCurrentIndexToString(const QAbstractItemView& itemView, QString& currentIndexString);
|
||||
static QModelIndex getModelIndexFromString(QAbstractItemModel* model, const QString& currentIndexString);
|
||||
static void encodeStringFromModelIndex(const QModelIndex mi, QString& currentIndexString);
|
||||
|
||||
protected:
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
@@ -70,6 +71,7 @@ private slots:
|
||||
void slotEditScript();
|
||||
void slotNewScript();
|
||||
void slotExecuteScript();
|
||||
void slotExecuteScriptForSelectedCases();
|
||||
|
||||
void slotAddView();
|
||||
void slotDeleteView();
|
||||
@@ -128,6 +130,8 @@ private:
|
||||
void appendToggleItemActions(QMenu& contextMenu);
|
||||
|
||||
void setExpandedUpToRoot(const QModelIndex& itemIndex);
|
||||
|
||||
void appendScriptItems(QMenu* menu, RimScriptCollection* scriptCollection);
|
||||
private:
|
||||
QAction* m_pasteAction;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user