editxlinkdialog.ui
changeset 97 0b048b6bb6f4
parent 95 f688a9913724
child 101 1d092be4fe33
     1.1 --- a/editxlinkdialog.ui	Mon Apr 18 06:37:48 2005 +0000
     1.2 +++ b/editxlinkdialog.ui	Thu Apr 21 19:14:38 2005 +0000
     1.3 @@ -8,59 +8,224 @@
     1.4          <rect>
     1.5              <x>0</x>
     1.6              <y>0</y>
     1.7 -            <width>570</width>
     1.8 -            <height>91</height>
     1.9 +            <width>607</width>
    1.10 +            <height>206</height>
    1.11          </rect>
    1.12      </property>
    1.13 +    <property name="sizePolicy">
    1.14 +        <sizepolicy>
    1.15 +            <hsizetype>5</hsizetype>
    1.16 +            <vsizetype>5</vsizetype>
    1.17 +            <horstretch>0</horstretch>
    1.18 +            <verstretch>0</verstretch>
    1.19 +        </sizepolicy>
    1.20 +    </property>
    1.21      <property name="caption">
    1.22 -        <string>Edit Link</string>
    1.23 +        <string>Edit XLink</string>
    1.24      </property>
    1.25 -    <grid>
    1.26 +    <vbox>
    1.27          <property name="name">
    1.28              <cstring>unnamed</cstring>
    1.29          </property>
    1.30 -        <widget class="QPushButton" row="0" column="0">
    1.31 +        <widget class="QLayoutWidget">
    1.32              <property name="name">
    1.33 -                <cstring>deleteButton</cstring>
    1.34 +                <cstring>layout5</cstring>
    1.35              </property>
    1.36 -            <property name="text">
    1.37 -                <string>Delete XLink</string>
    1.38 -            </property>
    1.39 +            <grid>
    1.40 +                <property name="name">
    1.41 +                    <cstring>unnamed</cstring>
    1.42 +                </property>
    1.43 +                <spacer row="0" column="2" rowspan="1" colspan="2">
    1.44 +                    <property name="name">
    1.45 +                        <cstring>spacer2</cstring>
    1.46 +                    </property>
    1.47 +                    <property name="orientation">
    1.48 +                        <enum>Horizontal</enum>
    1.49 +                    </property>
    1.50 +                    <property name="sizeType">
    1.51 +                        <enum>Expanding</enum>
    1.52 +                    </property>
    1.53 +                    <property name="sizeHint">
    1.54 +                        <size>
    1.55 +                            <width>462</width>
    1.56 +                            <height>20</height>
    1.57 +                        </size>
    1.58 +                    </property>
    1.59 +                </spacer>
    1.60 +                <widget class="QLabel" row="0" column="0">
    1.61 +                    <property name="name">
    1.62 +                        <cstring>textLabel1</cstring>
    1.63 +                    </property>
    1.64 +                    <property name="text">
    1.65 +                        <string>Line width:</string>
    1.66 +                    </property>
    1.67 +                    <property name="alignment">
    1.68 +                        <set>AlignVCenter|AlignRight</set>
    1.69 +                    </property>
    1.70 +                </widget>
    1.71 +                <spacer row="1" column="2" rowspan="1" colspan="2">
    1.72 +                    <property name="name">
    1.73 +                        <cstring>spacer3</cstring>
    1.74 +                    </property>
    1.75 +                    <property name="orientation">
    1.76 +                        <enum>Horizontal</enum>
    1.77 +                    </property>
    1.78 +                    <property name="sizeType">
    1.79 +                        <enum>Expanding</enum>
    1.80 +                    </property>
    1.81 +                    <property name="sizeHint">
    1.82 +                        <size>
    1.83 +                            <width>463</width>
    1.84 +                            <height>21</height>
    1.85 +                        </size>
    1.86 +                    </property>
    1.87 +                </spacer>
    1.88 +                <widget class="QCheckBox" row="2" column="1" rowspan="1" colspan="2">
    1.89 +                    <property name="name">
    1.90 +                        <cstring>useSettings</cstring>
    1.91 +                    </property>
    1.92 +                    <property name="text">
    1.93 +                        <string>(use settings as default for new xlinks)</string>
    1.94 +                    </property>
    1.95 +                </widget>
    1.96 +                <widget class="QPushButton" row="1" column="1">
    1.97 +                    <property name="name">
    1.98 +                        <cstring>colorButton</cstring>
    1.99 +                    </property>
   1.100 +                    <property name="enabled">
   1.101 +                        <bool>true</bool>
   1.102 +                    </property>
   1.103 +                    <property name="maximumSize">
   1.104 +                        <size>
   1.105 +                            <width>50</width>
   1.106 +                            <height>20</height>
   1.107 +                        </size>
   1.108 +                    </property>
   1.109 +                    <property name="text">
   1.110 +                        <string></string>
   1.111 +                    </property>
   1.112 +                </widget>
   1.113 +                <widget class="QSpinBox" row="0" column="1">
   1.114 +                    <property name="name">
   1.115 +                        <cstring>widthBox</cstring>
   1.116 +                    </property>
   1.117 +                    <property name="sizePolicy">
   1.118 +                        <sizepolicy>
   1.119 +                            <hsizetype>0</hsizetype>
   1.120 +                            <vsizetype>0</vsizetype>
   1.121 +                            <horstretch>0</horstretch>
   1.122 +                            <verstretch>0</verstretch>
   1.123 +                        </sizepolicy>
   1.124 +                    </property>
   1.125 +                    <property name="maxValue">
   1.126 +                        <number>15</number>
   1.127 +                    </property>
   1.128 +                    <property name="minValue">
   1.129 +                        <number>1</number>
   1.130 +                    </property>
   1.131 +                </widget>
   1.132 +                <widget class="QLabel" row="1" column="0">
   1.133 +                    <property name="name">
   1.134 +                        <cstring>textLabel2</cstring>
   1.135 +                    </property>
   1.136 +                    <property name="text">
   1.137 +                        <string>Line color:</string>
   1.138 +                    </property>
   1.139 +                    <property name="alignment">
   1.140 +                        <set>AlignVCenter|AlignRight</set>
   1.141 +                    </property>
   1.142 +                </widget>
   1.143 +                <widget class="QLabel" row="2" column="0">
   1.144 +                    <property name="name">
   1.145 +                        <cstring>textLabel1_2</cstring>
   1.146 +                    </property>
   1.147 +                    <property name="text">
   1.148 +                        <string>Default:</string>
   1.149 +                    </property>
   1.150 +                    <property name="alignment">
   1.151 +                        <set>AlignVCenter|AlignRight</set>
   1.152 +                    </property>
   1.153 +                </widget>
   1.154 +                <spacer row="2" column="3">
   1.155 +                    <property name="name">
   1.156 +                        <cstring>spacer5</cstring>
   1.157 +                    </property>
   1.158 +                    <property name="orientation">
   1.159 +                        <enum>Horizontal</enum>
   1.160 +                    </property>
   1.161 +                    <property name="sizeType">
   1.162 +                        <enum>Expanding</enum>
   1.163 +                    </property>
   1.164 +                    <property name="sizeHint">
   1.165 +                        <size>
   1.166 +                            <width>110</width>
   1.167 +                            <height>21</height>
   1.168 +                        </size>
   1.169 +                    </property>
   1.170 +                </spacer>
   1.171 +            </grid>
   1.172          </widget>
   1.173 -        <spacer row="0" column="1">
   1.174 +        <spacer>
   1.175              <property name="name">
   1.176 -                <cstring>spacer11</cstring>
   1.177 +                <cstring>spacer4</cstring>
   1.178              </property>
   1.179              <property name="orientation">
   1.180 -                <enum>Horizontal</enum>
   1.181 +                <enum>Vertical</enum>
   1.182              </property>
   1.183              <property name="sizeType">
   1.184                  <enum>Expanding</enum>
   1.185              </property>
   1.186              <property name="sizeHint">
   1.187                  <size>
   1.188 -                    <width>180</width>
   1.189 -                    <height>20</height>
   1.190 +                    <width>20</width>
   1.191 +                    <height>40</height>
   1.192                  </size>
   1.193              </property>
   1.194          </spacer>
   1.195 -        <widget class="QPushButton" row="0" column="3">
   1.196 +        <widget class="QLayoutWidget">
   1.197              <property name="name">
   1.198 -                <cstring>okButton</cstring>
   1.199 +                <cstring>layout4</cstring>
   1.200              </property>
   1.201 -            <property name="text">
   1.202 -                <string>Ok</string>
   1.203 -            </property>
   1.204 +            <hbox>
   1.205 +                <property name="name">
   1.206 +                    <cstring>unnamed</cstring>
   1.207 +                </property>
   1.208 +                <widget class="QPushButton">
   1.209 +                    <property name="name">
   1.210 +                        <cstring>deleteButton</cstring>
   1.211 +                    </property>
   1.212 +                    <property name="text">
   1.213 +                        <string>Delete XLink</string>
   1.214 +                    </property>
   1.215 +                </widget>
   1.216 +                <spacer>
   1.217 +                    <property name="name">
   1.218 +                        <cstring>spacer11</cstring>
   1.219 +                    </property>
   1.220 +                    <property name="orientation">
   1.221 +                        <enum>Horizontal</enum>
   1.222 +                    </property>
   1.223 +                    <property name="sizeType">
   1.224 +                        <enum>Expanding</enum>
   1.225 +                    </property>
   1.226 +                    <property name="sizeHint">
   1.227 +                        <size>
   1.228 +                            <width>100</width>
   1.229 +                            <height>20</height>
   1.230 +                        </size>
   1.231 +                    </property>
   1.232 +                </spacer>
   1.233 +                <widget class="QPushButton">
   1.234 +                    <property name="name">
   1.235 +                        <cstring>okButton</cstring>
   1.236 +                    </property>
   1.237 +                    <property name="text">
   1.238 +                        <string>Ok</string>
   1.239 +                    </property>
   1.240 +                </widget>
   1.241 +            </hbox>
   1.242          </widget>
   1.243 -        <widget class="QPushButton" row="0" column="2">
   1.244 -            <property name="name">
   1.245 -                <cstring>cancelButton</cstring>
   1.246 -            </property>
   1.247 -            <property name="text">
   1.248 -                <string>Cancel</string>
   1.249 -            </property>
   1.250 -        </widget>
   1.251 -    </grid>
   1.252 +    </vbox>
   1.253  </widget>
   1.254  <connections>
   1.255      <connection>
   1.256 @@ -70,30 +235,43 @@
   1.257          <slot>accept()</slot>
   1.258      </connection>
   1.259      <connection>
   1.260 -        <sender>cancelButton</sender>
   1.261 -        <signal>clicked()</signal>
   1.262 -        <receiver>EditXLinkDialog</receiver>
   1.263 -        <slot>reject()</slot>
   1.264 -    </connection>
   1.265 -    <connection>
   1.266          <sender>deleteButton</sender>
   1.267          <signal>clicked()</signal>
   1.268          <receiver>EditXLinkDialog</receiver>
   1.269          <slot>deleteButtonPressed()</slot>
   1.270      </connection>
   1.271 +    <connection>
   1.272 +        <sender>colorButton</sender>
   1.273 +        <signal>clicked()</signal>
   1.274 +        <receiver>EditXLinkDialog</receiver>
   1.275 +        <slot>colorButtonPressed()</slot>
   1.276 +    </connection>
   1.277 +    <connection>
   1.278 +        <sender>widthBox</sender>
   1.279 +        <signal>valueChanged(int)</signal>
   1.280 +        <receiver>EditXLinkDialog</receiver>
   1.281 +        <slot>widthChanged(int)</slot>
   1.282 +    </connection>
   1.283  </connections>
   1.284  <includes>
   1.285 +    <include location="global" impldecl="in implementation">qcolordialog.h</include>
   1.286 +    <include location="local" impldecl="in declaration">xlinkobj.h</include>
   1.287      <include location="local" impldecl="in implementation">editxlinkdialog.ui.h</include>
   1.288  </includes>
   1.289  <variables>
   1.290      <variable access="private">bool delink;</variable>
   1.291 +    <variable access="private">XLinkObj *xlo;</variable>
   1.292  </variables>
   1.293  <slots>
   1.294      <slot access="protected">deleteButtonPressed()</slot>
   1.295 +    <slot access="protected">widthChanged( int w )</slot>
   1.296 +    <slot>setXLink( XLinkObj * xo )</slot>
   1.297 +    <slot access="protected">colorButtonPressed()</slot>
   1.298  </slots>
   1.299  <functions>
   1.300      <function access="private" specifier="non virtual">init()</function>
   1.301      <function returnType="bool">deleteXLink()</function>
   1.302 +    <function returnType="bool">useSettingsGlobal()</function>
   1.303  </functions>
   1.304  <pixmapinproject/>
   1.305  <layoutdefaults spacing="6" margin="11"/>