diff options
Diffstat (limited to 'src/gui/selectuserform.ui')
-rw-r--r-- | src/gui/selectuserform.ui | 342 |
1 files changed, 154 insertions, 188 deletions
diff --git a/src/gui/selectuserform.ui b/src/gui/selectuserform.ui index 5b6cbbf..21a76e7 100644 --- a/src/gui/selectuserform.ui +++ b/src/gui/selectuserform.ui @@ -1,207 +1,173 @@ -<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> -<class>SelectUserForm</class> -<widget class="QDialog"> - <property name="name"> - <cstring>SelectUserForm</cstring> - </property> +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0" stdsetdef="1"> + <author></author> + <comment></comment> + <exportmacro></exportmacro> + <class>SelectUserForm</class> + <widget class="QDialog" name="SelectUserForm"> <property name="geometry"> - <rect> - <x>0</x> - <y>0</y> - <width>584</width> - <height>228</height> - </rect> + <rect> + <x>0</x> + <y>0</y> + <width>584</width> + <height>228</height> + </rect> </property> - <property name="caption"> - <string>Twinkle - Select user</string> + <property name="windowTitle"> + <string>Twinkle - Select user</string> </property> - <grid> - <property name="name"> - <cstring>unnamed</cstring> - </property> - <widget class="QPushButton" row="1" column="4"> - <property name="name"> - <cstring>cancelPushButton</cstring> - </property> - <property name="text"> - <string>&Cancel</string> - </property> - <property name="accel"> - <string>Alt+C</string> - </property> + <layout class="QGridLayout"> + <item row="1" column="4"> + <widget class="QPushButton" name="cancelPushButton"> + <property name="text"> + <string>&Cancel</string> + </property> + <property name="shortcut"> + <string>Alt+C</string> + </property> </widget> - <widget class="QPushButton" row="1" column="0"> - <property name="name"> - <cstring>selectPushButton</cstring> - </property> - <property name="text"> - <string>&Select all</string> - </property> - <property name="accel"> - <string>Alt+S</string> - </property> + </item> + <item row="1" column="0"> + <widget class="QPushButton" name="selectPushButton"> + <property name="text"> + <string>&Select all</string> + </property> + <property name="shortcut"> + <string>Alt+S</string> + </property> </widget> - <spacer row="1" column="2"> - <property name="name"> - <cstring>spacer47</cstring> - </property> - <property name="orientation"> - <enum>Horizontal</enum> - </property> - <property name="sizeType"> - <enum>Expanding</enum> - </property> - <property name="sizeHint"> - <size> - <width>41</width> - <height>20</height> - </size> - </property> + </item> + <item row="1" column="2"> + <spacer name="spacer47"> + <property name="sizeHint"> + <size> + <width>41</width> + <height>20</height> + </size> + </property> + <property name="sizeType"> + <enum>QSizePolicy::Expanding</enum> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> </spacer> - <widget class="QPushButton" row="1" column="3"> - <property name="name"> - <cstring>okPushButton</cstring> - </property> - <property name="text"> - <string>&OK</string> - </property> - <property name="accel"> - <string>Alt+O</string> - </property> - <property name="default"> - <bool>true</bool> - </property> + </item> + <item row="1" column="3"> + <widget class="QPushButton" name="okPushButton"> + <property name="text"> + <string>&OK</string> + </property> + <property name="shortcut"> + <string>Alt+O</string> + </property> + <property name="default"> + <bool>true</bool> + </property> </widget> - <widget class="QPushButton" row="1" column="1"> - <property name="name"> - <cstring>clearPushButton</cstring> - </property> - <property name="text"> - <string>C&lear all</string> - </property> - <property name="accel"> - <string>Alt+L</string> - </property> + </item> + <item row="1" column="1"> + <widget class="QPushButton" name="clearPushButton"> + <property name="text"> + <string>C&lear all</string> + </property> + <property name="shortcut"> + <string>Alt+L</string> + </property> </widget> - <widget class="QLayoutWidget" row="0" column="0" rowspan="1" colspan="5"> - <property name="name"> - <cstring>layout100</cstring> - </property> - <vbox> - <property name="name"> - <cstring>unnamed</cstring> + </item> + <item row="0" column="0" rowspan="1" colspan="5"> + <layout class="QVBoxLayout"> + <item> + <widget class="QLabel" name="purposeTextLabel"> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>1</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string comment="No need to translate">purpose</string> + </property> + <property name="wordWrap"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="Q3ListView" name="userListView"> + <property name="resizePolicy"> + <enum>Q3ScrollView::Manual</enum> + </property> + <property name="selectionMode"> + <enum>Q3ListView::NoSelection</enum> + </property> + <property name="resizeMode"> + <enum>Q3ListView::LastColumn</enum> + </property> + <column> + <property name="text"> + <string>User</string> </property> - <widget class="QLabel"> - <property name="name"> - <cstring>purposeTextLabel</cstring> - </property> - <property name="sizePolicy"> - <sizepolicy> - <hsizetype>1</hsizetype> - <vsizetype>5</vsizetype> - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="text"> - <string>purpose</string> - <comment>No need to translate</comment> - </property> - </widget> - <widget class="QListView"> - <column> - <property name="text"> - <string>User</string> - </property> - <property name="clickable"> - <bool>true</bool> - </property> - <property name="resizable"> - <bool>true</bool> - </property> - </column> - <property name="name"> - <cstring>userListView</cstring> - </property> - <property name="resizePolicy"> - <enum>Manual</enum> - </property> - <property name="selectionMode"> - <enum>NoSelection</enum> - </property> - <property name="resizeMode"> - <enum>LastColumn</enum> - </property> - </widget> - </vbox> - </widget> - </grid> -</widget> -<connections> + <property name="clickable"> + <bool>true</bool> + </property> + <property name="resizable"> + <bool>true</bool> + </property> + </column> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <layoutdefault spacing="6" margin="11"/> + <pixmapfunction>qPixmapFromMimeSource</pixmapfunction> + <tabstops> + <tabstop>userListView</tabstop> + <tabstop>selectPushButton</tabstop> + <tabstop>clearPushButton</tabstop> + <tabstop>okPushButton</tabstop> + <tabstop>cancelPushButton</tabstop> + </tabstops> + <includes> + <include location="local">user.h</include> + <include location="local">phone.h</include> + <include location="local">gui.h</include> + </includes> + <connections> <connection> - <sender>okPushButton</sender> - <signal>clicked()</signal> - <receiver>SelectUserForm</receiver> - <slot>validate()</slot> + <sender>okPushButton</sender> + <signal>clicked()</signal> + <receiver>SelectUserForm</receiver> + <slot>validate()</slot> </connection> <connection> - <sender>cancelPushButton</sender> - <signal>clicked()</signal> - <receiver>SelectUserForm</receiver> - <slot>reject()</slot> + <sender>cancelPushButton</sender> + <signal>clicked()</signal> + <receiver>SelectUserForm</receiver> + <slot>reject()</slot> </connection> <connection> - <sender>selectPushButton</sender> - <signal>clicked()</signal> - <receiver>SelectUserForm</receiver> - <slot>selectAll()</slot> + <sender>selectPushButton</sender> + <signal>clicked()</signal> + <receiver>SelectUserForm</receiver> + <slot>selectAll()</slot> </connection> <connection> - <sender>clearPushButton</sender> - <signal>clicked()</signal> - <receiver>SelectUserForm</receiver> - <slot>clearAll()</slot> + <sender>clearPushButton</sender> + <signal>clicked()</signal> + <receiver>SelectUserForm</receiver> + <slot>clearAll()</slot> </connection> <connection> - <sender>userListView</sender> - <signal>doubleClicked(QListViewItem*)</signal> - <receiver>SelectUserForm</receiver> - <slot>toggle(QListViewItem*)</slot> + <sender>userListView</sender> + <signal>doubleClicked(Q3ListViewItem*)</signal> + <receiver>SelectUserForm</receiver> + <slot>toggle(Q3ListViewItem*)</slot> </connection> -</connections> -<tabstops> - <tabstop>userListView</tabstop> - <tabstop>selectPushButton</tabstop> - <tabstop>clearPushButton</tabstop> - <tabstop>okPushButton</tabstop> - <tabstop>cancelPushButton</tabstop> -</tabstops> -<includes> - <include location="local" impldecl="in declaration">user.h</include> - <include location="local" impldecl="in declaration">phone.h</include> - <include location="local" impldecl="in declaration">gui.h</include> - <include location="global" impldecl="in implementation">cassert</include> - <include location="local" impldecl="in implementation">qlistview.h</include> - <include location="local" impldecl="in implementation">selectuserform.ui.h</include> -</includes> -<forwards> - <forward>class t_phone;</forward> - <forward>extern t_phone *phone;</forward> -</forwards> -<signals> - <signal>selection(list<t_user *>)</signal> - <signal>not_selected(list<t_user*>)</signal> -</signals> -<slots> - <slot>show( t_select_purpose purpose )</slot> - <slot>validate()</slot> - <slot>selectAll()</slot> - <slot>clearAll()</slot> - <slot>toggle( QListViewItem * item )</slot> -</slots> -<functions> - <function access="private" specifier="non virtual">init()</function> -</functions> -<pixmapinproject/> -<layoutdefaults spacing="6" margin="11"/> -</UI> + </connections> +</ui> |