aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/editormanager/editormanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/coreplugin/editormanager/editormanager.h')
-rw-r--r--src/plugins/coreplugin/editormanager/editormanager.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/plugins/coreplugin/editormanager/editormanager.h b/src/plugins/coreplugin/editormanager/editormanager.h
index 17d84431e31..30023e2bc7e 100644
--- a/src/plugins/coreplugin/editormanager/editormanager.h
+++ b/src/plugins/coreplugin/editormanager/editormanager.h
@@ -75,9 +75,7 @@ class CORE_EXPORT EditorManager : public QObject
Q_OBJECT
public:
- typedef QList<IEditorFactory *> EditorFactoryList;
- typedef QList<IExternalEditor *> ExternalEditorList;
- typedef std::function<QString (const QString &)> WindowTitleHandler;
+ using WindowTitleHandler = std::function<QString (const QString &)>;
static EditorManager *instance();
@@ -89,7 +87,8 @@ public:
CanContainLineAndColumnNumber = 8,
OpenInOtherSplit = 16,
DoNotSwitchToDesignMode = 32,
- DoNotSwitchToEditMode = 64
+ DoNotSwitchToEditMode = 64,
+ SwitchSplitIfAlreadyVisible = 128
};
Q_DECLARE_FLAGS(OpenEditorFlags, OpenEditorFlag)
@@ -150,10 +149,6 @@ public:
const std::function<void()> &function = nullptr);
static void hideEditorStatusBar(const QString &id);
- static EditorFactoryList editorFactories(const Utils::MimeType &mimeType, bool bestMatchOnly = true);
- static EditorFactoryList editorFactories(const QString &fileName, bool bestMatchOnly = true);
- static ExternalEditorList externalEditors(const Utils::MimeType &mimeType, bool bestMatchOnly = true);
-
static bool isAutoSaveFile(const QString &fileName);
static QTextCodec *defaultTextCodec();