From c077ef28d8e35aefef375de3f253428bd264c5f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Mon, 12 Jan 2009 17:57:56 +0100 Subject: [PATCH] Make project dependencies dialog accessible again Not entirely sure about the location of the menu entry. Also, the dialog is in dire need of a redesign. --- .../projectexplorer/dependenciesdialog.ui | 56 +++++++------------ .../projectexplorer/projectexplorer.cpp | 9 ++- 2 files changed, 25 insertions(+), 40 deletions(-) diff --git a/src/plugins/projectexplorer/dependenciesdialog.ui b/src/plugins/projectexplorer/dependenciesdialog.ui index 25ffdff8948..31a70dae983 100644 --- a/src/plugins/projectexplorer/dependenciesdialog.ui +++ b/src/plugins/projectexplorer/dependenciesdialog.ui @@ -1,59 +1,45 @@ - + + ProjectExplorer::Internal::DependenciesDialog - - + + 0 0 - 618 - 660 + 492 + 435 - + Project Dependencies - - + + 6 - - 9 - - - 9 - - - 9 - - + 9 - - - - 600 - 600 - - - + + QAbstractItemView::SingleSelection - - + + Qt::Horizontal - - + + Qt::Horizontal - + QDialogButtonBox::Cancel|QDialogButtonBox::Ok @@ -68,11 +54,11 @@ ProjectExplorer::Internal::DependenciesDialog accept() - + 142 285 - + 142 155 @@ -84,11 +70,11 @@ ProjectExplorer::Internal::DependenciesDialog reject() - + 142 285 - + 142 155 diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index e4721457af4..3548023d641 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -484,6 +484,10 @@ bool ProjectExplorerPlugin::initialize(const QStringList & /*arguments*/, QStrin mbuild->addAction(cmd, Constants::G_BUILD_SESSION); msessionContextMenu->addAction(cmd, Constants::G_SESSION_BUILD); + // dependencies action + m_dependenciesAction = new QAction(tr("Edit Dependencies..."), this); + cmd = am->registerAction(m_dependenciesAction, Constants::DEPENDENCIES, globalcontext); + mbuild->addAction(cmd, Constants::G_BUILD_SESSION); // build action m_buildAction = new QAction(tr("Build Project"), this); @@ -555,11 +559,6 @@ bool ProjectExplorerPlugin::initialize(const QStringList & /*arguments*/, QStrin mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE); modeManager->addAction(cmd, Constants::P_ACTION_DEBUG, m_runConfigurationMenu); - // dependencies action - m_dependenciesAction = new QAction(tr("Edit Dependencies..."), this); - cmd = am->registerAction(m_dependenciesAction, Constants::DEPENDENCIES, pecontext); - msessionContextMenu->addAction(cmd, Constants::G_SESSION_CONFIG); - // add new file action m_addNewFileAction = new QAction(tr("Add New..."), this); cmd = am->registerAction(m_addNewFileAction, ProjectExplorer::Constants::ADDNEWFILE,