summaryrefslogtreecommitdiffstats
path: root/src/gui/messageform.ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/messageform.ui')
-rw-r--r--src/gui/messageform.ui494
1 files changed, 199 insertions, 295 deletions
diff --git a/src/gui/messageform.ui b/src/gui/messageform.ui
index f9a611f..bddcb03 100644
--- a/src/gui/messageform.ui
+++ b/src/gui/messageform.ui
@@ -1,326 +1,230 @@
-<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
-<class>MessageForm</class>
-<widget class="QMainWindow">
- <property name="name">
- <cstring>MessageForm</cstring>
- </property>
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0" stdsetdef="1">
+ <author></author>
+ <comment></comment>
+ <exportmacro></exportmacro>
+ <class>MessageForm</class>
+ <widget class="Q3MainWindow" name="MessageForm">
<property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>578</width>
- <height>356</height>
- </rect>
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>578</width>
+ <height>356</height>
+ </rect>
</property>
- <property name="caption">
- <string>Twinkle - Instant message</string>
+ <property name="windowTitle">
+ <string>Twinkle - Instant message</string>
</property>
- <vbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QLayoutWidget">
- <property name="name">
- <cstring>layout154</cstring>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
+ <widget class="QWidget">
+ <layout class="QVBoxLayout">
+ <item>
+ <layout class="QGridLayout">
+ <item row="1" column="0">
+ <widget class="QLabel" name="toTextLabel">
+ <property name="text">
+ <string>&amp;To:</string>
</property>
- <widget class="QLabel" row="1" column="0">
- <property name="name">
- <cstring>toTextLabel</cstring>
- </property>
- <property name="text">
- <string>&amp;To:</string>
- </property>
- <property name="buddy" stdset="0">
- <cstring>toLineEdit</cstring>
- </property>
- </widget>
- <widget class="QComboBox" row="0" column="1">
- <property name="name">
- <cstring>fromComboBox</cstring>
- </property>
- <property name="whatsThis" stdset="0">
- <string>The user that will send the message.</string>
- </property>
- </widget>
- <widget class="QLayoutWidget" row="1" column="1">
- <property name="name">
- <cstring>layout152</cstring>
- </property>
- <hbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QLineEdit">
- <property name="name">
- <cstring>toLineEdit</cstring>
- </property>
- <property name="whatsThis" stdset="0">
- <string>The address of the user that you want to send a message. This can be a full SIP address like &lt;b&gt;sip:example@example.com&lt;/b&gt; or just the user part or telephone number of the full address. When you do not specify a full address, then Twinkle will complete the address by using the domain value of your user profile.</string>
- </property>
- </widget>
- <widget class="QToolButton">
- <property name="name">
- <cstring>addressToolButton</cstring>
- </property>
- <property name="focusPolicy">
- <enum>TabFocus</enum>
- </property>
- <property name="text">
- <string></string>
- </property>
- <property name="accel">
- <string>F10</string>
- </property>
- <property name="iconSet">
- <iconset>kontact_contacts.png</iconset>
- </property>
- <property name="toolTip" stdset="0">
- <string>Address book</string>
- </property>
- <property name="whatsThis" stdset="0">
- <string>Select an address from the address book.</string>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>profileTextLabel</cstring>
- </property>
- <property name="text">
- <string>&amp;User profile:</string>
- </property>
- <property name="buddy" stdset="0">
- <cstring>fromComboBox</cstring>
- </property>
- </widget>
- </grid>
- </widget>
- <widget class="QGroupBox">
- <property name="name">
- <cstring>conversationGroupBox</cstring>
- </property>
- <property name="title">
- <string>Conversation</string>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
+ <property name="buddy" stdset="0">
+ <cstring>toLineEdit</cstring>
</property>
- <widget class="TextBrowserNoAutoLink" row="0" column="0">
- <property name="name">
- <cstring>conversationBrowser</cstring>
- </property>
- </widget>
- </grid>
- </widget>
- <widget class="QLayoutWidget">
- <property name="name">
- <cstring>layout158</cstring>
- </property>
- <hbox>
- <property name="name">
- <cstring>unnamed</cstring>
+ <property name="wordWrap">
+ <bool>false</bool>
</property>
- <widget class="QLineEdit">
- <property name="name">
- <cstring>msgLineEdit</cstring>
- </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QComboBox" name="fromComboBox">
+ <property name="whatsThis" stdset="0">
+ <string>The user that will send the message.</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <layout class="QHBoxLayout">
+ <item>
+ <widget class="QLineEdit" name="toLineEdit">
<property name="whatsThis" stdset="0">
- <string>Type your message here and then press "send" to send it.</string>
+ <string>The address of the user that you want to send a message. This can be a full SIP address like &lt;b&gt;sip:example@example.com&lt;/b&gt; or just the user part or telephone number of the full address. When you do not specify a full address, then Twinkle will complete the address by using the domain value of your user profile.</string>
</property>
- </widget>
- <widget class="QPushButton">
- <property name="name">
- <cstring>sendPushButton</cstring>
+ </widget>
+ </item>
+ <item>
+ <widget class="QToolButton" name="addressToolButton">
+ <property name="focusPolicy">
+ <enum>Qt::TabFocus</enum>
</property>
<property name="text">
- <string>&amp;Send</string>
+ <string/>
</property>
- <property name="accel">
- <string>Alt+S</string>
+ <property name="shortcut">
+ <string>F10</string>
</property>
- <property name="autoDefault">
- <bool>false</bool>
+ <property name="icon">
+ <iconset>kontact_contacts.png</iconset>
</property>
- <property name="default">
- <bool>true</bool>
+ <property name="toolTip" stdset="0">
+ <string>Address book</string>
</property>
<property name="whatsThis" stdset="0">
- <string>Send the message.</string>
- </property>
- </widget>
- </hbox>
- </widget>
- </vbox>
-</widget>
-<toolbars>
- <toolbar dock="2">
- <property name="name">
- <cstring>Toolbar</cstring>
- </property>
- <property name="horizontallyStretchable">
- <bool>false</bool>
- </property>
- <property name="label">
- <string>Instant message toolbar</string>
- </property>
- <action name="sendFileAction"/>
- </toolbar>
-</toolbars>
-<customwidgets>
+ <string>Select an address from the address book.</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="0" column="0">
+ <widget class="QLabel" name="profileTextLabel">
+ <property name="text">
+ <string>&amp;User profile:</string>
+ </property>
+ <property name="buddy" stdset="0">
+ <cstring>fromComboBox</cstring>
+ </property>
+ <property name="wordWrap">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="Q3GroupBox" name="conversationGroupBox">
+ <property name="title">
+ <string>Conversation</string>
+ </property>
+ <layout class="QGridLayout">
+ <item row="0" column="0">
+ <widget class="TextBrowserNoAutoLink" name="conversationBrowser"/>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout">
+ <item>
+ <widget class="QLineEdit" name="msgLineEdit">
+ <property name="whatsThis" stdset="0">
+ <string>Type your message here and then press &quot;send&quot; to send it.</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="sendPushButton">
+ <property name="text">
+ <string>&amp;Send</string>
+ </property>
+ <property name="shortcut">
+ <string>Alt+S</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ <property name="whatsThis" stdset="0">
+ <string>Send the message.</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ <widget class="Q3ToolBar" name="Toolbar">
+ <property name="horizontallyStretchable">
+ <bool>false</bool>
+ </property>
+ <property name="label">
+ <string>Instant message toolbar</string>
+ </property>
+ <addaction name="sendFileAction"/>
+ </widget>
+ <action name="sendFileAction">
+ <property name="name">
+ <cstring>sendFileAction</cstring>
+ </property>
+ <property name="icon">
+ <iconset>attach.png</iconset>
+ </property>
+ <property name="iconText">
+ <string>Send file...</string>
+ </property>
+ <property name="toolTip">
+ <string>Send file</string>
+ </property>
+ </action>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <customwidgets>
<customwidget>
- <class>TextBrowserNoAutoLink</class>
- <header location="global">textbrowsernoautolink.h</header>
- <sizehint>
- <width>-1</width>
- <height>-1</height>
- </sizehint>
- <container>0</container>
- <sizepolicy>
- <hordata>7</hordata>
- <verdata>7</verdata>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- <pixmap>image0</pixmap>
- <signal>linkClicked( const QString &amp; link )</signal>
+ <class>TextBrowserNoAutoLink</class>
+ <extends>QWidget</extends>
+ <header location="global">textbrowsernoautolink.h</header>
+ <sizehint>
+ <width>-1</width>
+ <height>-1</height>
+ </sizehint>
+ <container>0</container>
+ <sizepolicy>
+ <hordata>7</hordata>
+ <verdata>7</verdata>
+ </sizepolicy>
+ <pixmap>image0</pixmap>
</customwidget>
-</customwidgets>
-<actions>
- <action>
- <property name="name">
- <cstring>sendFileAction</cstring>
- </property>
- <property name="iconSet">
- <iconset>attach.png</iconset>
- </property>
- <property name="text">
- <string>Send file...</string>
- </property>
- <property name="toolTip">
- <string>Send file</string>
- </property>
- </action>
-</actions>
-<images>
+ </customwidgets>
+ <images>
<image name="image0">
- <data format="PNG" length="1002">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000003b149444154388dad945f4c5b551cc73fe7dc4b7b4bcba0762d45c43114323599ee6192609c51d883892ce083f1718b3ebb185f8dc91e972cf39d2d2a2f1af664b6f1e0fe3863a0718969700eb0c52142da0242a1bd6d696f7bcff101585203ceb8fd9ece39f99dcff9fe7edf939f88c562ec465f5f9fe609442c161362173c3e3eae7b7a7ac8e7f36432196cdbfe4f907c3e4f2291201e8fe338cec3737357e9e8e828aded1e229d650e1f2d51754b082110124c13a4dc5ea341eb9dc284c0558a853f3ce8cb0677ef500fde7d39d2596679e326597b8e9abb85d7a770ab16ab6983ec5a05b487a70e36f0f4e10afe408d6a558310980108478dba4a1e8233990c5d474b64ed39aa3a8fe5f3317fbf81dbd70bccfeb205947632fd74f6589c1c6ea2f70d03a58ba0c1f2c9bdc1b66de3b8256a6e11cbe7e3ee1d181b590124fe2693aeee08d223c82c3a2c24b7b874bec8f26288774f7bd054504aef0dde6e99c0eb83f9fb266323cb80a27fb0958141836044605a2ee5523393371cc646fee2da37195aa35d0c0c5b4859ac03d7e91712dcaac5adab3650a3ff9d08ef7dd8404bb48869e5d958b5b87dadc4c9a1464e9f0d0326df7ebd86bd2e310cb1bf62d384d59441f2d70a070e1c60e09489929b988681bdd9cc97170bcc4c65595f71f8e0e3301337fc24a7732467831875a47f289652b0be5e4151e6d07316c1b0c0340d8ab92023e76d66a6b2840e36d2fb7a13fee632475e6edc367ea98a90fb98b7dd6310ca0328a44761582e1bab41befabcc0ec940d28bc5e93b68e064cab84e1d9beaeb48934eac1f53b01c1b000fca496aa54b61a99fcde61662a4b4b4b23d1680be9d426173e4df3602a48ea411989a4fd590f52a8fd156b05ed9d350e3defe3cfdf4b4c7ce770ea7d3fb9f520afbe1620daeee5c26735d20b9b9cfb6811a754a439e4e5c5639a4caa1e5caf586bfc0197b78702005cb9b4cae4cd3267ce8638fe964bd72b393e39d74928d242617303a756a37f284447770dcdbffc6384a05a85de1306e9a52057c7527c7131c3c42d3f475eb2303c82d4fc3276d6811db37efeb148723082d9b08f79f97c1e5729109a9a28307cc622d2d6cdf52b2b24efe548dedb00142009862cfa879ee1a71f6cec928353511472fbf4389148b0b0e0c108081412458dfe21c9f11351e67e7358595468246d1d1e5e38a6e9e851bc39d84ab502a669331dafec0d8ec7e3e8cb06e1a881d727d1ae40180a434a8c9db129a54126ad48a7358c2b4c5352c8c374bcccdab2bb37d8719cba79fab8211f9df218e0582c261e95f8bfc04f1a1e8bc5c4dfe0a190172af6a9690000000049454e44ae426082</data>
+ <data format="PNG" length="1002">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b000003b149444154388dad945f4c5b551cc73fe7dc4b7b4bcba0762d45c43114323599ee6192609c51d883892ce083f1718b3ebb185f8dc91e972cf39d2d2a2f1af664b6f1e0fe3863a0718969700eb0c52142da0242a1bd6d696f7bcff101585203ceb8fd9ece39f99dcff9fe7edf939f88c562ec465f5f9fe609442c161362173c3e3eae7b7a7ac8e7f36432196cdbfe4f907c3e4f2291201e8fe338cec3737357e9e8e828aded1e229d650e1f2d51754b082110124c13a4dc5ea341eb9dc284c0558a853f3ce8cb0677ef500fde7d39d2596679e326597b8e9abb85d7a770ab16ab6983ec5a05b487a70e36f0f4e10afe408d6a558310980108478dba4a1e8233990c5d474b64ed39aa3a8fe5f3317fbf81dbd70bccfeb205947632fd74f6589c1c6ea2f70d03a58ba0c1f2c9bdc1b66de3b8256a6e11cbe7e3ee1d181b590124fe2693aeee08d223c82c3a2c24b7b874bec8f26288774f7bd054504aef0dde6e99c0eb83f9fb266323cb80a27fb0958141836044605a2ee5523393371cc646fee2da37195aa35d0c0c5b4859ac03d7e91712dcaac5adab3650a3ff9d08ef7dd8404bb48869e5d958b5b87dadc4c9a1464e9f0d0326df7ebd86bd2e310cb1bf62d384d59441f2d70a070e1c60e09489929b988681bdd9cc97170bcc4c65595f71f8e0e3301337fc24a7732467831875a47f289652b0be5e4151e6d07316c1b0c0340d8ab92023e76d66a6b2840e36d2fb7a13fee632475e6edc367ea98a90fb98b7dd6310ca0328a44761582e1bab41befabcc0ec940d28bc5e93b68e064cab84e1d9beaeb48934eac1f53b01c1b000fca496aa54b61a99fcde61662a4b4b4b23d1680be9d426173e4df3602a48ea411989a4fd590f52a8fd156b05ed9d350e3defe3cfdf4b4c7ce770ea7d3fb9f520afbe1620daeee5c26735d20b9b9cfb6811a754a439e4e5c5639a4caa1e5caf586bfc0197b78702005cb9b4cae4cd3267ce8638fe964bd72b393e39d74928d242617303a756a37f284447770dcdbffc6384a05a85de1306e9a52057c7527c7131c3c42d3f475eb2303c82d4fc3276d6811db37efeb148723082d9b08f79f97c1e5729109a9a28307cc622d2d6cdf52b2b24efe548dedb00142009862cfa879ee1a71f6cec928353511472fbf4389148b0b0e0c108081412458dfe21c9f11351e67e7358595468246d1d1e5e38a6e9e851bc39d84ab502a669331dafec0d8ec7e3e8cb06e1a881d727d1ae40180a434a8c9db129a54126ad48a7358c2b4c5352c8c374bcccdab2bb37d8719cba79fab8211f9df218e0582c261e95f8bfc04f1a1e8bc5c4dfe0a190172af6a9690000000049454e44ae426082</data>
</image>
-</images>
-<connections>
+ </images>
+ <includes>
+ <include location="local">ui_getaddressform.h</include>
+ <include location="local">qstring.h</include>
+ <include location="local">user.h</include>
+ <include location="local">im/msg_session.h</include>
+ <include location="local">phone.h</include>
+ <include location="local">q3popupmenu.h</include>
+ <include location="local">qlabel.h</include>
+ <include location="local">textbrowsernoautolink.h</include>
+ </includes>
+ <connections>
<connection>
- <sender>sendPushButton</sender>
- <signal>clicked()</signal>
- <receiver>MessageForm</receiver>
- <slot>sendMessage()</slot>
+ <sender>sendPushButton</sender>
+ <signal>clicked()</signal>
+ <receiver>MessageForm</receiver>
+ <slot>sendMessage()</slot>
</connection>
<connection>
- <sender>addressToolButton</sender>
- <signal>clicked()</signal>
- <receiver>MessageForm</receiver>
- <slot>showAddressBook()</slot>
+ <sender>addressToolButton</sender>
+ <signal>clicked()</signal>
+ <receiver>MessageForm</receiver>
+ <slot>showAddressBook()</slot>
</connection>
<connection>
- <sender>conversationBrowser</sender>
- <signal>linkClicked(const QString&amp;)</signal>
- <receiver>MessageForm</receiver>
- <slot>showAttachmentPopupMenu(const QString&amp;)</slot>
+ <sender>conversationBrowser</sender>
+ <signal>linkClicked(QString)</signal>
+ <receiver>MessageForm</receiver>
+ <slot>showAttachmentPopupMenu(QString)</slot>
</connection>
<connection>
- <sender>sendFileAction</sender>
- <signal>activated()</signal>
- <receiver>MessageForm</receiver>
- <slot>chooseFileToSend()</slot>
+ <sender>sendFileAction</sender>
+ <signal>activated()</signal>
+ <receiver>MessageForm</receiver>
+ <slot>chooseFileToSend()</slot>
</connection>
<connection>
- <sender>toLineEdit</sender>
- <signal>textChanged(const QString&amp;)</signal>
- <receiver>MessageForm</receiver>
- <slot>toAddressChanged(const QString&amp;)</slot>
+ <sender>toLineEdit</sender>
+ <signal>textChanged(QString)</signal>
+ <receiver>MessageForm</receiver>
+ <slot>toAddressChanged(QString)</slot>
</connection>
<connection>
- <sender>msgLineEdit</sender>
- <signal>textChanged(const QString&amp;)</signal>
- <receiver>MessageForm</receiver>
- <slot>showMessageSize()</slot>
+ <sender>msgLineEdit</sender>
+ <signal>textChanged(QString)</signal>
+ <receiver>MessageForm</receiver>
+ <slot>showMessageSize()</slot>
</connection>
-</connections>
-<includes>
- <include location="local" impldecl="in declaration">getaddressform.h</include>
- <include location="local" impldecl="in declaration">qstring.h</include>
- <include location="local" impldecl="in declaration">user.h</include>
- <include location="local" impldecl="in declaration">im/msg_session.h</include>
- <include location="local" impldecl="in declaration">phone.h</include>
- <include location="local" impldecl="in declaration">qpopupmenu.h</include>
- <include location="local" impldecl="in declaration">qlabel.h</include>
- <include location="local" impldecl="in implementation">gui.h</include>
- <include location="local" impldecl="in implementation">sockets/url.h</include>
- <include location="local" impldecl="in implementation">qstylesheet.h</include>
- <include location="local" impldecl="in implementation">audits/memman.h</include>
- <include location="local" impldecl="in implementation">util.h</include>
- <include location="local" impldecl="in implementation">qpixmap.h</include>
- <include location="local" impldecl="in implementation">qcursor.h</include>
- <include location="local" impldecl="in implementation">qfiledialog.h</include>
- <include location="local" impldecl="in implementation">utils/file_utils.h</include>
- <include location="local" impldecl="in implementation">qfile.h</include>
- <include location="local" impldecl="in implementation">sendfileform.h</include>
- <include location="local" impldecl="in implementation">qstatusbar.h</include>
- <include location="local" impldecl="in implementation">qframe.h</include>
- <include location="local" impldecl="in implementation">messageform.ui.h</include>
-</includes>
-<forwards>
- <forward>class t_phone;</forward>
- <forward>extern t_phone *phone;</forward>
-</forwards>
-<variables>
- <variable access="private">QDialog *_saveAsDialog;</variable>
- <variable access="private">map&lt;string, string&gt; _filenameMap;</variable>
- <variable>im::t_msg_session *_msgSession;</variable>
- <variable access="private">bool _remotePartyComplete;</variable>
- <variable access="private">GetAddressForm *_getAddressForm;</variable>
- <variable access="private">QPopupMenu *attachmentPopupMenu;</variable>
- <variable access="private">QString clickedAttachment;</variable>
- <variable access="private">void *_serviceMap;</variable>
- <variable access="private">QLabel *_isComposingLabel;</variable>
- <variable access="private">QLabel *_msgSizeLabel;</variable>
-</variables>
-<slots>
- <slot>closeEvent( QCloseEvent * e )</slot>
- <slot>show()</slot>
- <slot>selectUserConfig( t_user * user_config )</slot>
- <slot>showAddressBook()</slot>
- <slot>selectedAddress( const QString &amp; address )</slot>
- <slot>sendMessage()</slot>
- <slot>sendFile( const QString &amp; filename, const QString &amp; subject )</slot>
- <slot>addMessage( const im::t_msg &amp; msg, const QString &amp; name )</slot>
- <slot>displayError( const QString &amp; errorMsg )</slot>
- <slot>displayDeliveryNotification( const QString &amp; notification )</slot>
- <slot>setRemotePartyCaption( void )</slot>
- <slot>showAttachmentPopupMenu( const QString &amp; attachment )</slot>
- <slot>attachmentPopupActivated( int id )</slot>
- <slot>saveAttachment()</slot>
- <slot>chooseFileToSend()</slot>
- <slot>setComposingIndication( const QString &amp; name )</slot>
- <slot>clearComposingIndication()</slot>
- <slot>setLocalComposingIndicationActive()</slot>
- <slot>keyPressEvent( QKeyEvent * e )</slot>
- <slot>toAddressChanged( const QString &amp; address )</slot>
- <slot>showMessageSize()</slot>
-</slots>
-<functions>
- <function access="private" specifier="non virtual">init()</function>
- <function access="private" specifier="non virtual">destroy()</function>
- <function returnType="bool">updateMessageSession()</function>
- <function returnType="bool">prepareSendMessage()</function>
-</functions>
-<pixmapinproject/>
-<layoutdefaults spacing="6" margin="11"/>
-<includehints>
- <includehint>textbrowsernoautolink.h</includehint>
-</includehints>
-</UI>
+ </connections>
+</ui>