contact_editor.ui 9.25 KB
Newer Older
Dan Pascu's avatar
Dan Pascu committed
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>ContactEditor</class>
 <widget class="QDialog" name="ContactEditor">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9 10
    <width>460</width>
    <height>350</height>
Dan Pascu's avatar
Dan Pascu committed
11 12 13 14
   </rect>
  </property>
  <property name="minimumSize">
   <size>
15 16
    <width>460</width>
    <height>350</height>
Dan Pascu's avatar
Dan Pascu committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
   </size>
  </property>
  <property name="windowTitle">
   <string>Contact Editor</string>
  </property>
  <layout class="QGridLayout" name="grid_layout">
   <property name="leftMargin">
    <number>10</number>
   </property>
   <property name="topMargin">
    <number>15</number>
   </property>
   <property name="rightMargin">
    <number>10</number>
   </property>
   <property name="bottomMargin">
    <number>10</number>
   </property>
35 36 37 38
   <item row="0" column="1">
    <widget class="LineEdit" name="name_editor">
     <property name="inactiveText" stdset="0">
      <string>Contact Name</string>
Dan Pascu's avatar
Dan Pascu committed
39
     </property>
40 41
     <property name="widgetSpacing" stdset="0">
      <number>0</number>
Dan Pascu's avatar
Dan Pascu committed
42 43 44
     </property>
    </widget>
   </item>
45 46 47 48
   <item row="2" column="0">
    <widget class="QLabel" name="addresses_label">
     <property name="text">
      <string>Addresses:</string>
Dan Pascu's avatar
Dan Pascu committed
49
     </property>
50 51
     <property name="alignment">
      <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
Dan Pascu's avatar
Dan Pascu committed
52
     </property>
53
    </widget>
Dan Pascu's avatar
Dan Pascu committed
54
   </item>
55 56 57 58 59 60 61
   <item row="0" column="2" rowspan="2">
    <widget class="IconSelector" name="icon_selector">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
Dan Pascu's avatar
Dan Pascu committed
62
     </property>
63 64 65 66 67
     <property name="minimumSize">
      <size>
       <width>60</width>
       <height>60</height>
      </size>
Dan Pascu's avatar
Dan Pascu committed
68
     </property>
69
     <property name="maximumSize">
Dan Pascu's avatar
Dan Pascu committed
70
      <size>
71 72
       <width>60</width>
       <height>60</height>
Dan Pascu's avatar
Dan Pascu committed
73 74
      </size>
     </property>
75 76 77 78 79 80 81 82
     <property name="frameShape">
      <enum>QFrame::StyledPanel</enum>
     </property>
     <property name="frameShadow">
      <enum>QFrame::Sunken</enum>
     </property>
     <property name="pixmap">
      <pixmap>icons/default-avatar.png</pixmap>
Dan Pascu's avatar
Dan Pascu committed
83 84
     </property>
     <property name="alignment">
85 86 87 88 89 90 91 92
      <set>Qt::AlignCenter</set>
     </property>
     <property name="default_icon" stdset="0">
      <iconset>
       <normaloff>icons/default-avatar.png</normaloff>icons/default-avatar.png</iconset>
     </property>
     <property name="icon_size" stdset="0">
      <number>48</number>
Dan Pascu's avatar
Dan Pascu committed
93 94 95
     </property>
    </widget>
   </item>
96
   <item row="4" column="1" colspan="3">
97
    <widget class="QComboBox" name="preferred_media">
Dan Pascu's avatar
Dan Pascu committed
98 99 100 101 102 103 104 105
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
     </property>
     <item>
      <property name="text">
106
       <string>Start voice calls by default</string>
Dan Pascu's avatar
Dan Pascu committed
107 108
      </property>
     </item>
Dan Pascu's avatar
Dan Pascu committed
109 110 111 112 113
     <item>
      <property name="text">
       <string>Start video calls by default</string>
      </property>
     </item>
Dan Pascu's avatar
Dan Pascu committed
114 115
     <item>
      <property name="text">
116
       <string>Start chat sessions by default</string>
117 118 119 120 121
      </property>
     </item>
     <item>
      <property name="text">
       <string>Start voice + chat sessions by default</string>
