contact_editor.ui 8.65 KB
Newer Older
Dan Pascu's avatar
Dan Pascu committed
1 2
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
3 4
 <class>contact_editor</class>
 <widget class="QDialog" name="contact_editor">
Dan Pascu's avatar
Dan Pascu committed
5 6 7 8
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9 10
    <width>480</width>
    <height>420</height>
Dan Pascu's avatar
Dan Pascu committed
11 12 13 14
   </rect>
  </property>
  <property name="minimumSize">
   <size>
15 16
    <width>480</width>
    <height>420</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
   <item row="0" column="0">
    <widget class="QLabel" name="name_label">
47
     <property name="text">
48
      <string>Name:</string>
Dan Pascu's avatar
Dan Pascu committed
49
     </property>
50
     <property name="alignment">
51
      <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</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 97 98 99
   <item row="6" column="0" colspan="3">
    <layout class="QHBoxLayout" name="button_box_layout">
     <property name="spacing">
      <number>6</number>
Dan Pascu's avatar
Dan Pascu committed
100 101
     </property>
     <item>
102 103 104 105 106 107 108 109 110 111 112
      <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>
Dan Pascu's avatar
Dan Pascu committed
113
     </item>
Dan Pascu's avatar
Dan Pascu committed
114
     <item>
115 116 117 118 119 120 121 122 123 124 125 126 127 128
      <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>
       <property name="autoDefault">
        <bool>false</bool>
       </property>
      </widget>
129 130
     </item>
     <item>
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
      <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>
       <property name="autoDefault">
        <bool>false</bool>
       </property>
       <property name="default">
        <bool>false</bool>
       </property>
      </widget>
Dan Pascu's avatar
Dan Pascu committed
148
     </item>
149
    </layout>
150
   </item>
151 152
   <item row="5" column="0" colspan="3">
    <spacer name="grid_spacer">
153 154 155 156 157 158 159 160
     <property name="orientation">
      <enum>Qt::Vertical</enum>
     </property>
     <property name="sizeType">
      <enum>QSizePolicy::MinimumExpanding</enum>
     </property>
     <property name="sizeHint" stdset="0">
      <size>
161
       <width>20</width>
162 163 164 165 166
       <height>20</height>
      </size>
     </property>
    </spacer>
   </item>
167
   <item row="2" column="0" colspan="3">
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 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
    <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>
223 224
   <item row="3" column="0" colspan="3">
    <widget class="QCheckBox" name="presence">
Dan Pascu's avatar
Dan Pascu committed
225
     <property name="text">
226
      <string>Exchange Availability Information</string>
Dan Pascu's avatar
Dan Pascu committed
227
     </property>
228 229
     <property name="checked">
      <bool>true</bool>
Dan Pascu's avatar
Dan Pascu committed
230 231 232
     </property>
    </widget>
   </item>
233 234 235 236 237 238 239
   <item row="4" column="0" colspan="3">
    <widget class="QComboBox" name="preferred_media">
     <property name="sizePolicy">
      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
       <horstretch>0</horstretch>
       <verstretch>0</verstretch>
      </sizepolicy>
Dan Pascu's avatar
Dan Pascu committed
240 241
     </property>
     <item>
242 243 244
      <property name="text">
       <string>Start voice calls by default</string>
      </property>
Dan Pascu's avatar
Dan Pascu committed
245 246
     </item>
     <item>
247 248 249
      <property name="text">
       <string>Start video calls by default</string>
      </property>
Dan Pascu's avatar
Dan Pascu committed
250 251
     </item>
     <item>
252 253 254
      <property name="text">
       <string>Start chat sessions by default</string>
      </property>
Dan Pascu's avatar
Dan Pascu committed
255
     </item>
256 257 258 259 260 261
     <item>
      <property name="text">
       <string>Start voice + chat sessions by default</string>
      </property>
     </item>
    </widget>
Dan Pascu's avatar
Dan Pascu committed
262 263 264 265 266 267 268 269 270 271 272 273
   </item>
  </layout>
 </widget>
 <customwidgets>
  <customwidget>
   <class>LineEdit</class>
   <extends>QLineEdit</extends>
   <header>blink.widgets.lineedit</header>
  </customwidget>
  <customwidget>
   <class>IconSelector</class>
   <extends>QLabel</extends>
274
   <header>blink.widgets.labels</header>
Dan Pascu's avatar
Dan Pascu committed
275
  </customwidget>
276 277 278 279 280
  <customwidget>
   <class>ContactURITableView</class>
   <extends>QTableView</extends>
   <header>blink.contacts</header>
  </customwidget>
Dan Pascu's avatar
Dan Pascu committed
281 282
 </customwidgets>
 <tabstops>
283 284 285
  <tabstop>name_editor</tabstop>
  <tabstop>addresses_table</tabstop>
  <tabstop>presence</tabstop>
Dan Pascu's avatar
Dan Pascu committed
286 287
  <tabstop>preferred_media</tabstop>
  <tabstop>accept_button</tabstop>
288
  <tabstop>reject_button</tabstop>
Dan Pascu's avatar
Dan Pascu committed
289 290 291 292 293 294
 </tabstops>
 <resources/>
 <connections>
  <connection>
   <sender>accept_button</sender>
   <signal>clicked()</signal>
295
   <receiver>contact_editor</receiver>
Dan Pascu's avatar
Dan Pascu committed
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
   <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>
311
   <receiver>contact_editor</receiver>
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
   <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>