diff --git a/src/plugins/coreplugin/coreconstants.h b/src/plugins/coreplugin/coreconstants.h index adef01456790ca2bed7b4b7e571a0a70ac536950..96a405e52ec5df50056eb0a87ad0e686fd09407f 100644 --- a/src/plugins/coreplugin/coreconstants.h +++ b/src/plugins/coreplugin/coreconstants.h @@ -188,12 +188,8 @@ const char * const G_EDIT_EDITOR = "QtCreator.Group.Edit.Editor"; const char * const G_WINDOW_SIZE = "QtCreator.Group.Window.Size"; const char * const G_WINDOW_PANES = "QtCreator.Group.Window.Panes"; const char * const G_WINDOW_SPLIT = "QtCreator.Group.Window.Split"; -const char * const G_WINDOW_CLOSE = "QtCreator.Group.Window.Close"; const char * const G_WINDOW_NAVIGATE = "QtCreator.Group.Window.Navigate"; -const char * const G_WINDOW_NAVIGATE_GROUPS = "QtCreator.Group.Window.Navigate.Groups"; const char * const G_WINDOW_OTHER = "QtCreator.Group.Window.Other"; -const char * const G_WINDOW_LIST = "QtCreator.Group.Window.List"; -const char * const G_WINDOW_FULLSCREEN = "QtCreator.Group.Window.Fullscreen"; // help groups (global) const char * const G_HELP_HELP = "QtCreator.Group.Help.Help"; diff --git a/src/plugins/coreplugin/editormanager/editormanager.cpp b/src/plugins/coreplugin/editormanager/editormanager.cpp index 380f37e7367d343a7ab106de085ac776924548f2..8853bfcf007403c7747d87a70e4d328d3fb5674f 100644 --- a/src/plugins/coreplugin/editormanager/editormanager.cpp +++ b/src/plugins/coreplugin/editormanager/editormanager.cpp @@ -268,26 +268,11 @@ EditorManager::EditorManager(ICore *core, QWidget *parent) : cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Window.Sep.Split"), editManagerContext); mwindow->addAction(cmd, Constants::G_WINDOW_SPLIT); - tmpaction = new QAction(this); - tmpaction->setSeparator(true); - cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Window.Sep.Close"), editManagerContext); - mwindow->addAction(cmd, Constants::G_WINDOW_CLOSE); - tmpaction = new QAction(this); tmpaction->setSeparator(true); cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Window.Sep.Navigate"), editManagerContext); mwindow->addAction(cmd, Constants::G_WINDOW_NAVIGATE); - tmpaction = new QAction(this); - tmpaction->setSeparator(true); - cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Window.Sep.Navigate.Groups"), editManagerContext); - mwindow->addAction(cmd, Constants::G_WINDOW_NAVIGATE_GROUPS); - - tmpaction = new QAction(this); - tmpaction->setSeparator(true); - cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Window.Sep.Bottom"), editManagerContext); - mwindow->addAction(cmd, Constants::G_WINDOW_LIST); - //Close Action cmd = am->registerAction(m_d->m_closeCurrentEditorAction, Constants::CLOSE, editManagerContext); cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+W"))); diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp index a5c22d53ecdbb177cb55f346276082a6fc8e9138..95c7254c611bf29a1fc989002f6392582fb88ad8 100644 --- a/src/plugins/coreplugin/mainwindow.cpp +++ b/src/plugins/coreplugin/mainwindow.cpp @@ -491,11 +491,8 @@ void MainWindow::registerDefaultContainers() mwindow->appendGroup(Constants::G_WINDOW_SIZE); mwindow->appendGroup(Constants::G_WINDOW_PANES); mwindow->appendGroup(Constants::G_WINDOW_SPLIT); - mwindow->appendGroup(Constants::G_WINDOW_CLOSE); mwindow->appendGroup(Constants::G_WINDOW_NAVIGATE); - mwindow->appendGroup(Constants::G_WINDOW_NAVIGATE_GROUPS); mwindow->appendGroup(Constants::G_WINDOW_OTHER); - mwindow->appendGroup(Constants::G_WINDOW_LIST); // Help Menu ac = am->createMenu(Constants::M_HELP); @@ -757,10 +754,12 @@ void MainWindow::registerDefaultActions() // tmpaction->setEnabled(true); // connect(tmpaction, SIGNAL(triggered()), qApp, SLOT(aboutQt())); // About sep +#ifndef Q_WS_MAC // doesn't have the "About" actions in the Help menu tmpaction = new QAction(this); tmpaction->setSeparator(true); cmd = am->registerAction(tmpaction, QLatin1String("QtCreator.Help.Sep.About"), m_globalContext); mhelp->addAction(cmd, Constants::G_HELP_ABOUT); +#endif } void MainWindow::newFile() diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index 5b4254b271919160d45dd506376426c6f7db715d..3e210ddb5efd77e95779e1244bc3167c2ac37511 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -649,7 +649,7 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess QAction *sep = new QAction(this); sep->setSeparator(true); - cmd = am->registerAction(sep, QLatin1String("Debugger.Sep1"), globalcontext); + cmd = am->registerAction(sep, QLatin1String("Debugger.Sep.Step"), globalcontext); mdebug->addAction(cmd); cmd = am->registerAction(m_manager->m_nextAction, @@ -700,7 +700,7 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess sep = new QAction(this); sep->setSeparator(true); - cmd = am->registerAction(sep, QLatin1String("Debugger.Sep3"), globalcontext); + cmd = am->registerAction(sep, QLatin1String("Debugger.Sep.Break"), globalcontext); mdebug->addAction(cmd); cmd = am->registerAction(m_manager->m_breakAction, @@ -711,12 +711,7 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess sep = new QAction(this); sep->setSeparator(true); - cmd = am->registerAction(sep, QLatin1String("Debugger.Sep2"), globalcontext); - mdebug->addAction(cmd); - - sep = new QAction(this); - sep->setSeparator(true); - cmd = am->registerAction(sep, QLatin1String("Debugger.Sep4"), globalcontext); + cmd = am->registerAction(sep, QLatin1String("Debugger.Sep.Watch"), globalcontext); mdebug->addAction(cmd); cmd = am->registerAction(m_manager->m_watchAction, @@ -725,7 +720,7 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *errorMess mdebug->addAction(cmd); // Views menu - cmd = am->registerAction(sep, QLatin1String("Debugger.Sep5"), globalcontext); + cmd = am->registerAction(sep, QLatin1String("Debugger.Sep.Views"), globalcontext); mdebug->addAction(cmd); ActionContainer *viewsMenu = am->createMenu(Constants::M_DEBUG_VIEWS); QMenu *m = viewsMenu->menu(); diff --git a/src/plugins/designer/formeditorw.cpp b/src/plugins/designer/formeditorw.cpp index 1007103041bff6ff6f1dfbe7ab9e5c568c82305e..bd63c74eb1e1c2a2a34b1a2165ca4889ffdc51a7 100644 --- a/src/plugins/designer/formeditorw.cpp +++ b/src/plugins/designer/formeditorw.cpp @@ -358,6 +358,11 @@ void FormEditorW::setupActions() m_actionGroupEditMode->setExclusive(true); connect(m_actionGroupEditMode, SIGNAL(triggered(QAction*)), this, SLOT(activateEditMode(QAction*))); + m_modeActionSeparator = new QAction(this); + m_modeActionSeparator->setSeparator(true); + command = am->registerAction(m_modeActionSeparator, QLatin1String("FormEditor.Sep.ModeActions"), globalcontext); + medit->addAction(command, Core::Constants::G_EDIT_OTHER); + m_toolActionIds.push_back(QLatin1String("FormEditor.WidgetEditor")); createEditModeAction(m_actionGroupEditMode, globalcontext, am, medit, tr("Edit widgets"), m_toolActionIds.back(), @@ -582,8 +587,10 @@ void FormEditorW::currentEditorChanged(Core::IEditor *editor) fw->activate(); m_fwm->setActiveFormWindow(fw->formWindow()); m_actionGroupEditMode->setVisible(true); + m_modeActionSeparator->setVisible(true); } else { m_actionGroupEditMode->setVisible(false); + m_modeActionSeparator->setVisible(false); m_fwm->setActiveFormWindow(0); } } diff --git a/src/plugins/designer/formeditorw.h b/src/plugins/designer/formeditorw.h index 23d848f89e09ab3904f7ff76315eb653c80abf8f..5d3fc529be58c8eb91c874b2330f42b0c5ca7edb 100644 --- a/src/plugins/designer/formeditorw.h +++ b/src/plugins/designer/formeditorw.h @@ -158,6 +158,7 @@ private: QAction *m_actionPreview; QActionGroup *m_actionGroupPreviewInStyle; QAction *m_actionAboutPlugins; + QAction *m_modeActionSeparator; QList<int> m_context; diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 616132a8c5a9b7fa545bc76bb74f6dac2f6ebfc8..d1ee477275638e0783bae9c0dd429e5acbbecc03 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -359,11 +359,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er mproject->addAction(cmd, Constants::G_PROJECT_CONFIG); msubProject->addAction(cmd, Constants::G_PROJECT_CONFIG); - sep = new QAction(this); - sep->setSeparator(true); - cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.Close.Sep"), globalcontext); - mfile->addAction(cmd, Core::Constants::G_FILE_CLOSE); - sep = new QAction(this); sep->setSeparator(true); cmd = am->registerAction(sep, QLatin1String("ProjectExplorer.Projects.Sep"), globalcontext);