#4316 Fix context menu with multiple selected well paths

This commit is contained in:
Gaute Lindkvist
2019-04-12 09:08:38 +02:00
parent 53f7edf320
commit c82a4a5537
8 changed files with 171 additions and 77 deletions

View File

@@ -19,11 +19,15 @@
#pragma once
#include <QIcon>
#include <vector>
namespace caf {
class CmdFeatureMenuBuilder;
}
class QString;
class QStringList;
class QMenu;
class RimWellPath;
class RimScriptCollection;
@@ -42,5 +46,13 @@ private:
static void createExecuteScriptForCasesFeatureMenu(caf::CmdFeatureMenuBuilder& menuBuilder);
static void appendScriptItems(caf::CmdFeatureMenuBuilder& menuBuilder, RimScriptCollection* scriptCollection);
static void appendExportCompletions(caf::CmdFeatureMenuBuilder& menuBuilder);
static int appendImportMenu(caf::CmdFeatureMenuBuilder& menuBuilder, bool addSeparatorBeforeMenu = false);
static int appendCreateCompletions(caf::CmdFeatureMenuBuilder& menuBuilder, bool addSeparatorBeforeMenu = false);
static int appendExportCompletions(caf::CmdFeatureMenuBuilder& menuBuilder, bool addSeparatorBeforeMenu = false);
static int appendExportWellPaths(caf::CmdFeatureMenuBuilder& menuBuilder, bool addSeparatorBeforeMenu = false);
static int appendSubMenuWithCommands(caf::CmdFeatureMenuBuilder& menuBuilder,
const QStringList& commandCandidates,
const QString& menuLabel,
const QIcon& menuIcon = QIcon(),
bool addSeparatorBeforeMenu = false);
};