forked from qt-creator/qt-creator
coreplugin: use Core::Id is some places
This commit is contained in:
@@ -71,11 +71,8 @@ bool BookmarksPlugin::initialize(const QStringList & /*arguments*/, QString *)
|
|||||||
Core::Context textcontext(TextEditor::Constants::C_TEXTEDITOR);
|
Core::Context textcontext(TextEditor::Constants::C_TEXTEDITOR);
|
||||||
Core::Context globalcontext(Core::Constants::C_GLOBAL);
|
Core::Context globalcontext(Core::Constants::C_GLOBAL);
|
||||||
|
|
||||||
Core::ActionContainer *mtools =
|
Core::ActionContainer *mtools = am->actionContainer(Core::Constants::M_TOOLS);
|
||||||
am->actionContainer(Core::Constants::M_TOOLS);
|
Core::ActionContainer *mbm = am->createMenu(Core::Id(BOOKMARKS_MENU));
|
||||||
|
|
||||||
Core::ActionContainer *mbm =
|
|
||||||
am->createMenu(QLatin1String(BOOKMARKS_MENU));
|
|
||||||
mbm->menu()->setTitle(tr("&Bookmarks"));
|
mbm->menu()->setTitle(tr("&Bookmarks"));
|
||||||
mtools->addMenu(mbm);
|
mtools->addMenu(mbm);
|
||||||
|
|
||||||
@@ -92,7 +89,7 @@ bool BookmarksPlugin::initialize(const QStringList & /*arguments*/, QString *)
|
|||||||
|
|
||||||
QAction *sep = new QAction(this);
|
QAction *sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("Bookmarks.Sep.Toggle"), textcontext);
|
cmd = am->registerAction(sep, Core::Id("Bookmarks.Sep.Toggle"), textcontext);
|
||||||
mbm->addAction(cmd);
|
mbm->addAction(cmd);
|
||||||
|
|
||||||
//Previous
|
//Previous
|
||||||
@@ -117,7 +114,7 @@ bool BookmarksPlugin::initialize(const QStringList & /*arguments*/, QString *)
|
|||||||
|
|
||||||
sep = new QAction(this);
|
sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("Bookmarks.Sep.DirNavigation"), globalcontext);
|
cmd = am->registerAction(sep, Core::Id("Bookmarks.Sep.DirNavigation"), globalcontext);
|
||||||
mbm->addAction(cmd);
|
mbm->addAction(cmd);
|
||||||
|
|
||||||
//Previous Doc
|
//Previous Doc
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ bool ActionManagerPrivate::hasContext(const Context &context) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
ActionContainer *ActionManagerPrivate::createMenu(const QString &id)
|
ActionContainer *ActionManagerPrivate::createMenu(const Id &id)
|
||||||
{
|
{
|
||||||
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
||||||
const IdContainerMap::const_iterator it = m_idContainerMap.constFind(uid);
|
const IdContainerMap::const_iterator it = m_idContainerMap.constFind(uid);
|
||||||
@@ -312,7 +312,7 @@ ActionContainer *ActionManagerPrivate::createMenu(const QString &id)
|
|||||||
return mc;
|
return mc;
|
||||||
}
|
}
|
||||||
|
|
||||||
ActionContainer *ActionManagerPrivate::createMenuBar(const QString &id)
|
ActionContainer *ActionManagerPrivate::createMenuBar(const Id &id)
|
||||||
{
|
{
|
||||||
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
||||||
const IdContainerMap::const_iterator it = m_idContainerMap.constFind(uid);
|
const IdContainerMap::const_iterator it = m_idContainerMap.constFind(uid);
|
||||||
@@ -330,7 +330,7 @@ ActionContainer *ActionManagerPrivate::createMenuBar(const QString &id)
|
|||||||
return mbc;
|
return mbc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Command *ActionManagerPrivate::registerAction(QAction *action, const QString &id, const Context &context)
|
Command *ActionManagerPrivate::registerAction(QAction *action, const Id &id, const Context &context)
|
||||||
{
|
{
|
||||||
Action *a = 0;
|
Action *a = 0;
|
||||||
Command *c = registerOverridableAction(action, id, false);
|
Command *c = registerOverridableAction(action, id, false);
|
||||||
@@ -340,7 +340,7 @@ Command *ActionManagerPrivate::registerAction(QAction *action, const QString &id
|
|||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
Command *ActionManagerPrivate::registerOverridableAction(QAction *action, const QString &id, bool checkUnique)
|
Command *ActionManagerPrivate::registerOverridableAction(QAction *action, const Id &id, bool checkUnique)
|
||||||
{
|
{
|
||||||
Action *a = 0;
|
Action *a = 0;
|
||||||
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
||||||
@@ -386,7 +386,7 @@ Command *ActionManagerPrivate::registerOverridableAction(QAction *action, const
|
|||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
|
|
||||||
Command *ActionManagerPrivate::registerShortcut(QShortcut *shortcut, const QString &id, const Context &context)
|
Command *ActionManagerPrivate::registerShortcut(QShortcut *shortcut, const Id &id, const Context &context)
|
||||||
{
|
{
|
||||||
Shortcut *sc = 0;
|
Shortcut *sc = 0;
|
||||||
int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
||||||
@@ -423,7 +423,7 @@ Command *ActionManagerPrivate::registerShortcut(QShortcut *shortcut, const QStri
|
|||||||
return sc;
|
return sc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Command *ActionManagerPrivate::command(const QString &id) const
|
Command *ActionManagerPrivate::command(const Id &id) const
|
||||||
{
|
{
|
||||||
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
||||||
const IdCmdMap::const_iterator it = m_idCmdMap.constFind(uid);
|
const IdCmdMap::const_iterator it = m_idCmdMap.constFind(uid);
|
||||||
@@ -435,7 +435,7 @@ Command *ActionManagerPrivate::command(const QString &id) const
|
|||||||
return it.value();
|
return it.value();
|
||||||
}
|
}
|
||||||
|
|
||||||
ActionContainer *ActionManagerPrivate::actionContainer(const QString &id) const
|
ActionContainer *ActionManagerPrivate::actionContainer(const Id &id) const
|
||||||
{
|
{
|
||||||
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
const int uid = UniqueIDManager::instance()->uniqueIdentifier(id);
|
||||||
const IdContainerMap::const_iterator it = m_idContainerMap.constFind(uid);
|
const IdContainerMap::const_iterator it = m_idContainerMap.constFind(uid);
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ namespace Core {
|
|||||||
class ActionContainer;
|
class ActionContainer;
|
||||||
class Command;
|
class Command;
|
||||||
class Context;
|
class Context;
|
||||||
|
class Id;
|
||||||
|
|
||||||
class CORE_EXPORT ActionManager : public QObject
|
class CORE_EXPORT ActionManager : public QObject
|
||||||
{
|
{
|
||||||
@@ -54,14 +55,14 @@ public:
|
|||||||
ActionManager(QObject *parent = 0) : QObject(parent) {}
|
ActionManager(QObject *parent = 0) : QObject(parent) {}
|
||||||
virtual ~ActionManager() {}
|
virtual ~ActionManager() {}
|
||||||
|
|
||||||
virtual ActionContainer *createMenu(const QString &id) = 0;
|
virtual ActionContainer *createMenu(const Id &id) = 0;
|
||||||
virtual ActionContainer *createMenuBar(const QString &id) = 0;
|
virtual ActionContainer *createMenuBar(const Id &id) = 0;
|
||||||
|
|
||||||
virtual Command *registerAction(QAction *action, const QString &id, const Context &context) = 0;
|
virtual Command *registerAction(QAction *action, const Id &id, const Context &context) = 0;
|
||||||
virtual Command *registerShortcut(QShortcut *shortcut, const QString &id, const Context &context) = 0;
|
virtual Command *registerShortcut(QShortcut *shortcut, const Id &id, const Context &context) = 0;
|
||||||
|
|
||||||
virtual Command *command(const QString &id) const = 0;
|
virtual Command *command(const Id &id) const = 0;
|
||||||
virtual ActionContainer *actionContainer(const QString &id) const = 0;
|
virtual ActionContainer *actionContainer(const Id &id) const = 0;
|
||||||
|
|
||||||
virtual QList<Command *> commands() const = 0;
|
virtual QList<Command *> commands() const = 0;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -82,20 +82,20 @@ public:
|
|||||||
void initialize();
|
void initialize();
|
||||||
|
|
||||||
//ActionManager Interface
|
//ActionManager Interface
|
||||||
ActionContainer *createMenu(const QString &id);
|
ActionContainer *createMenu(const Id &id);
|
||||||
ActionContainer *createMenuBar(const QString &id);
|
ActionContainer *createMenuBar(const Id &id);
|
||||||
|
|
||||||
Command *registerAction(QAction *action, const QString &id,
|
Command *registerAction(QAction *action, const Id &id,
|
||||||
const Context &context);
|
const Context &context);
|
||||||
Command *registerShortcut(QShortcut *shortcut, const QString &id,
|
Command *registerShortcut(QShortcut *shortcut, const Id &id,
|
||||||
const Context &context);
|
const Context &context);
|
||||||
|
|
||||||
Core::Command *command(const QString &id) const;
|
Core::Command *command(const Id &id) const;
|
||||||
Core::ActionContainer *actionContainer(const QString &id) const;
|
Core::ActionContainer *actionContainer(const Id &id) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool hasContext(const Context &context) const;
|
bool hasContext(const Context &context) const;
|
||||||
Command *registerOverridableAction(QAction *action, const QString &id,
|
Command *registerOverridableAction(QAction *action, const Id &id,
|
||||||
bool checkUnique);
|
bool checkUnique);
|
||||||
|
|
||||||
static ActionManagerPrivate *m_instance;
|
static ActionManagerPrivate *m_instance;
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
#include <coreplugin/imode.h>
|
#include <coreplugin/imode.h>
|
||||||
#include <coreplugin/settingsdatabase.h>
|
#include <coreplugin/settingsdatabase.h>
|
||||||
#include <coreplugin/variablemanager.h>
|
#include <coreplugin/variablemanager.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
|
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
|
||||||
@@ -295,12 +296,12 @@ EditorManager::EditorManager(ICore *core, QWidget *parent) :
|
|||||||
// Window menu separators
|
// Window menu separators
|
||||||
QAction *tmpaction = new QAction(this);
|
QAction *tmpaction = new QAction(this);
|
||||||
tmpaction->setSeparator(true);
|
tmpaction->setSeparator(true);
|
||||||
cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Window.Sep.Split"), editManagerContext);
|
cmd = am->registerAction(tmpaction, "QtCreator.Window.Sep.Split", editManagerContext);
|
||||||
mwindow->addAction(cmd, Constants::G_WINDOW_SPLIT);
|
mwindow->addAction(cmd, Constants::G_WINDOW_SPLIT);
|
||||||
|
|
||||||
tmpaction = new QAction(this);
|
tmpaction = new QAction(this);
|
||||||
tmpaction->setSeparator(true);
|
tmpaction->setSeparator(true);
|
||||||
cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Window.Sep.Navigate"), editManagerContext);
|
cmd = am->registerAction(tmpaction, "QtCreator.Window.Sep.Navigate", editManagerContext);
|
||||||
mwindow->addAction(cmd, Constants::G_WINDOW_NAVIGATE);
|
mwindow->addAction(cmd, Constants::G_WINDOW_NAVIGATE);
|
||||||
|
|
||||||
// Close Action
|
// Close Action
|
||||||
|
|||||||
@@ -34,6 +34,7 @@
|
|||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/minisplitter.h>
|
#include <coreplugin/minisplitter.h>
|
||||||
#include <coreplugin/sidebar.h>
|
#include <coreplugin/sidebar.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
|
|
||||||
#include <coreplugin/editormanager/editorview.h>
|
#include <coreplugin/editormanager/editorview.h>
|
||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
|
|
||||||
#include "core_global.h"
|
#include "core_global.h"
|
||||||
#include "dialogs/iwizard.h"
|
#include "dialogs/iwizard.h"
|
||||||
|
#include "uniqueidmanager.h"
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtCore/QSettings>
|
#include <QtCore/QSettings>
|
||||||
|
|||||||
@@ -779,7 +779,7 @@ void MainWindow::registerDefaultActions()
|
|||||||
#ifndef Q_WS_MAC // doesn't have the "About" actions in the Help menu
|
#ifndef Q_WS_MAC // doesn't have the "About" actions in the Help menu
|
||||||
tmpaction = new QAction(this);
|
tmpaction = new QAction(this);
|
||||||
tmpaction->setSeparator(true);
|
tmpaction->setSeparator(true);
|
||||||
cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Help.Sep.About"), globalContext);
|
cmd = am->registerAction(tmpaction, "QtCreator.Help.Sep.About", globalContext);
|
||||||
mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
|
mhelp->addAction(cmd, Constants::G_HELP_ABOUT);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
#include "modemanager.h"
|
#include "modemanager.h"
|
||||||
#include "actionmanager/actionmanager.h"
|
#include "actionmanager/actionmanager.h"
|
||||||
#include "actionmanager/command.h"
|
#include "actionmanager/command.h"
|
||||||
|
#include "uniqueidmanager.h"
|
||||||
|
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
|
||||||
@@ -173,8 +174,8 @@ void NavigationWidget::setFactories(const QList<INavigationWidgetFactory *> fact
|
|||||||
connect(shortcut, SIGNAL(activated()), this, SLOT(activateSubWidget()));
|
connect(shortcut, SIGNAL(activated()), this, SLOT(activateSubWidget()));
|
||||||
m_shortcutMap.insert(shortcut, id);
|
m_shortcutMap.insert(shortcut, id);
|
||||||
|
|
||||||
Core::Command *cmd = am->registerShortcut(shortcut,
|
Command *cmd = am->registerShortcut(shortcut,
|
||||||
QLatin1String("QtCreator.Sidebar.") + id, navicontext);
|
Id(QLatin1String("QtCreator.Sidebar.") + id), navicontext);
|
||||||
cmd->setDefaultKeySequence(factory->activationSequence());
|
cmd->setDefaultKeySequence(factory->activationSequence());
|
||||||
m_commandMap.insert(id, cmd);
|
m_commandMap.insert(id, cmd);
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
#include <coreplugin/findplaceholder.h>
|
#include <coreplugin/findplaceholder.h>
|
||||||
#include <coreplugin/editormanager/ieditor.h>
|
#include <coreplugin/editormanager/ieditor.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
|
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
|
||||||
@@ -317,7 +318,7 @@ void OutputPaneManager::init()
|
|||||||
|
|
||||||
QAction *sep = new QAction(this);
|
QAction *sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("Coreplugin.OutputPane.Sep"), globalcontext);
|
cmd = am->registerAction(sep, "Coreplugin.OutputPane.Sep", globalcontext);
|
||||||
mpanes->addAction(cmd, "Coreplugin.OutputPane.ActionsGroup");
|
mpanes->addAction(cmd, "Coreplugin.OutputPane.ActionsGroup");
|
||||||
|
|
||||||
QList<IOutputPane*> panes = ExtensionSystem::PluginManager::instance()
|
QList<IOutputPane*> panes = ExtensionSystem::PluginManager::instance()
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ bool CodepasterPlugin::initialize(const QStringList &arguments, QString *error_m
|
|||||||
actionManager->actionContainer(Core::Constants::M_TOOLS);
|
actionManager->actionContainer(Core::Constants::M_TOOLS);
|
||||||
|
|
||||||
Core::ActionContainer *cpContainer =
|
Core::ActionContainer *cpContainer =
|
||||||
actionManager->createMenu(QLatin1String("CodePaster"));
|
actionManager->createMenu(Core::Id("CodePaster"));
|
||||||
cpContainer->menu()->setTitle(tr("&Code Pasting"));
|
cpContainer->menu()->setTitle(tr("&Code Pasting"));
|
||||||
toolsContainer->addMenu(cpContainer);
|
toolsContainer->addMenu(cpContainer);
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ Core::Command *createSeparator(Core::ActionManager *am,
|
|||||||
{
|
{
|
||||||
QAction *separator = new QAction(parent);
|
QAction *separator = new QAction(parent);
|
||||||
separator->setSeparator(true);
|
separator->setSeparator(true);
|
||||||
return am->registerAction(separator, QLatin1String(id), context);
|
return am->registerAction(separator, Core::Id(id), context);
|
||||||
}
|
}
|
||||||
|
|
||||||
CppPlugin *CppPlugin::m_instance = 0;
|
CppPlugin *CppPlugin::m_instance = 0;
|
||||||
@@ -242,7 +242,7 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess
|
|||||||
Core::ActionContainer *contextMenu= am->createMenu(CppEditor::Constants::M_CONTEXT);
|
Core::ActionContainer *contextMenu= am->createMenu(CppEditor::Constants::M_CONTEXT);
|
||||||
|
|
||||||
Core::Command *cmd;
|
Core::Command *cmd;
|
||||||
Core::ActionContainer *cppToolsMenu = am->actionContainer(QLatin1String(CppTools::Constants::M_TOOLS_CPP));
|
Core::ActionContainer *cppToolsMenu = am->actionContainer(Core::Id(CppTools::Constants::M_TOOLS_CPP));
|
||||||
|
|
||||||
QAction *jumpToDefinition = new QAction(tr("Follow Symbol Under Cursor"), this);
|
QAction *jumpToDefinition = new QAction(tr("Follow Symbol Under Cursor"), this);
|
||||||
cmd = am->registerAction(jumpToDefinition,
|
cmd = am->registerAction(jumpToDefinition,
|
||||||
@@ -288,7 +288,7 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess
|
|||||||
Core::Context globalContext(Core::Constants::C_GLOBAL);
|
Core::Context globalContext(Core::Constants::C_GLOBAL);
|
||||||
cppToolsMenu->addAction(createSeparator(am, this, globalContext, CppEditor::Constants::SEPARATOR2));
|
cppToolsMenu->addAction(createSeparator(am, this, globalContext, CppEditor::Constants::SEPARATOR2));
|
||||||
m_updateCodeModelAction = new QAction(tr("Update Code Model"), this);
|
m_updateCodeModelAction = new QAction(tr("Update Code Model"), this);
|
||||||
cmd = am->registerAction(m_updateCodeModelAction, QLatin1String(Constants::UPDATE_CODEMODEL), globalContext);
|
cmd = am->registerAction(m_updateCodeModelAction, Core::Id(Constants::UPDATE_CODEMODEL), globalContext);
|
||||||
CppTools::CppModelManagerInterface *cppModelManager = CppTools::CppModelManagerInterface::instance();
|
CppTools::CppModelManagerInterface *cppModelManager = CppTools::CppModelManagerInterface::instance();
|
||||||
connect(m_updateCodeModelAction, SIGNAL(triggered()), cppModelManager, SLOT(updateModifiedSourceFiles()));
|
connect(m_updateCodeModelAction, SIGNAL(triggered()), cppModelManager, SLOT(updateModifiedSourceFiles()));
|
||||||
cppToolsMenu->addAction(cmd);
|
cppToolsMenu->addAction(cmd);
|
||||||
|
|||||||
@@ -271,8 +271,7 @@ bool CVSPlugin::initialize(const QStringList & /*arguments */, QString *errorMes
|
|||||||
Core::ActionManager *ami = core->actionManager();
|
Core::ActionManager *ami = core->actionManager();
|
||||||
Core::ActionContainer *toolsContainer = ami->actionContainer(M_TOOLS);
|
Core::ActionContainer *toolsContainer = ami->actionContainer(M_TOOLS);
|
||||||
|
|
||||||
Core::ActionContainer *cvsMenu =
|
Core::ActionContainer *cvsMenu = ami->createMenu(Core::Id(CMD_ID_CVS_MENU));
|
||||||
ami->createMenu(QLatin1String(CMD_ID_CVS_MENU));
|
|
||||||
cvsMenu->menu()->setTitle(tr("&CVS"));
|
cvsMenu->menu()->setTitle(tr("&CVS"));
|
||||||
toolsContainer->addMenu(cvsMenu);
|
toolsContainer->addMenu(cvsMenu);
|
||||||
m_menuAction = cvsMenu->menu()->menuAction();
|
m_menuAction = cvsMenu->menu()->menuAction();
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ DebuggerUISwitcher::DebuggerUISwitcher(BaseMode *mode, QObject* parent)
|
|||||||
SLOT(updateDockWidgetSettings()));
|
SLOT(updateDockWidgetSettings()));
|
||||||
|
|
||||||
d->m_debugMenu = am->actionContainer(ProjectExplorer::Constants::M_DEBUG);
|
d->m_debugMenu = am->actionContainer(ProjectExplorer::Constants::M_DEBUG);
|
||||||
d->m_viewsMenu = am->actionContainer(QLatin1String(Core::Constants::M_WINDOW_VIEWS));
|
d->m_viewsMenu = am->actionContainer(Core::Id(Core::Constants::M_WINDOW_VIEWS));
|
||||||
QTC_ASSERT(d->m_viewsMenu, return)
|
QTC_ASSERT(d->m_viewsMenu, return)
|
||||||
d->m_debuggerLanguageMenu = am->createMenu(Constants::M_DEBUG_DEBUGGING_LANGUAGES);
|
d->m_debuggerLanguageMenu = am->createMenu(Constants::M_DEBUG_DEBUGGING_LANGUAGES);
|
||||||
|
|
||||||
@@ -355,20 +355,20 @@ void DebuggerUISwitcher::createViewsMenuItems()
|
|||||||
// Add menu items
|
// Add menu items
|
||||||
Command *cmd = 0;
|
Command *cmd = 0;
|
||||||
cmd = am->registerAction(d->m_openMemoryEditorAction,
|
cmd = am->registerAction(d->m_openMemoryEditorAction,
|
||||||
QLatin1String("Debugger.Views.OpenMemoryEditor"),
|
Core::Id("Debugger.Views.OpenMemoryEditor"),
|
||||||
Context(Constants::C_DEBUGMODE));
|
Core::Context(Constants::C_DEBUGMODE));
|
||||||
d->m_viewsMenu->addAction(cmd);
|
d->m_viewsMenu->addAction(cmd);
|
||||||
cmd = am->registerAction(d->m_mainWindow->menuSeparator1(),
|
cmd = am->registerAction(d->m_mainWindow->menuSeparator1(),
|
||||||
QLatin1String("Debugger.Views.Separator1"), globalcontext);
|
Core::Id("Debugger.Views.Separator1"), globalcontext);
|
||||||
d->m_viewsMenu->addAction(cmd);
|
d->m_viewsMenu->addAction(cmd);
|
||||||
cmd = am->registerAction(d->m_mainWindow->toggleLockedAction(),
|
cmd = am->registerAction(d->m_mainWindow->toggleLockedAction(),
|
||||||
QLatin1String("Debugger.Views.ToggleLocked"), globalcontext);
|
Core::Id("Debugger.Views.ToggleLocked"), globalcontext);
|
||||||
d->m_viewsMenu->addAction(cmd);
|
d->m_viewsMenu->addAction(cmd);
|
||||||
cmd = am->registerAction(d->m_mainWindow->menuSeparator2(),
|
cmd = am->registerAction(d->m_mainWindow->menuSeparator2(),
|
||||||
QLatin1String("Debugger.Views.Separator2"), globalcontext);
|
Core::Id("Debugger.Views.Separator2"), globalcontext);
|
||||||
d->m_viewsMenu->addAction(cmd);
|
d->m_viewsMenu->addAction(cmd);
|
||||||
cmd = am->registerAction(d->m_mainWindow->resetLayoutAction(),
|
cmd = am->registerAction(d->m_mainWindow->resetLayoutAction(),
|
||||||
QLatin1String("Debugger.Views.ResetSimple"), globalcontext);
|
Core::Id("Debugger.Views.ResetSimple"), globalcontext);
|
||||||
d->m_viewsMenu->addAction(cmd);
|
d->m_viewsMenu->addAction(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -394,7 +394,7 @@ void DebuggerUISwitcher::addLanguage(const DebuggerLanguage &languageId,
|
|||||||
debuggableLang->setText(languageName);
|
debuggableLang->setText(languageName);
|
||||||
d->m_languageActionGroup->addAction(debuggableLang);
|
d->m_languageActionGroup->addAction(debuggableLang);
|
||||||
Command *activeDebugLanguageCmd = am->registerAction(debuggableLang,
|
Command *activeDebugLanguageCmd = am->registerAction(debuggableLang,
|
||||||
"Debugger.DebugLanguage." + languageName,
|
QString("Debugger.DebugLanguage." + languageName),
|
||||||
Context(Core::Constants::C_GLOBAL));
|
Context(Core::Constants::C_GLOBAL));
|
||||||
d->m_debuggerLanguageMenu->addAction(activeDebugLanguageCmd);
|
d->m_debuggerLanguageMenu->addAction(activeDebugLanguageCmd);
|
||||||
|
|
||||||
@@ -610,7 +610,7 @@ QDockWidget *DebuggerUISwitcher::createDockWidget(const DebuggerLanguage &langua
|
|||||||
ActionManager *am = ICore::instance()->actionManager();
|
ActionManager *am = ICore::instance()->actionManager();
|
||||||
QAction *toggleViewAction = dockWidget->toggleViewAction();
|
QAction *toggleViewAction = dockWidget->toggleViewAction();
|
||||||
Command *cmd = am->registerAction(toggleViewAction,
|
Command *cmd = am->registerAction(toggleViewAction,
|
||||||
"Debugger." + dockWidget->objectName(), globalContext);
|
QString("Debugger." + dockWidget->objectName()), globalContext);
|
||||||
cmd->setAttribute(Command::CA_Hide);
|
cmd->setAttribute(Command::CA_Hide);
|
||||||
d->m_viewsMenu->addAction(cmd);
|
d->m_viewsMenu->addAction(cmd);
|
||||||
|
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ void FormEditorW::setupViewActions()
|
|||||||
{
|
{
|
||||||
// Populate "View" menu of form editor menu
|
// Populate "View" menu of form editor menu
|
||||||
Core::ActionManager *am = m_core->actionManager();
|
Core::ActionManager *am = m_core->actionManager();
|
||||||
Core::ActionContainer *viewMenu = am->actionContainer(QLatin1String(Core::Constants::M_WINDOW_VIEWS));
|
Core::ActionContainer *viewMenu = am->actionContainer(Core::Id(Core::Constants::M_WINDOW_VIEWS));
|
||||||
QTC_ASSERT(viewMenu, return)
|
QTC_ASSERT(viewMenu, return)
|
||||||
|
|
||||||
addDockViewAction(am, viewMenu, WidgetBoxSubWindow, m_contexts,
|
addDockViewAction(am, viewMenu, WidgetBoxSubWindow, m_contexts,
|
||||||
@@ -441,7 +441,7 @@ void FormEditorW::setupActions()
|
|||||||
//'delete' action. Do not set a shortcut as Designer handles
|
//'delete' action. Do not set a shortcut as Designer handles
|
||||||
// the 'Delete' key by event filter. Setting a shortcut triggers
|
// the 'Delete' key by event filter. Setting a shortcut triggers
|
||||||
// buggy behaviour on Mac (Pressing Delete in QLineEdit removing the widget).
|
// buggy behaviour on Mac (Pressing Delete in QLineEdit removing the widget).
|
||||||
command = am->registerAction(m_fwm->actionDelete(), QLatin1String("FormEditor.Edit.Delete"), m_contexts);
|
command = am->registerAction(m_fwm->actionDelete(), Core::Id("FormEditor.Edit.Delete"), m_contexts);
|
||||||
bindShortcut(command, m_fwm->actionDelete());
|
bindShortcut(command, m_fwm->actionDelete());
|
||||||
command->setAttribute(Core::Command::CA_Hide);
|
command->setAttribute(Core::Command::CA_Hide);
|
||||||
medit->addAction(command, Core::Constants::G_EDIT_COPYPASTE);
|
medit->addAction(command, Core::Constants::G_EDIT_COPYPASTE);
|
||||||
@@ -452,7 +452,7 @@ void FormEditorW::setupActions()
|
|||||||
|
|
||||||
m_modeActionSeparator = new QAction(this);
|
m_modeActionSeparator = new QAction(this);
|
||||||
m_modeActionSeparator->setSeparator(true);
|
m_modeActionSeparator->setSeparator(true);
|
||||||
command = am->registerAction(m_modeActionSeparator, QLatin1String("FormEditor.Sep.ModeActions"), m_contexts);
|
command = am->registerAction(m_modeActionSeparator, Core::Id("FormEditor.Sep.ModeActions"), m_contexts);
|
||||||
medit->addAction(command, Core::Constants::G_EDIT_OTHER);
|
medit->addAction(command, Core::Constants::G_EDIT_OTHER);
|
||||||
|
|
||||||
m_toolActionIds.push_back(QLatin1String("FormEditor.WidgetEditor"));
|
m_toolActionIds.push_back(QLatin1String("FormEditor.WidgetEditor"));
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <coreplugin/icontext.h>
|
#include <coreplugin/icontext.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
|
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
|
||||||
@@ -198,11 +199,11 @@ void FindPlugin::setupMenu()
|
|||||||
QAction *separator;
|
QAction *separator;
|
||||||
separator = new QAction(this);
|
separator = new QAction(this);
|
||||||
separator->setSeparator(true);
|
separator->setSeparator(true);
|
||||||
cmd = am->registerAction(separator, QLatin1String("Find.Sep.Flags"), globalcontext);
|
cmd = am->registerAction(separator, "Find.Sep.Flags", globalcontext);
|
||||||
mfind->addAction(cmd, Constants::G_FIND_FLAGS);
|
mfind->addAction(cmd, Constants::G_FIND_FLAGS);
|
||||||
separator = new QAction(this);
|
separator = new QAction(this);
|
||||||
separator->setSeparator(true);
|
separator->setSeparator(true);
|
||||||
cmd = am->registerAction(separator, QLatin1String("Find.Sep.Actions"), globalcontext);
|
cmd = am->registerAction(separator, "Find.Sep.Actions", globalcontext);
|
||||||
mfind->addAction(cmd, Constants::G_FIND_ACTIONS);
|
mfind->addAction(cmd, Constants::G_FIND_ACTIONS);
|
||||||
|
|
||||||
Core::ActionContainer *mfindadvanced = am->createMenu(Constants::M_FIND_ADVANCED);
|
Core::ActionContainer *mfindadvanced = am->createMenu(Constants::M_FIND_ADVANCED);
|
||||||
@@ -234,7 +235,7 @@ void FindPlugin::setupFilterMenuItems()
|
|||||||
haveEnabledFilters = true;
|
haveEnabledFilters = true;
|
||||||
action->setEnabled(isEnabled);
|
action->setEnabled(isEnabled);
|
||||||
action->setData(qVariantFromValue(filter));
|
action->setData(qVariantFromValue(filter));
|
||||||
cmd = am->registerAction(action, QLatin1String("FindFilter.")+filter->id(), globalcontext);
|
cmd = am->registerAction(action, QString(QLatin1String("FindFilter.")+filter->id()), globalcontext);
|
||||||
cmd->setDefaultKeySequence(filter->defaultShortcut());
|
cmd->setDefaultKeySequence(filter->defaultShortcut());
|
||||||
mfindadvanced->addAction(cmd);
|
mfindadvanced->addAction(cmd);
|
||||||
d->m_filterActions.insert(filter, action);
|
d->m_filterActions.insert(filter, action);
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
#include <coreplugin/actionmanager/actioncontainer.h>
|
#include <coreplugin/actionmanager/actioncontainer.h>
|
||||||
#include <coreplugin/actionmanager/command.h>
|
#include <coreplugin/actionmanager/command.h>
|
||||||
#include <coreplugin/findplaceholder.h>
|
#include <coreplugin/findplaceholder.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
|
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
|
||||||
@@ -151,7 +152,7 @@ FindToolBar::FindToolBar(FindPlugin *plugin, CurrentDocumentFind *currentDocumen
|
|||||||
|
|
||||||
if (QApplication::clipboard()->supportsFindBuffer()) {
|
if (QApplication::clipboard()->supportsFindBuffer()) {
|
||||||
m_enterFindStringAction = new QAction(tr("Enter Find String"), this);
|
m_enterFindStringAction = new QAction(tr("Enter Find String"), this);
|
||||||
cmd = am->registerAction(m_enterFindStringAction, QLatin1String("Find.EnterFindString"), globalcontext);
|
cmd = am->registerAction(m_enterFindStringAction, "Find.EnterFindString", globalcontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+E")));
|
cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+E")));
|
||||||
mfind->addAction(cmd, Constants::G_FIND_ACTIONS);
|
mfind->addAction(cmd, Constants::G_FIND_ACTIONS);
|
||||||
connect(m_enterFindStringAction, SIGNAL(triggered()), this, SLOT(putSelectionToFindClipboard()));
|
connect(m_enterFindStringAction, SIGNAL(triggered()), this, SLOT(putSelectionToFindClipboard()));
|
||||||
|
|||||||
@@ -39,6 +39,7 @@
|
|||||||
#include <coreplugin/actionmanager/command.h>
|
#include <coreplugin/actionmanager/command.h>
|
||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/icontext.h>
|
#include <coreplugin/icontext.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
#include <QtCore/QFile>
|
#include <QtCore/QFile>
|
||||||
@@ -325,7 +326,7 @@ SearchResultWindow::SearchResultWindow() : d(new SearchResultWindowPrivate)
|
|||||||
d->m_expandCollapseAction->setCheckable(true);
|
d->m_expandCollapseAction->setCheckable(true);
|
||||||
d->m_expandCollapseAction->setIcon(QIcon(QLatin1String(":/find/images/expand.png")));
|
d->m_expandCollapseAction->setIcon(QIcon(QLatin1String(":/find/images/expand.png")));
|
||||||
Core::Command *cmd = Core::ICore::instance()->actionManager()->registerAction(
|
Core::Command *cmd = Core::ICore::instance()->actionManager()->registerAction(
|
||||||
d->m_expandCollapseAction, QLatin1String("Find.ExpandAll"),
|
d->m_expandCollapseAction, "Find.ExpandAll",
|
||||||
Core::Context(Core::Constants::C_GLOBAL));
|
Core::Context(Core::Constants::C_GLOBAL));
|
||||||
d->m_expandCollapseButton->setDefaultAction(cmd->action());
|
d->m_expandCollapseButton->setDefaultAction(cmd->action());
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ static const VCSBase::VCSBaseSubmitEditorParameters submitParameters = {
|
|||||||
|
|
||||||
static Core::Command *createSeparator(Core::ActionManager *am,
|
static Core::Command *createSeparator(Core::ActionManager *am,
|
||||||
const Core::Context &context,
|
const Core::Context &context,
|
||||||
const QString &id,
|
const Core::Id &id,
|
||||||
QObject *parent)
|
QObject *parent)
|
||||||
{
|
{
|
||||||
QAction *a = new QAction(parent);
|
QAction *a = new QAction(parent);
|
||||||
@@ -356,7 +356,7 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
|||||||
tr("Unstage File from Commit"), tr("Unstage \"%1\" from Commit"),
|
tr("Unstage File from Commit"), tr("Unstage \"%1\" from Commit"),
|
||||||
QLatin1String("Git.Unstage"), globalcontext, true, SLOT(unstageFile()));
|
QLatin1String("Git.Unstage"), globalcontext, true, SLOT(unstageFile()));
|
||||||
|
|
||||||
gitContainer->addAction(createSeparator(actionManager, globalcontext, QLatin1String("Git.Sep.Project"), this));
|
gitContainer->addAction(createSeparator(actionManager, globalcontext, Core::Id("Git.Sep.Project"), this));
|
||||||
|
|
||||||
parameterActionCommand
|
parameterActionCommand
|
||||||
= createProjectAction(actionManager, gitContainer,
|
= createProjectAction(actionManager, gitContainer,
|
||||||
@@ -379,7 +379,7 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
|||||||
QLatin1String("Git.CleanProject"), globalcontext,
|
QLatin1String("Git.CleanProject"), globalcontext,
|
||||||
true, SLOT(cleanProject()));
|
true, SLOT(cleanProject()));
|
||||||
|
|
||||||
gitContainer->addAction(createSeparator(actionManager, globalcontext, QLatin1String("Git.Sep.Repository"), this));
|
gitContainer->addAction(createSeparator(actionManager, globalcontext, Core::Id("Git.Sep.Repository"), this));
|
||||||
|
|
||||||
createRepositoryAction(actionManager, gitContainer,
|
createRepositoryAction(actionManager, gitContainer,
|
||||||
tr("Diff Repository"), QLatin1String("Git.DiffRepository"),
|
tr("Diff Repository"), QLatin1String("Git.DiffRepository"),
|
||||||
@@ -424,7 +424,7 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
|||||||
tr("Launch gitk"), QLatin1String("Git.LaunchGitK"),
|
tr("Launch gitk"), QLatin1String("Git.LaunchGitK"),
|
||||||
globalcontext, true, &GitClient::launchGitK);
|
globalcontext, true, &GitClient::launchGitK);
|
||||||
|
|
||||||
gitContainer->addAction(createSeparator(actionManager, globalcontext, QLatin1String("Git.Sep.Global"), this));
|
gitContainer->addAction(createSeparator(actionManager, globalcontext, Core::Id("Git.Sep.Global"), this));
|
||||||
|
|
||||||
ActionCommandPair actionCommand =
|
ActionCommandPair actionCommand =
|
||||||
createRepositoryAction(actionManager, gitContainer,
|
createRepositoryAction(actionManager, gitContainer,
|
||||||
@@ -463,7 +463,7 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
|||||||
tr("Push"), QLatin1String("Git.Push"),
|
tr("Push"), QLatin1String("Git.Push"),
|
||||||
globalcontext, true, SLOT(push()));
|
globalcontext, true, SLOT(push()));
|
||||||
|
|
||||||
gitContainer->addAction(createSeparator(actionManager, globalcontext, QLatin1String("Git.Sep.Branch"), this));
|
gitContainer->addAction(createSeparator(actionManager, globalcontext, Core::Id("Git.Sep.Branch"), this));
|
||||||
|
|
||||||
createRepositoryAction(actionManager, gitContainer,
|
createRepositoryAction(actionManager, gitContainer,
|
||||||
tr("Branches..."), QLatin1String("Git.BranchList"),
|
tr("Branches..."), QLatin1String("Git.BranchList"),
|
||||||
@@ -479,8 +479,8 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
|||||||
gitContainer->addAction(showCommitCommand);
|
gitContainer->addAction(showCommitCommand);
|
||||||
|
|
||||||
// Subversion in a submenu.
|
// Subversion in a submenu.
|
||||||
gitContainer->addAction(createSeparator(actionManager, globalcontext, QLatin1String("Git.Sep.Subversion"), this));
|
gitContainer->addAction(createSeparator(actionManager, globalcontext, Core::Id("Git.Sep.Subversion"), this));
|
||||||
Core::ActionContainer *subversionMenu = actionManager->createMenu(QLatin1String("Git.Subversion"));
|
Core::ActionContainer *subversionMenu = actionManager->createMenu(Core::Id("Git.Subversion"));
|
||||||
subversionMenu->menu()->setTitle(tr("Subversion"));
|
subversionMenu->menu()->setTitle(tr("Subversion"));
|
||||||
gitContainer->addMenu(subversionMenu);
|
gitContainer->addMenu(subversionMenu);
|
||||||
|
|
||||||
@@ -498,7 +498,7 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
|||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
Core::Command *tCommand
|
Core::Command *tCommand
|
||||||
= actionManager->registerAction(snapShotActions.at(i),
|
= actionManager->registerAction(snapShotActions.at(i),
|
||||||
QLatin1String("Git.Snapshot.") + QString::number(i),
|
QString(QLatin1String("Git.Snapshot.") + QString::number(i)),
|
||||||
globalcontext);
|
globalcontext);
|
||||||
gitContainer->addAction(tCommand);
|
gitContainer->addAction(tCommand);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -183,13 +183,12 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
|
|||||||
QAction *action = new QAction(QIcon(QLatin1String(IMAGEPATH "home.png")),
|
QAction *action = new QAction(QIcon(QLatin1String(IMAGEPATH "home.png")),
|
||||||
tr("Home"), this);
|
tr("Home"), this);
|
||||||
Core::ActionManager *am = m_core->actionManager();
|
Core::ActionManager *am = m_core->actionManager();
|
||||||
Core::Command *cmd = am->registerAction(action, QLatin1String("Help.Home"),
|
Core::Command *cmd = am->registerAction(action, "Help.Home", globalcontext);
|
||||||
globalcontext);
|
|
||||||
connect(action, SIGNAL(triggered()), m_centralWidget, SLOT(home()));
|
connect(action, SIGNAL(triggered()), m_centralWidget, SLOT(home()));
|
||||||
|
|
||||||
action = new QAction(QIcon(QLatin1String(IMAGEPATH "previous.png")),
|
action = new QAction(QIcon(QLatin1String(IMAGEPATH "previous.png")),
|
||||||
tr("Previous Page"), this);
|
tr("Previous Page"), this);
|
||||||
cmd = am->registerAction(action, QLatin1String("Help.Previous"), modecontext);
|
cmd = am->registerAction(action, Core::Id("Help.Previous"), modecontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence::Back);
|
cmd->setDefaultKeySequence(QKeySequence::Back);
|
||||||
action->setEnabled(m_centralWidget->isBackwardAvailable());
|
action->setEnabled(m_centralWidget->isBackwardAvailable());
|
||||||
connect(action, SIGNAL(triggered()), m_centralWidget, SLOT(backward()));
|
connect(action, SIGNAL(triggered()), m_centralWidget, SLOT(backward()));
|
||||||
@@ -198,7 +197,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
|
|||||||
|
|
||||||
action = new QAction(QIcon(QLatin1String(IMAGEPATH "next.png")), tr("Next Page"),
|
action = new QAction(QIcon(QLatin1String(IMAGEPATH "next.png")), tr("Next Page"),
|
||||||
this);
|
this);
|
||||||
cmd = am->registerAction(action, QLatin1String("Help.Next"), modecontext);
|
cmd = am->registerAction(action, Core::Id("Help.Next"), modecontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence::Forward);
|
cmd->setDefaultKeySequence(QKeySequence::Forward);
|
||||||
action->setEnabled(m_centralWidget->isForwardAvailable());
|
action->setEnabled(m_centralWidget->isForwardAvailable());
|
||||||
connect(action, SIGNAL(triggered()), m_centralWidget, SLOT(forward()));
|
connect(action, SIGNAL(triggered()), m_centralWidget, SLOT(forward()));
|
||||||
@@ -207,7 +206,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
|
|||||||
|
|
||||||
action = new QAction(QIcon(QLatin1String(IMAGEPATH "bookmark.png")),
|
action = new QAction(QIcon(QLatin1String(IMAGEPATH "bookmark.png")),
|
||||||
tr("Add Bookmark"), this);
|
tr("Add Bookmark"), this);
|
||||||
cmd = am->registerAction(action, QLatin1String("Help.AddBookmark"),
|
cmd = am->registerAction(action, Core::Id("Help.AddBookmark"),
|
||||||
modecontext);
|
modecontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::Key_M));
|
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::Key_M));
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(addBookmark()));
|
connect(action, SIGNAL(triggered()), this, SLOT(addBookmark()));
|
||||||
@@ -215,17 +214,17 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
|
|||||||
// Add Contents, Index, and Context menu items and a separator to the Help menu
|
// Add Contents, Index, and Context menu items and a separator to the Help menu
|
||||||
action = new QAction(QIcon::fromTheme(QLatin1String("help-contents")),
|
action = new QAction(QIcon::fromTheme(QLatin1String("help-contents")),
|
||||||
tr(SB_CONTENTS), this);
|
tr(SB_CONTENTS), this);
|
||||||
cmd = am->registerAction(action, QLatin1String("Help.Contents"), globalcontext);
|
cmd = am->registerAction(action, Core::Id("Help.Contents"), globalcontext);
|
||||||
am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP);
|
am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(activateContents()));
|
connect(action, SIGNAL(triggered()), this, SLOT(activateContents()));
|
||||||
|
|
||||||
action = new QAction(tr(SB_INDEX), this);
|
action = new QAction(tr(SB_INDEX), this);
|
||||||
cmd = am->registerAction(action, QLatin1String("Help.Index"), globalcontext);
|
cmd = am->registerAction(action, Core::Id("Help.Index"), globalcontext);
|
||||||
am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP);
|
am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(activateIndex()));
|
connect(action, SIGNAL(triggered()), this, SLOT(activateIndex()));
|
||||||
|
|
||||||
action = new QAction(tr("Context Help"), this);
|
action = new QAction(tr("Context Help"), this);
|
||||||
cmd = am->registerAction(action, QLatin1String("Help.Context"), globalcontext);
|
cmd = am->registerAction(action, Core::Id("Help.Context"), globalcontext);
|
||||||
am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP);
|
am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP);
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Qt::Key_F1));
|
cmd->setDefaultKeySequence(QKeySequence(Qt::Key_F1));
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(activateContext()));
|
connect(action, SIGNAL(triggered()), this, SLOT(activateContext()));
|
||||||
@@ -233,7 +232,7 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
|
|||||||
#ifndef Q_WS_MAC
|
#ifndef Q_WS_MAC
|
||||||
action = new QAction(this);
|
action = new QAction(this);
|
||||||
action->setSeparator(true);
|
action->setSeparator(true);
|
||||||
cmd = am->registerAction(action, QLatin1String("Help.Separator"), globalcontext);
|
cmd = am->registerAction(action, Core::Id("Help.Separator"), globalcontext);
|
||||||
am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP);
|
am->actionContainer(M_HELP)->addAction(cmd, Core::Constants::G_HELP_HELP);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -410,20 +409,20 @@ void HelpPlugin::setupUi()
|
|||||||
QShortcut *shortcut = new QShortcut(m_splitter);
|
QShortcut *shortcut = new QShortcut(m_splitter);
|
||||||
shortcut->setWhatsThis(tr("Activate Index in Help mode"));
|
shortcut->setWhatsThis(tr("Activate Index in Help mode"));
|
||||||
Core::Command* cmd = am->registerShortcut(shortcut,
|
Core::Command* cmd = am->registerShortcut(shortcut,
|
||||||
QLatin1String("Help.IndexShortcut"), modecontext);
|
Core::Id("Help.IndexShortcut"), modecontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_I));
|
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_I));
|
||||||
connect(shortcut, SIGNAL(activated()), this, SLOT(activateIndex()));
|
connect(shortcut, SIGNAL(activated()), this, SLOT(activateIndex()));
|
||||||
shortcutMap.insert(QLatin1String(SB_INDEX), cmd);
|
shortcutMap.insert(QLatin1String(SB_INDEX), cmd);
|
||||||
|
|
||||||
ContentWindow *contentWindow = new ContentWindow();
|
ContentWindow *contentWindow = new ContentWindow();
|
||||||
contentWindow->setWindowTitle(tr(SB_CONTENTS));
|
contentWindow->setWindowTitle(tr(SB_CONTENTS));
|
||||||
m_contentItem = new Core::SideBarItem(contentWindow, QLatin1String(SB_CONTENTS));
|
m_contentItem = new Core::SideBarItem(contentWindow, Core::Id(SB_CONTENTS));
|
||||||
connect(contentWindow, SIGNAL(linkActivated(QUrl)), m_centralWidget,
|
connect(contentWindow, SIGNAL(linkActivated(QUrl)), m_centralWidget,
|
||||||
SLOT(setSource(QUrl)));
|
SLOT(setSource(QUrl)));
|
||||||
|
|
||||||
shortcut = new QShortcut(m_splitter);
|
shortcut = new QShortcut(m_splitter);
|
||||||
shortcut->setWhatsThis(tr("Activate Contents in Help mode"));
|
shortcut->setWhatsThis(tr("Activate Contents in Help mode"));
|
||||||
cmd = am->registerShortcut(shortcut, QLatin1String("Help.ContentsShortcut"),
|
cmd = am->registerShortcut(shortcut, Core::Id("Help.ContentsShortcut"),
|
||||||
modecontext);
|
modecontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_C));
|
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_C));
|
||||||
connect(shortcut, SIGNAL(activated()), this, SLOT(activateContents()));
|
connect(shortcut, SIGNAL(activated()), this, SLOT(activateContents()));
|
||||||
@@ -437,7 +436,7 @@ void HelpPlugin::setupUi()
|
|||||||
|
|
||||||
shortcut = new QShortcut(m_splitter);
|
shortcut = new QShortcut(m_splitter);
|
||||||
shortcut->setWhatsThis(tr("Activate Search in Help mode"));
|
shortcut->setWhatsThis(tr("Activate Search in Help mode"));
|
||||||
cmd = am->registerShortcut(shortcut, QLatin1String("Help.SearchShortcut"),
|
cmd = am->registerShortcut(shortcut, Core::Id("Help.SearchShortcut"),
|
||||||
modecontext);
|
modecontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_Slash));
|
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_Slash));
|
||||||
connect(shortcut, SIGNAL(activated()), this, SLOT(activateSearch()));
|
connect(shortcut, SIGNAL(activated()), this, SLOT(activateSearch()));
|
||||||
@@ -452,7 +451,7 @@ void HelpPlugin::setupUi()
|
|||||||
|
|
||||||
shortcut = new QShortcut(m_splitter);
|
shortcut = new QShortcut(m_splitter);
|
||||||
shortcut->setWhatsThis(tr("Activate Bookmarks in Help mode"));
|
shortcut->setWhatsThis(tr("Activate Bookmarks in Help mode"));
|
||||||
cmd = am->registerShortcut(shortcut, QLatin1String("Help.BookmarkShortcut"),
|
cmd = am->registerShortcut(shortcut, Core::Id("Help.BookmarkShortcut"),
|
||||||
modecontext);
|
modecontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_B));
|
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_B));
|
||||||
connect(shortcut, SIGNAL(activated()), this, SLOT(activateBookmarks()));
|
connect(shortcut, SIGNAL(activated()), this, SLOT(activateBookmarks()));
|
||||||
@@ -464,7 +463,7 @@ void HelpPlugin::setupUi()
|
|||||||
|
|
||||||
shortcut = new QShortcut(m_splitter);
|
shortcut = new QShortcut(m_splitter);
|
||||||
shortcut->setWhatsThis(tr("Activate Open Pages in Help mode"));
|
shortcut->setWhatsThis(tr("Activate Open Pages in Help mode"));
|
||||||
cmd = am->registerShortcut(shortcut, QLatin1String("Help.PagesShortcut"),
|
cmd = am->registerShortcut(shortcut, Core::Id("Help.PagesShortcut"),
|
||||||
modecontext);
|
modecontext);
|
||||||
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_O));
|
cmd->setDefaultKeySequence(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_O));
|
||||||
connect(shortcut, SIGNAL(activated()), this, SLOT(activateOpenPages()));
|
connect(shortcut, SIGNAL(activated()), this, SLOT(activateOpenPages()));
|
||||||
@@ -943,10 +942,10 @@ QToolBar *HelpPlugin::createIconToolBar(bool external)
|
|||||||
connect(bookmark, SIGNAL(triggered()), this, SLOT(addBookmark()));
|
connect(bookmark, SIGNAL(triggered()), this, SLOT(addBookmark()));
|
||||||
} else {
|
} else {
|
||||||
Core::ActionManager *am = m_core->actionManager();
|
Core::ActionManager *am = m_core->actionManager();
|
||||||
home = am->command(QLatin1String("Help.Home"))->action();
|
home = am->command(Core::Id("Help.Home"))->action();
|
||||||
back = am->command(QLatin1String("Help.Previous"))->action();
|
back = am->command(Core::Id("Help.Previous"))->action();
|
||||||
next = am->command(QLatin1String("Help.Next"))->action();
|
next = am->command(Core::Id("Help.Next"))->action();
|
||||||
bookmark = am->command(QLatin1String("Help.AddBookmark"))->action();
|
bookmark = am->command(Core::Id("Help.AddBookmark"))->action();
|
||||||
}
|
}
|
||||||
|
|
||||||
setupNavigationMenus(back, next, toolBar);
|
setupNavigationMenus(back, next, toolBar);
|
||||||
|
|||||||
@@ -41,6 +41,7 @@
|
|||||||
#include <coreplugin/actionmanager/actionmanager.h>
|
#include <coreplugin/actionmanager/actionmanager.h>
|
||||||
#include <coreplugin/actionmanager/command.h>
|
#include <coreplugin/actionmanager/command.h>
|
||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
|
|
||||||
namespace ImageViewer {
|
namespace ImageViewer {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
#include <coreplugin/actionmanager/command.h>
|
#include <coreplugin/actionmanager/command.h>
|
||||||
#include <coreplugin/progressmanager/progressmanager.h>
|
#include <coreplugin/progressmanager/progressmanager.h>
|
||||||
#include <coreplugin/progressmanager/futureprogress.h>
|
#include <coreplugin/progressmanager/futureprogress.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
#include <qtconcurrent/QtConcurrentTools>
|
#include <qtconcurrent/QtConcurrentTools>
|
||||||
|
|
||||||
@@ -109,9 +110,9 @@ bool LocatorPlugin::initialize(const QStringList &, QString *)
|
|||||||
view->setPosition(Core::StatusBarWidget::First);
|
view->setPosition(Core::StatusBarWidget::First);
|
||||||
addAutoReleasedObject(view);
|
addAutoReleasedObject(view);
|
||||||
|
|
||||||
const QString actionId = QLatin1String("QtCreator.Locate");
|
|
||||||
QAction *action = new QAction(m_locatorWidget->windowIcon(), m_locatorWidget->windowTitle(), this);
|
QAction *action = new QAction(m_locatorWidget->windowIcon(), m_locatorWidget->windowTitle(), this);
|
||||||
Core::Command *cmd = core->actionManager()->registerAction(action, actionId, Core::Context(Core::Constants::C_GLOBAL));
|
Core::Command *cmd = core->actionManager()
|
||||||
|
->registerAction(action, "QtCreator.Locate", Core::Context(Core::Constants::C_GLOBAL));
|
||||||
cmd->setDefaultKeySequence(QKeySequence("Ctrl+K"));
|
cmd->setDefaultKeySequence(QKeySequence("Ctrl+K"));
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(openLocator()));
|
connect(action, SIGNAL(triggered()), this, SLOT(openLocator()));
|
||||||
|
|
||||||
|
|||||||
@@ -209,22 +209,22 @@ void MercurialPlugin::createMenu()
|
|||||||
Core::Context context(Core::Constants::C_GLOBAL);
|
Core::Context context(Core::Constants::C_GLOBAL);
|
||||||
|
|
||||||
// Create menu item for Mercurial
|
// Create menu item for Mercurial
|
||||||
mercurialContainer = actionManager->createMenu(QLatin1String("Mercurial.MercurialMenu"));
|
mercurialContainer = actionManager->createMenu(Core::Id("Mercurial.MercurialMenu"));
|
||||||
QMenu *menu = mercurialContainer->menu();
|
QMenu *menu = mercurialContainer->menu();
|
||||||
menu->setTitle(tr("Mercurial"));
|
menu->setTitle(tr("Mercurial"));
|
||||||
|
|
||||||
createFileActions(context);
|
createFileActions(context);
|
||||||
createSeparator(context, QLatin1String("FileDirSeperator"));
|
createSeparator(context, Core::Id("FileDirSeperator"));
|
||||||
createDirectoryActions(context);
|
createDirectoryActions(context);
|
||||||
createSeparator(context, QLatin1String("DirRepoSeperator"));
|
createSeparator(context, Core::Id("DirRepoSeperator"));
|
||||||
createRepositoryActions(context);
|
createRepositoryActions(context);
|
||||||
createSeparator(context, QLatin1String("Repository Management"));
|
createSeparator(context, Core::Id("Repository Management"));
|
||||||
createRepositoryManagementActions(context);
|
createRepositoryManagementActions(context);
|
||||||
createSeparator(context, QLatin1String("LessUsedfunctionality"));
|
createSeparator(context, Core::Id("LessUsedfunctionality"));
|
||||||
createLessUsedActions(context);
|
createLessUsedActions(context);
|
||||||
|
|
||||||
// Request the Tools menu and add the Mercurial menu to it
|
// Request the Tools menu and add the Mercurial menu to it
|
||||||
Core::ActionContainer *toolsMenu = actionManager->actionContainer(QLatin1String(Core::Constants::M_TOOLS));
|
Core::ActionContainer *toolsMenu = actionManager->actionContainer(Core::Id(Core::Constants::M_TOOLS));
|
||||||
toolsMenu->addMenu(mercurialContainer);
|
toolsMenu->addMenu(mercurialContainer);
|
||||||
m_menuAction = mercurialContainer->menu()->menuAction();
|
m_menuAction = mercurialContainer->menu()->menuAction();
|
||||||
}
|
}
|
||||||
@@ -234,14 +234,14 @@ void MercurialPlugin::createFileActions(const Core::Context &context)
|
|||||||
Core::Command *command;
|
Core::Command *command;
|
||||||
|
|
||||||
annotateFile = new Utils::ParameterAction(tr("Annotate Current File"), tr("Annotate \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
annotateFile = new Utils::ParameterAction(tr("Annotate Current File"), tr("Annotate \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
||||||
command = actionManager->registerAction(annotateFile, QLatin1String(Constants::ANNOTATE), context);
|
command = actionManager->registerAction(annotateFile, Core::Id(Constants::ANNOTATE), context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
connect(annotateFile, SIGNAL(triggered()), this, SLOT(annotateCurrentFile()));
|
connect(annotateFile, SIGNAL(triggered()), this, SLOT(annotateCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
diffFile = new Utils::ParameterAction(tr("Diff Current File"), tr("Diff \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
diffFile = new Utils::ParameterAction(tr("Diff Current File"), tr("Diff \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
||||||
command = actionManager->registerAction(diffFile, QLatin1String(Constants::DIFF), context);
|
command = actionManager->registerAction(diffFile, Core::Id(Constants::DIFF), context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
command->setDefaultKeySequence(QKeySequence(tr("Alt+H,Alt+D")));
|
command->setDefaultKeySequence(QKeySequence(tr("Alt+H,Alt+D")));
|
||||||
connect(diffFile, SIGNAL(triggered()), this, SLOT(diffCurrentFile()));
|
connect(diffFile, SIGNAL(triggered()), this, SLOT(diffCurrentFile()));
|
||||||
@@ -249,7 +249,7 @@ void MercurialPlugin::createFileActions(const Core::Context &context)
|
|||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
logFile = new Utils::ParameterAction(tr("Log Current File"), tr("Log \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
logFile = new Utils::ParameterAction(tr("Log Current File"), tr("Log \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
||||||
command = actionManager->registerAction(logFile, QLatin1String(Constants::LOG), context);
|
command = actionManager->registerAction(logFile, Core::Id(Constants::LOG), context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
command->setDefaultKeySequence(QKeySequence(tr("Alt+H,Alt+L")));
|
command->setDefaultKeySequence(QKeySequence(tr("Alt+H,Alt+L")));
|
||||||
connect(logFile, SIGNAL(triggered()), this, SLOT(logCurrentFile()));
|
connect(logFile, SIGNAL(triggered()), this, SLOT(logCurrentFile()));
|
||||||
@@ -257,31 +257,31 @@ void MercurialPlugin::createFileActions(const Core::Context &context)
|
|||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
statusFile = new Utils::ParameterAction(tr("Status Current File"), tr("Status \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
statusFile = new Utils::ParameterAction(tr("Status Current File"), tr("Status \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
||||||
command = actionManager->registerAction(statusFile, QLatin1String(Constants::STATUS), context);
|
command = actionManager->registerAction(statusFile, Core::Id(Constants::STATUS), context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
command->setDefaultKeySequence(QKeySequence(tr("Alt+H,Alt+S")));
|
command->setDefaultKeySequence(QKeySequence(tr("Alt+H,Alt+S")));
|
||||||
connect(statusFile, SIGNAL(triggered()), this, SLOT(statusCurrentFile()));
|
connect(statusFile, SIGNAL(triggered()), this, SLOT(statusCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
createSeparator(context, QLatin1String("FileDirSeperator1"));
|
createSeparator(context, Core::Id("FileDirSeperator1"));
|
||||||
|
|
||||||
m_addAction = new Utils::ParameterAction(tr("Add"), tr("Add \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
m_addAction = new Utils::ParameterAction(tr("Add"), tr("Add \"%1\""), Utils::ParameterAction::EnabledWithParameter, this);
|
||||||
command = actionManager->registerAction(m_addAction, QLatin1String(Constants::ADD), context);
|
command = actionManager->registerAction(m_addAction, Core::Id(Constants::ADD), context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
connect(m_addAction, SIGNAL(triggered()), this, SLOT(addCurrentFile()));
|
connect(m_addAction, SIGNAL(triggered()), this, SLOT(addCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
m_deleteAction = new Utils::ParameterAction(tr("Delete..."), tr("Delete \"%1\"..."), Utils::ParameterAction::EnabledWithParameter, this);
|
m_deleteAction = new Utils::ParameterAction(tr("Delete..."), tr("Delete \"%1\"..."), Utils::ParameterAction::EnabledWithParameter, this);
|
||||||
command = actionManager->registerAction(m_deleteAction, QLatin1String(Constants::DELETE), context);
|
command = actionManager->registerAction(m_deleteAction, Core::Id(Constants::DELETE), context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
connect(m_deleteAction, SIGNAL(triggered()), this, SLOT(promptToDeleteCurrentFile()));
|
connect(m_deleteAction, SIGNAL(triggered()), this, SLOT(promptToDeleteCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
revertFile = new Utils::ParameterAction(tr("Revert Current File..."), tr("Revert \"%1\"..."), Utils::ParameterAction::EnabledWithParameter, this);
|
revertFile = new Utils::ParameterAction(tr("Revert Current File..."), tr("Revert \"%1\"..."), Utils::ParameterAction::EnabledWithParameter, this);
|
||||||
command = actionManager->registerAction(revertFile, QLatin1String(Constants::REVERT), context);
|
command = actionManager->registerAction(revertFile, Core::Id(Constants::REVERT), context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
connect(revertFile, SIGNAL(triggered()), this, SLOT(revertCurrentFile()));
|
connect(revertFile, SIGNAL(triggered()), this, SLOT(revertCurrentFile()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
@@ -341,28 +341,28 @@ void MercurialPlugin::createDirectoryActions(const Core::Context &context)
|
|||||||
|
|
||||||
action = new QAction(tr("Diff"), this);
|
action = new QAction(tr("Diff"), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::DIFFMULTI), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::DIFFMULTI), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(diffRepository()));
|
connect(action, SIGNAL(triggered()), this, SLOT(diffRepository()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Log"), this);
|
action = new QAction(tr("Log"), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::LOGMULTI), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::LOGMULTI), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(logRepository()));
|
connect(action, SIGNAL(triggered()), this, SLOT(logRepository()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Revert..."), this);
|
action = new QAction(tr("Revert..."), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::REVERTMULTI), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::REVERTMULTI), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(revertMulti()));
|
connect(action, SIGNAL(triggered()), this, SLOT(revertMulti()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Status"), this);
|
action = new QAction(tr("Status"), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::STATUSMULTI), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::STATUSMULTI), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(statusMulti()));
|
connect(action, SIGNAL(triggered()), this, SLOT(statusMulti()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
@@ -406,56 +406,56 @@ void MercurialPlugin::createRepositoryActions(const Core::Context &context)
|
|||||||
{
|
{
|
||||||
QAction *action = new QAction(tr("Pull..."), this);
|
QAction *action = new QAction(tr("Pull..."), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
Core::Command *command = actionManager->registerAction(action, QLatin1String(Constants::PULL), context);
|
Core::Command *command = actionManager->registerAction(action, Core::Id(Constants::PULL), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(pull()));
|
connect(action, SIGNAL(triggered()), this, SLOT(pull()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Push..."), this);
|
action = new QAction(tr("Push..."), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::PUSH), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::PUSH), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(push()));
|
connect(action, SIGNAL(triggered()), this, SLOT(push()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Update..."), this);
|
action = new QAction(tr("Update..."), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::UPDATE), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::UPDATE), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(update()));
|
connect(action, SIGNAL(triggered()), this, SLOT(update()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Import..."), this);
|
action = new QAction(tr("Import..."), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::IMPORT), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::IMPORT), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(import()));
|
connect(action, SIGNAL(triggered()), this, SLOT(import()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Incoming..."), this);
|
action = new QAction(tr("Incoming..."), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::INCOMING), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::INCOMING), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(incoming()));
|
connect(action, SIGNAL(triggered()), this, SLOT(incoming()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Outgoing..."), this);
|
action = new QAction(tr("Outgoing..."), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::OUTGOING), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::OUTGOING), context);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(outgoing()));
|
connect(action, SIGNAL(triggered()), this, SLOT(outgoing()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
action = new QAction(tr("Commit..."), this);
|
action = new QAction(tr("Commit..."), this);
|
||||||
m_repositoryActionList.append(action);
|
m_repositoryActionList.append(action);
|
||||||
command = actionManager->registerAction(action, QLatin1String(Constants::COMMIT), context);
|
command = actionManager->registerAction(action, Core::Id(Constants::COMMIT), context);
|
||||||
command->setDefaultKeySequence(QKeySequence(tr("Alt+H,Alt+C")));
|
command->setDefaultKeySequence(QKeySequence(tr("Alt+H,Alt+C")));
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(commit()));
|
connect(action, SIGNAL(triggered()), this, SLOT(commit()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
m_commandLocator->appendCommand(command);
|
m_commandLocator->appendCommand(command);
|
||||||
|
|
||||||
m_createRepositoryAction = new QAction(tr("Create Repository..."), this);
|
m_createRepositoryAction = new QAction(tr("Create Repository..."), this);
|
||||||
command = actionManager->registerAction(m_createRepositoryAction, QLatin1String(Constants::CREATE_REPOSITORY), context);
|
command = actionManager->registerAction(m_createRepositoryAction, Core::Id(Constants::CREATE_REPOSITORY), context);
|
||||||
connect(m_createRepositoryAction, SIGNAL(triggered()), this, SLOT(createRepository()));
|
connect(m_createRepositoryAction, SIGNAL(triggered()), this, SLOT(createRepository()));
|
||||||
mercurialContainer->addAction(command);
|
mercurialContainer->addAction(command);
|
||||||
}
|
}
|
||||||
@@ -537,18 +537,18 @@ void MercurialPlugin::createSubmitEditorActions()
|
|||||||
Core::Command *command;
|
Core::Command *command;
|
||||||
|
|
||||||
editorCommit = new QAction(VCSBase::VCSBaseSubmitEditor::submitIcon(), tr("Commit"), this);
|
editorCommit = new QAction(VCSBase::VCSBaseSubmitEditor::submitIcon(), tr("Commit"), this);
|
||||||
command = actionManager->registerAction(editorCommit, QLatin1String(Constants::COMMIT), context);
|
command = actionManager->registerAction(editorCommit, Core::Id(Constants::COMMIT), context);
|
||||||
command->setAttribute(Core::Command::CA_UpdateText);
|
command->setAttribute(Core::Command::CA_UpdateText);
|
||||||
connect(editorCommit, SIGNAL(triggered()), this, SLOT(commitFromEditor()));
|
connect(editorCommit, SIGNAL(triggered()), this, SLOT(commitFromEditor()));
|
||||||
|
|
||||||
editorDiff = new QAction(VCSBase::VCSBaseSubmitEditor::diffIcon(), tr("Diff Selected Files"), this);
|
editorDiff = new QAction(VCSBase::VCSBaseSubmitEditor::diffIcon(), tr("Diff Selected Files"), this);
|
||||||
command = actionManager->registerAction(editorDiff, QLatin1String(Constants::DIFFEDITOR), context);
|
command = actionManager->registerAction(editorDiff, Core::Id(Constants::DIFFEDITOR), context);
|
||||||
|
|
||||||
editorUndo = new QAction(tr("&Undo"), this);
|
editorUndo = new QAction(tr("&Undo"), this);
|
||||||
command = actionManager->registerAction(editorUndo, QLatin1String(Core::Constants::UNDO), context);
|
command = actionManager->registerAction(editorUndo, Core::Id(Core::Constants::UNDO), context);
|
||||||
|
|
||||||
editorRedo = new QAction(tr("&Redo"), this);
|
editorRedo = new QAction(tr("&Redo"), this);
|
||||||
command = actionManager->registerAction(editorRedo, QLatin1String(Core::Constants::REDO), context);
|
command = actionManager->registerAction(editorRedo, Core::Id(Core::Constants::REDO), context);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MercurialPlugin::commit()
|
void MercurialPlugin::commit()
|
||||||
@@ -699,7 +699,7 @@ void MercurialPlugin::createLessUsedActions(const Core::Context &context)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MercurialPlugin::createSeparator(const Core::Context &context, const QString &id)
|
void MercurialPlugin::createSeparator(const Core::Context &context, const Core::Id &id)
|
||||||
{
|
{
|
||||||
QAction *action = new QAction(this);
|
QAction *action = new QAction(this);
|
||||||
action->setSeparator(true);
|
action->setSeparator(true);
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ namespace Core {
|
|||||||
class ActionManager;
|
class ActionManager;
|
||||||
class ActionContainer;
|
class ActionContainer;
|
||||||
class ICore;
|
class ICore;
|
||||||
|
class Id;
|
||||||
class IVersionControl;
|
class IVersionControl;
|
||||||
class IEditorFactory;
|
class IEditorFactory;
|
||||||
class IEditor;
|
class IEditor;
|
||||||
@@ -140,7 +141,7 @@ private:
|
|||||||
//methods
|
//methods
|
||||||
void createMenu();
|
void createMenu();
|
||||||
void createSubmitEditorActions();
|
void createSubmitEditorActions();
|
||||||
void createSeparator(const Core::Context &context, const QString &id);
|
void createSeparator(const Core::Context &context, const Core::Id &id);
|
||||||
void createFileActions(const Core::Context &context);
|
void createFileActions(const Core::Context &context);
|
||||||
void createDirectoryActions(const Core::Context &context);
|
void createDirectoryActions(const Core::Context &context);
|
||||||
void createRepositoryActions(const Core::Context &context);
|
void createRepositoryActions(const Core::Context &context);
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ bool PerforcePlugin::initialize(const QStringList & /* arguments */, QString *er
|
|||||||
am->actionContainer(Core::Constants::M_TOOLS);
|
am->actionContainer(Core::Constants::M_TOOLS);
|
||||||
|
|
||||||
Core::ActionContainer *mperforce =
|
Core::ActionContainer *mperforce =
|
||||||
am->createMenu(QLatin1String(CMD_ID_PERFORCE_MENU));
|
am->createMenu(Core::Id(CMD_ID_PERFORCE_MENU));
|
||||||
mperforce->menu()->setTitle(tr("&Perforce"));
|
mperforce->menu()->setTitle(tr("&Perforce"));
|
||||||
mtools->addMenu(mperforce);
|
mtools->addMenu(mperforce);
|
||||||
m_menuAction = mperforce->menu()->menuAction();
|
m_menuAction = mperforce->menu()->menuAction();
|
||||||
|
|||||||
@@ -436,31 +436,31 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
|||||||
|
|
||||||
sep = new QAction(this);
|
sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.Build.Sep"), globalcontext);
|
cmd = am->registerAction(sep, Core::Id("ProjectExplorer.Build.Sep"), globalcontext);
|
||||||
mbuild->addAction(cmd, Constants::G_BUILD_PROJECT);
|
mbuild->addAction(cmd, Constants::G_BUILD_PROJECT);
|
||||||
|
|
||||||
sep = new QAction(this);
|
sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.Files.Sep"), globalcontext);
|
cmd = am->registerAction(sep, Core::Id("ProjectExplorer.Files.Sep"), globalcontext);
|
||||||
msessionContextMenu->addAction(cmd, Constants::G_SESSION_FILES);
|
msessionContextMenu->addAction(cmd, Constants::G_SESSION_FILES);
|
||||||
mproject->addAction(cmd, Constants::G_PROJECT_FILES);
|
mproject->addAction(cmd, Constants::G_PROJECT_FILES);
|
||||||
msubProject->addAction(cmd, Constants::G_PROJECT_FILES);
|
msubProject->addAction(cmd, Constants::G_PROJECT_FILES);
|
||||||
|
|
||||||
sep = new QAction(this);
|
sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.Config.Sep"), globalcontext);
|
cmd = am->registerAction(sep, Core::Id("ProjectExplorer.Config.Sep"), globalcontext);
|
||||||
msessionContextMenu->addAction(cmd, Constants::G_SESSION_CONFIG);
|
msessionContextMenu->addAction(cmd, Constants::G_SESSION_CONFIG);
|
||||||
mproject->addAction(cmd, Constants::G_PROJECT_CONFIG);
|
mproject->addAction(cmd, Constants::G_PROJECT_CONFIG);
|
||||||
msubProject->addAction(cmd, Constants::G_PROJECT_CONFIG);
|
msubProject->addAction(cmd, Constants::G_PROJECT_CONFIG);
|
||||||
|
|
||||||
sep = new QAction(this);
|
sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.Projects.Sep"), globalcontext);
|
cmd = am->registerAction(sep, Core::Id("ProjectExplorer.Projects.Sep"), globalcontext);
|
||||||
mfile->addAction(cmd, Core::Constants::G_FILE_PROJECT);
|
mfile->addAction(cmd, Core::Constants::G_FILE_PROJECT);
|
||||||
|
|
||||||
sep = new QAction(this);
|
sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.Other.Sep"), globalcontext);
|
cmd = am->registerAction(sep, Core::Id("ProjectExplorer.Other.Sep"), globalcontext);
|
||||||
mbuild->addAction(cmd, Constants::G_BUILD_OTHER);
|
mbuild->addAction(cmd, Constants::G_BUILD_OTHER);
|
||||||
msessionContextMenu->addAction(cmd, Constants::G_SESSION_OTHER);
|
msessionContextMenu->addAction(cmd, Constants::G_SESSION_OTHER);
|
||||||
mproject->addAction(cmd, Constants::G_PROJECT_OTHER);
|
mproject->addAction(cmd, Constants::G_PROJECT_OTHER);
|
||||||
@@ -468,13 +468,13 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
|||||||
|
|
||||||
sep = new QAction(this);
|
sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.Run.Sep"), globalcontext);
|
cmd = am->registerAction(sep, Core::Id("ProjectExplorer.Run.Sep"), globalcontext);
|
||||||
mbuild->addAction(cmd, Constants::G_BUILD_RUN);
|
mbuild->addAction(cmd, Constants::G_BUILD_RUN);
|
||||||
mproject->addAction(cmd, Constants::G_PROJECT_RUN);
|
mproject->addAction(cmd, Constants::G_PROJECT_RUN);
|
||||||
|
|
||||||
sep = new QAction(this);
|
sep = new QAction(this);
|
||||||
sep->setSeparator(true);
|
sep->setSeparator(true);
|
||||||
cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.CancelBuild.Sep"), globalcontext);
|
cmd = am->registerAction(sep, Core::Id("ProjectExplorer.CancelBuild.Sep"), globalcontext);
|
||||||
mbuild->addAction(cmd, Constants::G_BUILD_CANCEL);
|
mbuild->addAction(cmd, Constants::G_BUILD_CANCEL);
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1179,7 +1179,7 @@ void ProjectExplorerPlugin::updateWelcomePage()
|
|||||||
|
|
||||||
void ProjectExplorerPlugin::currentModeChanged(Core::IMode *mode, Core::IMode *oldMode)
|
void ProjectExplorerPlugin::currentModeChanged(Core::IMode *mode, Core::IMode *oldMode)
|
||||||
{
|
{
|
||||||
if (mode && mode->id() == QLatin1String(Core::Constants::MODE_WELCOME))
|
if (mode && mode->id() == Core::Id(Core::Constants::MODE_WELCOME))
|
||||||
updateWelcomePage();
|
updateWelcomePage();
|
||||||
if (oldMode == d->m_projectsMode)
|
if (oldMode == d->m_projectsMode)
|
||||||
savePersistentSettings();
|
savePersistentSettings();
|
||||||
@@ -1530,7 +1530,7 @@ int ProjectExplorerPlugin::queue(QList<Project *> projects, QStringList stepIds)
|
|||||||
continue;
|
continue;
|
||||||
foreach (const QString id, stepIds) {
|
foreach (const QString id, stepIds) {
|
||||||
BuildStepList *bsl = 0;
|
BuildStepList *bsl = 0;
|
||||||
if (id == QLatin1String(Constants::BUILDSTEPS_DEPLOY)
|
if (id == Core::Id(Constants::BUILDSTEPS_DEPLOY)
|
||||||
&& pro->activeTarget()->activeDeployConfiguration())
|
&& pro->activeTarget()->activeDeployConfiguration())
|
||||||
bsl = pro->activeTarget()->activeDeployConfiguration()->stepList();
|
bsl = pro->activeTarget()->activeDeployConfiguration()->stepList();
|
||||||
else if (pro->activeTarget()->activeBuildConfiguration())
|
else if (pro->activeTarget()->activeBuildConfiguration())
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ bool SubversionPlugin::initialize(const QStringList & /*arguments */, QString *e
|
|||||||
Core::ActionContainer *toolsContainer = ami->actionContainer(M_TOOLS);
|
Core::ActionContainer *toolsContainer = ami->actionContainer(M_TOOLS);
|
||||||
|
|
||||||
Core::ActionContainer *subversionMenu =
|
Core::ActionContainer *subversionMenu =
|
||||||
ami->createMenu(QLatin1String(CMD_ID_SUBVERSION_MENU));
|
ami->createMenu(Core::Id(CMD_ID_SUBVERSION_MENU));
|
||||||
subversionMenu->menu()->setTitle(tr("&Subversion"));
|
subversionMenu->menu()->setTitle(tr("&Subversion"));
|
||||||
toolsContainer->addMenu(subversionMenu);
|
toolsContainer->addMenu(subversionMenu);
|
||||||
m_menuAction = subversionMenu->menu()->menuAction();
|
m_menuAction = subversionMenu->menu()->menuAction();
|
||||||
|
|||||||
@@ -48,6 +48,7 @@
|
|||||||
#include <coreplugin/actionmanager/actionmanager.h>
|
#include <coreplugin/actionmanager/actionmanager.h>
|
||||||
#include <coreplugin/actionmanager/command.h>
|
#include <coreplugin/actionmanager/command.h>
|
||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
#include <texteditor/texteditoractionhandler.h>
|
#include <texteditor/texteditoractionhandler.h>
|
||||||
#include <find/searchresultwindow.h>
|
#include <find/searchresultwindow.h>
|
||||||
@@ -103,7 +104,6 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
|
|||||||
// Add text file wizard
|
// Add text file wizard
|
||||||
addAutoReleasedObject(m_wizard);
|
addAutoReleasedObject(m_wizard);
|
||||||
|
|
||||||
|
|
||||||
m_settings = new TextEditorSettings(this);
|
m_settings = new TextEditorSettings(this);
|
||||||
|
|
||||||
// Add plain text editor factory
|
// Add plain text editor factory
|
||||||
|
|||||||
Reference in New Issue
Block a user