Files
sethLabels/glabels/ui/PreferencesDialog.ui
T
Jaye Evins fa96cc5a17 Add grid settings to preferences (#224)
- Allow origin to be either at the top-left corner or center of label (#174)
- For non-rectangular labels (cd, round, etc.) the origin will still
  always be at the center of the label.
- User controllable grid spacing
2025-08-14 15:47:22 -04:00

368 lines
9.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PreferencesDialog</class>
<widget class="QDialog" name="PreferencesDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>318</width>
<height>357</height>
</rect>
</property>
<property name="windowTitle">
<string>gLabels - Preferences</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>Locale</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="2" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Select locale specific behavior.</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Units</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="4" column="0">
<widget class="QRadioButton" name="unitsPointsRadio">
<property name="text">
<string>Points</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QRadioButton" name="unitsCentimetersRadio">
<property name="text">
<string>Centimeters</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QRadioButton" name="unitsMillimetersRadio">
<property name="text">
<string>Millimeters</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="unitsInchesRadio">
<property name="text">
<string>Inches</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QRadioButton" name="unitsPicasRadio">
<property name="text">
<string>Picas</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_2">
<attribute name="title">
<string>Grid</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Configure grid behavior.</string>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Origin</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QRadioButton" name="gridOriginTlRadio">
<property name="text">
<string>Top left corner</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="gridOriginCenterRadio">
<property name="text">
<string>Center</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Spacing</string>
</property>
</widget>
</item>
<item>
<widget class="QDoubleSpinBox" name="gridSpacingSpin"/>
</item>
<item>
<widget class="QPushButton" name="gridSpacingResetButton">
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="text">
<string>Reset</string>
</property>
</widget>
</item>
<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>
</layout>
</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>
</layout>
</widget>
</widget>
</item>
<item row="1" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>clicked(QAbstractButton*)</signal>
<receiver>PreferencesDialog</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>298</x>
<y>347</y>
</hint>
<hint type="destinationlabel">
<x>298</x>
<y>312</y>
</hint>
</hints>
</connection>
<connection>
<sender>unitsPointsRadio</sender>
<signal>clicked()</signal>
<receiver>PreferencesDialog</receiver>
<slot>onUnitsRadiosChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>285</x>
<y>246</y>
</hint>
<hint type="destinationlabel">
<x>298</x>
<y>105</y>
</hint>
</hints>
</connection>
<connection>
<sender>unitsInchesRadio</sender>
<signal>clicked()</signal>
<receiver>PreferencesDialog</receiver>
<slot>onUnitsRadiosChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>285</x>
<y>144</y>
</hint>
<hint type="destinationlabel">
<x>298</x>
<y>139</y>
</hint>
</hints>
</connection>
<connection>
<sender>unitsMillimetersRadio</sender>
<signal>clicked()</signal>
<receiver>PreferencesDialog</receiver>
<slot>onUnitsRadiosChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>285</x>
<y>178</y>
</hint>
<hint type="destinationlabel">
<x>298</x>
<y>172</y>
</hint>
</hints>
</connection>
<connection>
<sender>unitsCentimetersRadio</sender>
<signal>clicked(bool)</signal>
<receiver>PreferencesDialog</receiver>
<slot>onUnitsRadiosChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>285</x>
<y>212</y>
</hint>
<hint type="destinationlabel">
<x>295</x>
<y>164</y>
</hint>
</hints>
</connection>
<connection>
<sender>unitsPicasRadio</sender>
<signal>clicked()</signal>
<receiver>PreferencesDialog</receiver>
<slot>onUnitsRadiosChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>266</x>
<y>280</y>
</hint>
<hint type="destinationlabel">
<x>295</x>
<y>215</y>
</hint>
</hints>
</connection>
<connection>
<sender>gridSpacingSpin</sender>
<signal>valueChanged(double)</signal>
<receiver>PreferencesDialog</receiver>
<slot>onGridSpacingSpinChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>114</x>
<y>206</y>
</hint>
<hint type="destinationlabel">
<x>7</x>
<y>240</y>
</hint>
</hints>
</connection>
<connection>
<sender>gridOriginTlRadio</sender>
<signal>toggled(bool)</signal>
<receiver>PreferencesDialog</receiver>
<slot>onGridOriginRadiosChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>264</x>
<y>128</y>
</hint>
<hint type="destinationlabel">
<x>311</x>
<y>36</y>
</hint>
</hints>
</connection>
<connection>
<sender>gridOriginCenterRadio</sender>
<signal>toggled(bool)</signal>
<receiver>PreferencesDialog</receiver>
<slot>onGridOriginRadiosChanged()</slot>
<hints>
<hint type="sourcelabel">
<x>129</x>
<y>156</y>
</hint>
<hint type="destinationlabel">
<x>318</x>
<y>235</y>
</hint>
</hints>
</connection>
<connection>
<sender>gridSpacingResetButton</sender>
<signal>clicked()</signal>
<receiver>PreferencesDialog</receiver>
<slot>onGridSpacingResetButtonClicked()</slot>
<hints>
<hint type="sourcelabel">
<x>177</x>
<y>213</y>
</hint>
<hint type="destinationlabel">
<x>313</x>
<y>267</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>onUnitsRadiosChanged()</slot>
<slot>onGridSpacingSpinChanged()</slot>
<slot>onGridOriginRadiosChanged()</slot>
<slot>onGridSpacingResetButtonClicked()</slot>
</slots>
</ui>