Dan Pascu's avatar
Dan Pascu committed
122 123 124 125
      </property>
     </item>
    </widget>
   </item>
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
   <item row="3" column="1" colspan="3">
    <widget class="QCheckBox" name="presence">
     <property name="text">
      <string>Exchange Availability Information</string>
     </property>
     <property name="checked">
      <bool>true</bool>
     </property>
    </widget>
   </item>
   <item row="6" column="0" colspan="4">
    <spacer name="section_spacer">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeType">
      <enum>QSizePolicy::MinimumExpanding</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
       <width>412</width>
       <height>20</height>
      </size>
     </property>
    </spacer>
   </item>
   <item row="2" column="1" colspan="3">
    <widget class="ContactURITableView" name="addresses_table">
     <property name="palette">
      <palette>
       <active>
        <colorrole role="AlternateBase">
         <brush brushstyle="SolidPattern">
          <color alpha="255">
           <red>238</red>
           <green>238</green>
           <blue>238</blue>
          </color>
         </brush>
        </colorrole>
       </active>
       <inactive>
        <colorrole role="AlternateBase">
         <brush brushstyle="SolidPattern">
          <color alpha="255">
           <red>238</red>
           <green>238</green>
           <blue>238</blue>
          </color>
         </brush>
        </colorrole>
       </inactive>
       <disabled>
        <colorrole role="AlternateBase">
         <brush brushstyle="SolidPattern">
          <color alpha="255">
           <red>238</red>
           <green>238</green>
           <blue>238</blue>
          </color>
         </brush>
        </colorrole>
       </disabled>
      </palette>
     </property>
     <property name="alternatingRowColors">
      <bool>true</bool>
     </property>
     <property name="selectionBehavior">
      <enum>QAbstractItemView::SelectRows</enum>
     </property>
     <property name="showGrid">
      <bool>false</bool>
     </property>
     <attribute name="verticalHeaderVisible">
      <bool>false</bool>
     </attribute>
     <attribute name="verticalHeaderDefaultSectionSize">
      <number>22</number>
     </attribute>
    </widget>
   </item>
208
   <item row="0" column="0">
209
    <widget class="QLabel" name="name_label">
Dan Pascu's avatar
Dan Pascu committed
210
     <property name="text">
211
      <string>Name:</string>
Dan Pascu's avatar
Dan Pascu committed
212
     </property>
213 214
     <property name="alignment">
      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
Dan Pascu's avatar
Dan Pascu committed
215 216 217
     </property>
    </widget>
   </item>
218 219 220 221
   <item row="7" column="0" colspan="4">
    <spacer name="grid_spacer">
     <property name="orientation">
      <enum>Qt::Vertical</enum>
Dan Pascu's avatar
Dan Pascu committed
222
     </property>
223 224 225 226 227
     <property name="sizeHint" stdset="0">
      <size>
       <width>412</width>
       <height>20</height>
      </size>
Dan Pascu's avatar
Dan Pascu committed
228
     </property>
229
    </spacer>
Dan Pascu's avatar
Dan Pascu committed
230
   </item>
231
   <item row="8" column="0" colspan="4">
Dan Pascu's avatar
Dan Pascu committed
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
    <layout class="QHBoxLayout" name="button_box_layout">
     <property name="spacing">
      <number>6</number>
     </property>
     <item>
      <spacer name="button_box_spacer">
       <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="reject_button">
       <property name="minimumSize">
        <size>
         <width>85</width>
         <height>25</height>
        </size>
       </property>
       <property name="text">
        <string>Cancel</string>
       </property>
260 261 262
       <property name="autoDefault">
        <bool>false</bool>
       </property>
Dan Pascu's avatar
Dan Pascu committed
263 264 265 266 267 268 269 270 271 272 273 274 275
      </widget>
     </item>
     <item>
      <widget class="QPushButton" name="accept_button">
       <property name="minimumSize">
        <size>
         <width>85</width>
         <height>25</height>
        </size>
       </property>
       <property name="text">
        <string>Add</string>
       </property>
276 277 278 279 280 281
       <property name="autoDefault">
        <bool>false</bool>
       </property>
       <property name="default">
        <bool>false</bool>
       </property>
Dan Pascu's avatar
Dan Pascu committed
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296
      </widget>
     </item>
    </layout>
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>LineEdit</class>
   <extends>QLineEdit</extends>
   <header>blink.widgets.lineedit</header>
  </customwidget>
  <customwidget>
   <class>IconSelector</class>
   <extends>QLabel</extends>
297
   <header>blink.widgets.labels</header>
Dan Pascu's avatar
Dan Pascu committed
298
  </customwidget>
299 300 301 302 303
  <customwidget>
   <class>ContactURITableView</class>
   <extends>QTableView</extends>
   <header>blink.contacts</header>
  </customwidget>
Dan Pascu's avatar
Dan Pascu committed
304 305
 </customwidgets>
 <tabstops>
306 307 308
  <tabstop>name_editor</tabstop>
  <tabstop>addresses_table</tabstop>
  <tabstop>presence</tabstop>
Dan Pascu's avatar
Dan Pascu committed
309 310
  <tabstop>preferred_media</tabstop>
  <tabstop>accept_button</tabstop>
311
  <tabstop>reject_button</tabstop>
Dan Pascu's avatar
Dan Pascu committed
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>accept_button</sender>
   <signal>clicked()</signal>
   <receiver>ContactEditor</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>396</x>
     <y>301</y>
    </hint>
    <hint type="destinationlabel">
     <x>341</x>
     <y>190</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>reject_button</sender>
   <signal>clicked()</signal>
   <receiver>ContactEditor</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>292</x>
     <y>306</y>
    </hint>
    <hint type="destinationlabel">
     <x>272</x>
     <y>131</y>
    </hint>
   </hints>
  </connection>
 </connections>
 <designerdata>
  <property name="gridDeltaX">
   <number>10</number>
  </property>
  <property name="gridDeltaY">
   <number>10</number>
  </property>
  <property name="gridSnapX">
   <bool>true</bool>
  </property>
  <property name="gridSnapY">
   <bool>true</bool>
  </property>
  <property name="gridVisible">
   <bool>true</bool>
  </property>
 </designerdata>
</ui>