Added menu option to call the Template editor independently.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-08-15 16:01:07 +03:00
parent b212d04d11
commit 2137cd816d
2 changed files with 24 additions and 10 deletions

View File

@ -63,6 +63,7 @@
#include "dialogs/vwidgetdetails.h"
#include "../vpatterndb/vpiecepath.h"
#include "../qmuparser/qmuparsererror.h"
#include "../vtools/dialogs/support/dialogeditlabel.h"
#include <QInputDialog>
#include <QtDebug>
@ -4051,6 +4052,12 @@ void MainWindow::CreateActions()
connect(ui->actionSyncMeasurements, &QAction::triggered, this, &MainWindow::SyncMeasurements);
connect(ui->actionUnloadMeasurements, &QAction::triggered, this, &MainWindow::UnloadMeasurements);
connect(ui->actionLabelTemplateEditor, &QAction::triggered, this, [this]()
{
DialogEditLabel editor(doc);
editor.exec();
});
}
//---------------------------------------------------------------------------------------------------------------------

View File

@ -55,8 +55,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>126</width>
<height>351</height>
<width>127</width>
<height>358</height>
</rect>
</property>
<property name="sizePolicy">
@ -402,7 +402,7 @@
<x>0</x>
<y>0</y>
<width>140</width>
<height>108</height>
<height>110</height>
</rect>
</property>
<property name="sizePolicy">
@ -511,7 +511,7 @@
<x>0</x>
<y>0</y>
<width>140</width>
<height>243</height>
<height>248</height>
</rect>
</property>
<property name="sizePolicy">
@ -773,7 +773,7 @@
<x>0</x>
<y>0</y>
<width>140</width>
<height>243</height>
<height>248</height>
</rect>
</property>
<property name="sizePolicy">
@ -1038,7 +1038,7 @@
<x>0</x>
<y>0</y>
<width>140</width>
<height>102</height>
<height>104</height>
</rect>
</property>
<property name="sizePolicy">
@ -1121,7 +1121,7 @@
<x>0</x>
<y>0</y>
<width>140</width>
<height>326</height>
<height>328</height>
</rect>
</property>
<attribute name="icon">
@ -1325,7 +1325,7 @@
<x>0</x>
<y>0</y>
<width>140</width>
<height>192</height>
<height>196</height>
</rect>
</property>
<property name="sizePolicy">
@ -1535,7 +1535,7 @@
<x>0</x>
<y>0</y>
<width>140</width>
<height>326</height>
<height>328</height>
</rect>
</property>
<attribute name="icon">
@ -1635,7 +1635,7 @@
<x>0</x>
<y>0</y>
<width>1100</width>
<height>19</height>
<height>25</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@ -1664,6 +1664,8 @@
<addaction name="actionPreferences"/>
<addaction name="actionPattern_properties"/>
<addaction name="separator"/>
<addaction name="actionLabelTemplateEditor"/>
<addaction name="separator"/>
<addaction name="actionExit"/>
</widget>
<widget class="QMenu" name="menuHelp">
@ -2668,6 +2670,11 @@
<enum>QAction::NoRole</enum>
</property>
</action>
<action name="actionLabelTemplateEditor">
<property name="text">
<string>Label template editor</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<customwidgets>