2012-03-28 06:04:26 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ui version="4.0">
|
2012-03-27 10:05:41 +00:00
|
|
|
<class>Dialog</class>
|
2012-03-28 06:04:26 +00:00
|
|
|
<widget class="QDialog" name="Dialog">
|
|
|
|
<property name="geometry">
|
2012-03-27 10:05:41 +00:00
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2012-03-29 12:16:02 +00:00
|
|
|
<width>515</width>
|
|
|
|
<height>480</height>
|
2012-03-27 10:05:41 +00:00
|
|
|
</rect>
|
|
|
|
</property>
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="windowTitle">
|
2012-03-27 10:05:41 +00:00
|
|
|
<string>Dialog</string>
|
|
|
|
</property>
|
2012-03-28 06:04:26 +00:00
|
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
2012-03-27 10:05:41 +00:00
|
|
|
<item>
|
2012-03-28 06:04:26 +00:00
|
|
|
<widget class="QGroupBox" name="groupBox">
|
|
|
|
<property name="title">
|
|
|
|
<string>Select the type of dialog to create:</string>
|
2012-03-27 10:05:41 +00:00
|
|
|
</property>
|
2012-03-28 06:04:26 +00:00
|
|
|
<layout class="QGridLayout" name="gridLayout">
|
2012-03-29 12:16:02 +00:00
|
|
|
<item row="0" column="0" colspan="3">
|
|
|
|
<widget class="QCheckBox" name="useThisAsParentCheckBox">
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="text">
|
2012-03-29 12:16:02 +00:00
|
|
|
<string>Use this window as parent for newly created dialogs</string>
|
|
|
|
</property>
|
|
|
|
<property name="checked">
|
|
|
|
<bool>true</bool>
|
2012-03-27 10:05:41 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2012-03-29 12:16:02 +00:00
|
|
|
<item row="3" column="0">
|
|
|
|
<widget class="QPushButton" name="modelessCustomDialogButton">
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="text">
|
2012-03-29 12:16:02 +00:00
|
|
|
<string>Custom Dialog</string>
|
2012-03-27 10:05:41 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2012-03-29 12:16:02 +00:00
|
|
|
<item row="3" column="1">
|
|
|
|
<widget class="QPushButton" name="modelessColorDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Color Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="3" column="2">
|
|
|
|
<widget class="QPushButton" name="modelessFontDialogButton">
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="text">
|
2012-03-29 12:16:02 +00:00
|
|
|
<string>Font Dialog</string>
|
2012-03-27 10:05:41 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2012-03-29 10:13:33 +00:00
|
|
|
<item row="5" column="0">
|
2012-03-29 12:16:02 +00:00
|
|
|
<widget class="QPushButton" name="windowModalCustomDialogButton">
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="text">
|
2012-03-29 12:16:02 +00:00
|
|
|
<string>Custom Dialog</string>
|
2012-03-27 10:05:41 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2012-03-29 12:16:02 +00:00
|
|
|
<item row="5" column="1">
|
|
|
|
<widget class="QPushButton" name="windowModalColorDialogButton">
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="text">
|
2012-03-29 12:16:02 +00:00
|
|
|
<string>Color Dialog</string>
|
2012-03-27 10:05:41 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2012-03-29 12:16:02 +00:00
|
|
|
<item row="5" column="2">
|
|
|
|
<widget class="QPushButton" name="windowModalFileDialogButton">
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="text">
|
2012-03-29 12:16:02 +00:00
|
|
|
<string>File Dialog</string>
|
2012-03-27 10:05:41 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2012-03-29 12:16:02 +00:00
|
|
|
<item row="6" column="0">
|
|
|
|
<widget class="QPushButton" name="windowModalFontDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Font Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="6" column="1">
|
|
|
|
<widget class="QPushButton" name="windowModalPageSetupDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Page Setup Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="6" column="2">
|
|
|
|
<widget class="QPushButton" name="windowModalPrintDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Print Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="10" column="0">
|
|
|
|
<widget class="QPushButton" name="applicationModalCustomDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Custom Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="10" column="1">
|
|
|
|
<widget class="QPushButton" name="applicationModalColorDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Color Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="10" column="2">
|
|
|
|
<widget class="QPushButton" name="applicationModalFileDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>File Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="11" column="0">
|
|
|
|
<widget class="QPushButton" name="applicationModalFontDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Font Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="11" column="1">
|
|
|
|
<widget class="QPushButton" name="applicationModalPageSetupDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Page Setup Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="11" column="2">
|
|
|
|
<widget class="QPushButton" name="applicationModalPrintDialogButton">
|
|
|
|
<property name="text">
|
|
|
|
<string>Print Dialog</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="12" column="0" colspan="3">
|
|
|
|
<widget class="QLabel" name="applicationModalNoteLabel">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
|
|
|
<pointsize>11</pointsize>
|
|
|
|
</font>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Native Application Modal Dialogs use static API instead of exec()</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="9" column="0" colspan="3">
|
2012-03-29 10:13:33 +00:00
|
|
|
<widget class="QCheckBox" name="applicationModalUseExecCheckBox">
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="font">
|
|
|
|
<font>
|
|
|
|
<pointsize>11</pointsize>
|
|
|
|
</font>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
2012-03-29 10:13:33 +00:00
|
|
|
<string>Application Modal Dialogs use exec()</string>
|
|
|
|
</property>
|
|
|
|
<property name="checked">
|
|
|
|
<bool>true</bool>
|
2012-03-28 06:04:26 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2012-03-29 12:16:02 +00:00
|
|
|
<item row="7" column="0" colspan="3">
|
|
|
|
<widget class="QLabel" name="windowModalNoteLabel">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
|
|
|
<pointsize>11</pointsize>
|
|
|
|
</font>
|
|
|
|
</property>
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="text">
|
2012-03-29 12:16:02 +00:00
|
|
|
<string>Native Window Modal Dialogs use open()</string>
|
2012-03-28 06:04:26 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2012-03-29 12:16:02 +00:00
|
|
|
<item row="8" column="0" colspan="3">
|
|
|
|
<widget class="QLabel" name="applicationModalDialogsLabel">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
|
|
|
<weight>75</weight>
|
|
|
|
<bold>true</bold>
|
|
|
|
</font>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Application Modal Dialogs</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="4" column="0" colspan="2">
|
|
|
|
<widget class="QLabel" name="windowModalDialogsLabel">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
|
|
|
<weight>75</weight>
|
|
|
|
<bold>true</bold>
|
|
|
|
</font>
|
|
|
|
</property>
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="text">
|
2012-03-29 12:16:02 +00:00
|
|
|
<string>Window Modal Dialogs</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="2" column="0" colspan="3">
|
|
|
|
<widget class="QLabel" name="modelessDialogsLabel">
|
|
|
|
<property name="sizePolicy">
|
|
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
|
|
|
<horstretch>0</horstretch>
|
|
|
|
<verstretch>0</verstretch>
|
|
|
|
</sizepolicy>
|
|
|
|
</property>
|
|
|
|
<property name="font">
|
|
|
|
<font>
|
|
|
|
<weight>75</weight>
|
|
|
|
<bold>true</bold>
|
|
|
|
</font>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Modeless (Non-Modal) Dialogs</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item row="1" column="0" colspan="3">
|
|
|
|
<widget class="QCheckBox" name="createSiblingDialogCheckBox">
|
|
|
|
<property name="enabled">
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text">
|
|
|
|
<string>Create new dialogs as siblings of this dialog</string>
|
|
|
|
</property>
|
|
|
|
<property name="checked">
|
|
|
|
<bool>true</bool>
|
2012-03-27 10:05:41 +00:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
2012-03-28 06:04:26 +00:00
|
|
|
<layout class="QHBoxLayout">
|
2012-03-27 10:05:41 +00:00
|
|
|
<item>
|
|
|
|
<spacer>
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="orientation">
|
2012-03-27 10:05:41 +00:00
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
|
</property>
|
2012-03-28 06:04:26 +00:00
|
|
|
<property name="sizeHint" stdset="0">
|
2012-03-27 10:05:41 +00:00
|
|
|
<size>
|
|
|
|
<width>131</width>
|
|
|
|
<height>31</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
|
|
|
<item>
|
2012-03-28 06:04:26 +00:00
|
|
|
<widget class="QPushButton" name="okButton">
|
|
|
|
<property name="text">
|
2012-03-27 10:05:41 +00:00
|
|
|
<string>Close</string>
|
|
|
|
</property>
|
2012-03-29 12:16:02 +00:00
|
|
|
<property name="default">
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
2012-03-27 10:05:41 +00:00
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
<resources/>
|
|
|
|
<connections>
|
|
|
|
<connection>
|
|
|
|
<sender>okButton</sender>
|
|
|
|
<signal>clicked()</signal>
|
|
|
|
<receiver>Dialog</receiver>
|
|
|
|
<slot>accept()</slot>
|
|
|
|
<hints>
|
2012-03-28 06:04:26 +00:00
|
|
|
<hint type="sourcelabel">
|
2012-03-27 10:05:41 +00:00
|
|
|
<x>397</x>
|
|
|
|
<y>338</y>
|
|
|
|
</hint>
|
2012-03-28 06:04:26 +00:00
|
|
|
<hint type="destinationlabel">
|
2012-03-27 10:05:41 +00:00
|
|
|
<x>96</x>
|
|
|
|
<y>254</y>
|
|
|
|
</hint>
|
|
|
|
</hints>
|
|
|
|
</connection>
|
2012-03-29 12:16:02 +00:00
|
|
|
<connection>
|
|
|
|
<sender>useThisAsParentCheckBox</sender>
|
|
|
|
<signal>toggled(bool)</signal>
|
|
|
|
<receiver>createSiblingDialogCheckBox</receiver>
|
|
|
|
<slot>setDisabled(bool)</slot>
|
|
|
|
<hints>
|
|
|
|
<hint type="sourcelabel">
|
|
|
|
<x>260</x>
|
|
|
|
<y>39</y>
|
|
|
|
</hint>
|
|
|
|
<hint type="destinationlabel">
|
|
|
|
<x>260</x>
|
|
|
|
<y>60</y>
|
|
|
|
</hint>
|
|
|
|
</hints>
|
|
|
|
</connection>
|
2012-03-27 10:05:41 +00:00
|
|
|
</connections>
|
|
|
|
</ui>
|