Commit 30b9273e authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

Moving fake toolbar to core

parent 35572c46
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
#include "mimedatabase.h" #include "mimedatabase.h"
#include "tabpositionindicator.h" #include "tabpositionindicator.h"
#include "vcsmanager.h" #include "vcsmanager.h"
#include "faketoolbar.h"
#include <coreplugin/coreconstants.h> #include <coreplugin/coreconstants.h>
#include <coreplugin/modemanager.h> #include <coreplugin/modemanager.h>
...@@ -441,6 +442,12 @@ void EditorManager::init() ...@@ -441,6 +442,12 @@ void EditorManager::init()
pluginManager()->addObject(m_d->m_openEditorsFactory); pluginManager()->addObject(m_d->m_openEditorsFactory);
} }
FakeToolBar *EditorManager::createFakeToolBar(QWidget *parent)
{
return new FakeToolBar(parent);
}
QString EditorManager::defaultExternalEditor() const QString EditorManager::defaultExternalEditor() const
{ {
#ifdef Q_OS_UNIX #ifdef Q_OS_UNIX
......
...@@ -57,6 +57,8 @@ class IFile; ...@@ -57,6 +57,8 @@ class IFile;
class IMode; class IMode;
class IVersionControl; class IVersionControl;
class FakeToolBar;
enum MakeWritableResult { enum MakeWritableResult {
OpenedWithVersionControl, OpenedWithVersionControl,
MadeWritable, MadeWritable,
...@@ -105,6 +107,8 @@ public: ...@@ -105,6 +107,8 @@ public:
void init(); void init();
static EditorManager *instance() { return m_instance; } static EditorManager *instance() { return m_instance; }
static FakeToolBar *createFakeToolBar(QWidget *parent = 0);
enum OpenEditorFlag { enum OpenEditorFlag {
NoActivate = 1, NoActivate = 1,
IgnoreNavigationHistory = 2, IgnoreNavigationHistory = 2,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment