<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>contact_editor</class> <widget class="QDialog" name="contact_editor"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>480</width> <height>420</height> </rect> </property> <property name="minimumSize"> <size> <width>480</width> <height>420</height> </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> <item row="0" column="1"> <widget class="LineEdit" name="name_editor"> <property name="inactiveText" stdset="0"> <string>Contact Name</string> </property> <property name="widgetSpacing" stdset="0"> <number>0</number> </property> </widget> </item> <item row="0" column="0"> <widget class="QLabel" name="name_label"> <property name="text"> <string>Name:</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> </property> </widget> </item> <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> </property> <property name="minimumSize"> <size> <width>60</width> <height>60</height> </size> </property> <property name="maximumSize"> <size> <width>60</width> <height>60</height> </size> </property> <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> </property> <property name="alignment"> <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> </property> </widget> </item> <item row="6" column="0" colspan="3"> <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> <property name="autoDefault"> <bool>false</bool> </property> </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> <property name="autoDefault"> <bool>false</bool> </property> <property name="default"> <bool>false</bool> </property> </widget> </item> </layout> </item> <item row="5" column="0" colspan="3"> <spacer name="grid_spacer"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> <property name="sizeType"> <enum>QSizePolicy::MinimumExpanding</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>20</height> </size> </property> </spacer> </item> <item row="2" column="0" 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> <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> </property> <item> <property name="text"> <string>Start voice calls by default</string> </property> </item> <item> <property name="text"> <string>Start video calls by default</string> </property> </item> <item> <property name="text"> <string>Start MSRP chat sessions by default</string> </property> </item> <item> <property name="text"> <string>Start voice + chat sessions by default</string> </property> </item> <item> <property name="text"> <string>Send messages by default</string> </property> </item> </widget> </item> <item row="3" column="0"> <widget class="QCheckBox" name="presence"> <property name="text"> <string>Enable Presence</string> </property> <property name="checked"> <bool>true</bool> </property> </widget> </item> <item row="3" column="2"> <widget class="QCheckBox" name="auto_answer"> <property name="text"> <string>Auto-answer</string> </property> </widget> </item> </layout> </widget> <customwidgets> <customwidget> <class>LineEdit</class> <extends>QLineEdit</extends> <header>blink.widgets.lineedit</header> </customwidget> <customwidget> <class>IconSelector</class> <extends>QLabel</extends> <header>blink.widgets.labels</header> </customwidget> <customwidget> <class>ContactURITableView</class> <extends>QTableView</extends> <header>blink.contacts</header> </customwidget> </customwidgets> <tabstops> <tabstop>name_editor</tabstop> <tabstop>addresses_table</tabstop> <tabstop>presence</tabstop> <tabstop>preferred_media</tabstop> <tabstop>accept_button</tabstop> <tabstop>reject_button</tabstop> </tabstops> <resources/> <connections> <connection> <sender>accept_button</sender> <signal>clicked()</signal> <receiver>contact_editor</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>contact_editor</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>