forked from qt-creator/qt-creator
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.
This commit is contained in:
@@ -1,59 +1,45 @@
|
|||||||
<ui version="4.0" >
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
<class>ProjectExplorer::Internal::DependenciesDialog</class>
|
<class>ProjectExplorer::Internal::DependenciesDialog</class>
|
||||||
<widget class="QDialog" name="ProjectExplorer::Internal::DependenciesDialog" >
|
<widget class="QDialog" name="ProjectExplorer::Internal::DependenciesDialog">
|
||||||
<property name="geometry" >
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>618</width>
|
<width>492</width>
|
||||||
<height>660</height>
|
<height>435</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle">
|
||||||
<string>Project Dependencies</string>
|
<string>Project Dependencies</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" >
|
<layout class="QVBoxLayout">
|
||||||
<property name="spacing" >
|
<property name="spacing">
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="leftMargin" >
|
<property name="margin">
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin" >
|
|
||||||
<number>9</number>
|
<number>9</number>
|
||||||
</property>
|
</property>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTableView" name="dependencyTable" >
|
<widget class="QTableView" name="dependencyTable">
|
||||||
<property name="minimumSize" >
|
<property name="selectionMode">
|
||||||
<size>
|
|
||||||
<width>600</width>
|
|
||||||
<height>600</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="selectionMode" >
|
|
||||||
<enum>QAbstractItemView::SingleSelection</enum>
|
<enum>QAbstractItemView::SingleSelection</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="Line" name="line" >
|
<widget class="Line" name="line">
|
||||||
<property name="orientation" >
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDialogButtonBox" name="buttonBox" >
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
<property name="orientation" >
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="standardButtons" >
|
<property name="standardButtons">
|
||||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
@@ -68,11 +54,11 @@
|
|||||||
<receiver>ProjectExplorer::Internal::DependenciesDialog</receiver>
|
<receiver>ProjectExplorer::Internal::DependenciesDialog</receiver>
|
||||||
<slot>accept()</slot>
|
<slot>accept()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>142</x>
|
<x>142</x>
|
||||||
<y>285</y>
|
<y>285</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>142</x>
|
<x>142</x>
|
||||||
<y>155</y>
|
<y>155</y>
|
||||||
</hint>
|
</hint>
|
||||||
@@ -84,11 +70,11 @@
|
|||||||
<receiver>ProjectExplorer::Internal::DependenciesDialog</receiver>
|
<receiver>ProjectExplorer::Internal::DependenciesDialog</receiver>
|
||||||
<slot>reject()</slot>
|
<slot>reject()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel">
|
||||||
<x>142</x>
|
<x>142</x>
|
||||||
<y>285</y>
|
<y>285</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel">
|
||||||
<x>142</x>
|
<x>142</x>
|
||||||
<y>155</y>
|
<y>155</y>
|
||||||
</hint>
|
</hint>
|
||||||
|
|||||||
@@ -484,6 +484,10 @@ bool ProjectExplorerPlugin::initialize(const QStringList & /*arguments*/, QStrin
|
|||||||
mbuild->addAction(cmd, Constants::G_BUILD_SESSION);
|
mbuild->addAction(cmd, Constants::G_BUILD_SESSION);
|
||||||
msessionContextMenu->addAction(cmd, Constants::G_SESSION_BUILD);
|
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
|
// build action
|
||||||
m_buildAction = new QAction(tr("Build Project"), this);
|
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);
|
mdebug->addAction(cmd, Core::Constants::G_DEFAULT_ONE);
|
||||||
modeManager->addAction(cmd, Constants::P_ACTION_DEBUG, m_runConfigurationMenu);
|
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
|
// add new file action
|
||||||
m_addNewFileAction = new QAction(tr("Add New..."), this);
|
m_addNewFileAction = new QAction(tr("Add New..."), this);
|
||||||
cmd = am->registerAction(m_addNewFileAction, ProjectExplorer::Constants::ADDNEWFILE,
|
cmd = am->registerAction(m_addNewFileAction, ProjectExplorer::Constants::ADDNEWFILE,
|
||||||
|
|||||||
Reference in New Issue
Block a user