1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/warningdialog.ui Thu Jun 01 11:19:57 2006 +0000
1.3 @@ -0,0 +1,231 @@
1.4 +<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
1.5 +<class>WarningDialog</class>
1.6 +<widget class="QDialog">
1.7 + <property name="name">
1.8 + <cstring>WarningDialog</cstring>
1.9 + </property>
1.10 + <property name="geometry">
1.11 + <rect>
1.12 + <x>0</x>
1.13 + <y>0</y>
1.14 + <width>350</width>
1.15 + <height>181</height>
1.16 + </rect>
1.17 + </property>
1.18 + <property name="caption">
1.19 + <string>VYM - Warning : Foo...</string>
1.20 + </property>
1.21 + <vbox>
1.22 + <property name="name">
1.23 + <cstring>unnamed</cstring>
1.24 + </property>
1.25 + <widget class="QLayoutWidget">
1.26 + <property name="name">
1.27 + <cstring>layout6</cstring>
1.28 + </property>
1.29 + <hbox>
1.30 + <property name="name">
1.31 + <cstring>unnamed</cstring>
1.32 + </property>
1.33 + <widget class="QLabel">
1.34 + <property name="name">
1.35 + <cstring>warningSign</cstring>
1.36 + </property>
1.37 + <property name="scaledContents">
1.38 + <bool>true</bool>
1.39 + </property>
1.40 + </widget>
1.41 + <widget class="QLabel">
1.42 + <property name="name">
1.43 + <cstring>textLabel</cstring>
1.44 + </property>
1.45 + <property name="text">
1.46 + <string>textLabel</string>
1.47 + </property>
1.48 + </widget>
1.49 + <spacer>
1.50 + <property name="name">
1.51 + <cstring>spacer6</cstring>
1.52 + </property>
1.53 + <property name="orientation">
1.54 + <enum>Horizontal</enum>
1.55 + </property>
1.56 + <property name="sizeType">
1.57 + <enum>Expanding</enum>
1.58 + </property>
1.59 + <property name="sizeHint">
1.60 + <size>
1.61 + <width>160</width>
1.62 + <height>31</height>
1.63 + </size>
1.64 + </property>
1.65 + </spacer>
1.66 + </hbox>
1.67 + </widget>
1.68 + <spacer>
1.69 + <property name="name">
1.70 + <cstring>spacer7</cstring>
1.71 + </property>
1.72 + <property name="orientation">
1.73 + <enum>Vertical</enum>
1.74 + </property>
1.75 + <property name="sizeType">
1.76 + <enum>Expanding</enum>
1.77 + </property>
1.78 + <property name="sizeHint">
1.79 + <size>
1.80 + <width>21</width>
1.81 + <height>20</height>
1.82 + </size>
1.83 + </property>
1.84 + </spacer>
1.85 + <widget class="QLayoutWidget">
1.86 + <property name="name">
1.87 + <cstring>layout4</cstring>
1.88 + </property>
1.89 + <hbox>
1.90 + <property name="name">
1.91 + <cstring>unnamed</cstring>
1.92 + </property>
1.93 + <spacer>
1.94 + <property name="name">
1.95 + <cstring>spacer3</cstring>
1.96 + </property>
1.97 + <property name="orientation">
1.98 + <enum>Horizontal</enum>
1.99 + </property>
1.100 + <property name="sizeType">
1.101 + <enum>Expanding</enum>
1.102 + </property>
1.103 + <property name="sizeHint">
1.104 + <size>
1.105 + <width>61</width>
1.106 + <height>20</height>
1.107 + </size>
1.108 + </property>
1.109 + </spacer>
1.110 + <widget class="QCheckBox">
1.111 + <property name="name">
1.112 + <cstring>showAgainBox</cstring>
1.113 + </property>
1.114 + <property name="text">
1.115 + <string>showAgainBox</string>
1.116 + </property>
1.117 + <property name="checked">
1.118 + <bool>true</bool>
1.119 + </property>
1.120 + </widget>
1.121 + <spacer>
1.122 + <property name="name">
1.123 + <cstring>spacer4</cstring>
1.124 + </property>
1.125 + <property name="orientation">
1.126 + <enum>Horizontal</enum>
1.127 + </property>
1.128 + <property name="sizeType">
1.129 + <enum>Expanding</enum>
1.130 + </property>
1.131 + <property name="sizeHint">
1.132 + <size>
1.133 + <width>51</width>
1.134 + <height>21</height>
1.135 + </size>
1.136 + </property>
1.137 + </spacer>
1.138 + </hbox>
1.139 + </widget>
1.140 + <spacer>
1.141 + <property name="name">
1.142 + <cstring>spacer5</cstring>
1.143 + </property>
1.144 + <property name="orientation">
1.145 + <enum>Vertical</enum>
1.146 + </property>
1.147 + <property name="sizeType">
1.148 + <enum>Expanding</enum>
1.149 + </property>
1.150 + <property name="sizeHint">
1.151 + <size>
1.152 + <width>21</width>
1.153 + <height>20</height>
1.154 + </size>
1.155 + </property>
1.156 + </spacer>
1.157 + <widget class="QLayoutWidget">
1.158 + <property name="name">
1.159 + <cstring>layout3</cstring>
1.160 + </property>
1.161 + <hbox>
1.162 + <property name="name">
1.163 + <cstring>unnamed</cstring>
1.164 + </property>
1.165 + <spacer>
1.166 + <property name="name">
1.167 + <cstring>spacer2</cstring>
1.168 + </property>
1.169 + <property name="orientation">
1.170 + <enum>Horizontal</enum>
1.171 + </property>
1.172 + <property name="sizeType">
1.173 + <enum>Expanding</enum>
1.174 + </property>
1.175 + <property name="sizeHint">
1.176 + <size>
1.177 + <width>161</width>
1.178 + <height>31</height>
1.179 + </size>
1.180 + </property>
1.181 + </spacer>
1.182 + <widget class="QPushButton">
1.183 + <property name="name">
1.184 + <cstring>cancelButton</cstring>
1.185 + </property>
1.186 + <property name="text">
1.187 + <string>Cancel</string>
1.188 + </property>
1.189 + </widget>
1.190 + <widget class="QPushButton">
1.191 + <property name="name">
1.192 + <cstring>okButton</cstring>
1.193 + </property>
1.194 + <property name="text">
1.195 + <string>Ok</string>
1.196 + </property>
1.197 + </widget>
1.198 + </hbox>
1.199 + </widget>
1.200 + </vbox>
1.201 +</widget>
1.202 +<connections>
1.203 + <connection>
1.204 + <sender>okButton</sender>
1.205 + <signal>clicked()</signal>
1.206 + <receiver>WarningDialog</receiver>
1.207 + <slot>accept()</slot>
1.208 + </connection>
1.209 + <connection>
1.210 + <sender>cancelButton</sender>
1.211 + <signal>clicked()</signal>
1.212 + <receiver>WarningDialog</receiver>
1.213 + <slot>reject()</slot>
1.214 + </connection>
1.215 +</connections>
1.216 +<includes>
1.217 + <include location="local" impldecl="in implementation">warningdialog.ui.h</include>
1.218 +</includes>
1.219 +<variables>
1.220 + <variable>bool useShowAgain;</variable>
1.221 + <variable>QString showAgainName;</variable>
1.222 +</variables>
1.223 +<slots>
1.224 + <slot>setCancelButton( bool b )</slot>
1.225 + <slot>setShowAgainName( const QString & s )</slot>
1.226 + <slot>setText( const QString & s )</slot>
1.227 + <slot>setCaption( const QString & s )</slot>
1.228 +</slots>
1.229 +<functions>
1.230 + <function access="private" specifier="non virtual">init()</function>
1.231 +</functions>
1.232 +<pixmapinproject/>
1.233 +<layoutdefaults spacing="6" margin="11"/>
1.234 +</UI>
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/warningdialog.ui.h Thu Jun 01 11:19:57 2006 +0000
2.3 @@ -0,0 +1,48 @@
2.4 +/****************************************************************************
2.5 +** ui.h extension file, included from the uic-generated form implementation.
2.6 +**
2.7 +** If you want to add, delete, or rename functions or slots, use
2.8 +** Qt Designer to update this file, preserving your code.
2.9 +**
2.10 +** You should not define a constructor or destructor in this file.
2.11 +** Instead, write your code in functions called init() and destroy().
2.12 +** These will automatically be called by the form's constructor and
2.13 +** destructor.
2.14 +*****************************************************************************/
2.15 +
2.16 +void WarningDialog::init()
2.17 +{
2.18 + warningSign->setPixmap (QPixmap("icons/vym.png"));
2.19 + setCancelButton (false);
2.20 + okButton->setText(tr("Proceed"));
2.21 + showAgainBox->setText (tr("Show this message again"));
2.22 + useShowAgain=false;
2.23 + showAgainBox->hide();
2.24 +}
2.25 +
2.26 +void WarningDialog::setCancelButton (bool b)
2.27 +{
2.28 + if (b)
2.29 + {
2.30 + cancelButton->show();
2.31 + cancelButton->setText(tr("Cancel"));
2.32 + } else
2.33 + cancelButton->hide();
2.34 +}
2.35 +
2.36 +void WarningDialog::setShowAgainName (const QString &s)
2.37 +{
2.38 + showAgainName=s;
2.39 + useShowAgain=true;
2.40 + showAgainBox->show();
2.41 +}
2.42 +
2.43 +void WarningDialog::setText (const QString &s)
2.44 +{
2.45 + textLabel->setText(s);
2.46 +}
2.47 +
2.48 +void WarningDialog::setCaption(const QString &s)
2.49 +{
2.50 + QDialog::setCaption("VYM - "+s);
2.51 +}