634 lines
19 KiB
XML
634 lines
19 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>NewLabelDialog</class>
|
|
<widget class="QDialog" name="NewLabelDialog">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>991</width>
|
|
<height>720</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Dialog</string>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<widget class="QGroupBox" name="groupBox_2">
|
|
<property name="title">
|
|
<string>Search</string>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_8">
|
|
<item>
|
|
<widget class="QLineEdit" name="searchEntry">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="placeholderText">
|
|
<string>Search</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="searchClearButton">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../icons.qrc">
|
|
<normaloff>:/icons/16x16/actions/edit-clear.png</normaloff>:/icons/16x16/actions/edit-clear.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>16</width>
|
|
<height>16</height>
|
|
</size>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="groupBox">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>146</width>
|
|
<height>87</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>9</pointsize>
|
|
</font>
|
|
</property>
|
|
<property name="autoFillBackground">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="title">
|
|
<string>Page size</string>
|
|
</property>
|
|
<property name="flat">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
|
<item>
|
|
<widget class="QCheckBox" name="pageSizeIsoCheck">
|
|
<property name="text">
|
|
<string>ISO sizes</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="pageSizeUsCheck">
|
|
<property name="text">
|
|
<string>US sizes</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="pageSizeOtherCheck">
|
|
<property name="text">
|
|
<string>Other</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="glabels::TemplatePicker" name="templatePicker">
|
|
<property name="showDropIndicator" stdset="0">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QStackedWidget" name="selectionStackedWidget">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>1</number>
|
|
</property>
|
|
<widget class="QWidget" name="page">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_6">
|
|
<property name="leftMargin">
|
|
<number>12</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>9</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>10</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>No selection</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QWidget" name="page_2">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
<property name="sizeConstraint">
|
|
<enum>QLayout::SetFixedSize</enum>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>12</number>
|
|
</property>
|
|
<item>
|
|
<widget class="glabels::SimplePreview" name="simplePreview">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>250</width>
|
|
<height>350</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<property name="fieldGrowthPolicy">
|
|
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>Vendor:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QLabel" name="vendorLabel">
|
|
<property name="text">
|
|
<string notr="true">TextLabel</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>Part #:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QLabel" name="partLabel">
|
|
<property name="text">
|
|
<string notr="true">TextLabel</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>Description:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QLabel" name="descriptionLabel">
|
|
<property name="text">
|
|
<string notr="true">TextLabel</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_7">
|
|
<property name="text">
|
|
<string>Page size:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QLabel" name="pageSizeLabel">
|
|
<property name="text">
|
|
<string notr="true">TextLabel</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="label_9">
|
|
<property name="text">
|
|
<string>Label size:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QLabel" name="labelSizeLabel">
|
|
<property name="text">
|
|
<string notr="true">TextLabel</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QLabel" name="label_11">
|
|
<property name="text">
|
|
<string>Layout:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<widget class="QLabel" name="layoutLabel">
|
|
<property name="text">
|
|
<string notr="true">TextLabel</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="similarLabel">
|
|
<property name="text">
|
|
<string>Similar to:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="1">
|
|
<widget class="QTextBrowser" name="similarBrowser">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Fixed" vsizetype="Expanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>150</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="acceptDrops">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="autoFillBackground">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="frameShape">
|
|
<enum>QFrame::NoFrame</enum>
|
|
</property>
|
|
<property name="openLinks">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="orientationGroupBox">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="title">
|
|
<string>Orientation</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<item>
|
|
<widget class="QRadioButton" name="orientationNormalRadio">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>Normal</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="orientationRotatedRadio">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>Rotated</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>40</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="cancelButton">
|
|
<property name="text">
|
|
<string>&Cancel</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="createButton">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>C&reate</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>glabels::TemplatePicker</class>
|
|
<extends>QListWidget</extends>
|
|
<header>TemplatePicker.h</header>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>glabels::SimplePreview</class>
|
|
<extends>QGraphicsView</extends>
|
|
<header>SimplePreview.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources>
|
|
<include location="../icons.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>searchEntry</sender>
|
|
<signal>textChanged(QString)</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onSearchEntryTextChanged()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>69</x>
|
|
<y>48</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>2</x>
|
|
<y>53</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>searchClearButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onSearchClearButtonClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>177</x>
|
|
<y>52</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>190</x>
|
|
<y>7</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>pageSizeIsoCheck</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onPageSizeCheckToggled()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>78</x>
|
|
<y>116</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>3</x>
|
|
<y>110</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>pageSizeUsCheck</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onPageSizeCheckToggled()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>52</x>
|
|
<y>145</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>8</x>
|
|
<y>144</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>pageSizeOtherCheck</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onPageSizeCheckToggled()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>37</x>
|
|
<y>170</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>10</x>
|
|
<y>188</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>templatePicker</sender>
|
|
<signal>itemSelectionChanged()</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onTemplatePickerSelectionChanged()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>232</x>
|
|
<y>550</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>244</x>
|
|
<y>697</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>orientationRotatedRadio</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onOrientationRadioToggled()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>901</x>
|
|
<y>637</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>982</x>
|
|
<y>617</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>orientationNormalRadio</sender>
|
|
<signal>toggled(bool)</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onOrientationRadioToggled()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>807</x>
|
|
<y>644</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>982</x>
|
|
<y>592</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>createButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onCreateButtonClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>951</x>
|
|
<y>699</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>985</x>
|
|
<y>671</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>cancelButton</sender>
|
|
<signal>clicked()</signal>
|
|
<receiver>NewLabelDialog</receiver>
|
|
<slot>onCancelButtonClicked()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>837</x>
|
|
<y>692</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>767</x>
|
|
<y>704</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
<slots>
|
|
<slot>onSearchClearButtonClicked()</slot>
|
|
<slot>onPageSizeCheckToggled()</slot>
|
|
<slot>onTemplatePickerSelectionChanged()</slot>
|
|
<slot>onOrientationRadioToggled()</slot>
|
|
<slot>onCreateButtonClicked()</slot>
|
|
<slot>onSearchEntryTextChanged()</slot>
|
|
<slot>onCancelButtonClicked()</slot>
|
|
</slots>
|
|
</ui>
|