diff options
Diffstat (limited to 'kopete/protocols/yahoo/ui')
-rw-r--r-- | kopete/protocols/yahoo/ui/Makefile.am | 14 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/empty.cpp | 1 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahooadd.ui | 97 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahooeditaccountbase.ui | 467 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahoogeneralinfowidget.ui | 647 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahooinvitelistbase.ui | 337 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp | 165 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahooinvitelistimpl.h | 59 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahoootherinfowidget.ui | 119 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahoostealthsetting.ui | 96 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp | 260 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahoouserinfodialog.h | 56 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahooverifyaccountbase.ui | 159 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp | 113 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahoowebcamdialog.h | 56 | ||||
-rw-r--r-- | kopete/protocols/yahoo/ui/yahooworkinfowidget.ui | 233 |
16 files changed, 2879 insertions, 0 deletions
diff --git a/kopete/protocols/yahoo/ui/Makefile.am b/kopete/protocols/yahoo/ui/Makefile.am new file mode 100644 index 00000000..8d6a673e --- /dev/null +++ b/kopete/protocols/yahoo/ui/Makefile.am @@ -0,0 +1,14 @@ +METASOURCES = AUTO + +noinst_LTLIBRARIES = libkopeteyahooui.la +AM_CPPFLAGS = $(KOPETE_INCLUDES) \ + -I$(srcdir)/.. \ + $(all_includes) + + +libkopeteyahooui_la_SOURCES = yahooadd.ui yahooeditaccountbase.ui \ + yahooinvitelistbase.ui yahooinvitelistimpl.cpp empty.cpp yahooverifyaccountbase.ui \ + yahoostealthsetting.ui yahoowebcamdialog.cpp yahoogeneralinfowidget.ui yahoouserinfodialog.cpp \ + yahooworkinfowidget.ui yahoootherinfowidget.ui +EXTRA_DIST = dlgrename.ui +noinst_HEADERS = yahoouserinfodialog.h diff --git a/kopete/protocols/yahoo/ui/empty.cpp b/kopete/protocols/yahoo/ui/empty.cpp new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/kopete/protocols/yahoo/ui/empty.cpp @@ -0,0 +1 @@ + diff --git a/kopete/protocols/yahoo/ui/yahooadd.ui b/kopete/protocols/yahoo/ui/yahooadd.ui new file mode 100644 index 00000000..ff3ef8f6 --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahooadd.ui @@ -0,0 +1,97 @@ +<!DOCTYPE UI><UI version="3.1" stdsetdef="1"> +<class>YahooAddContactBase</class> +<widget class="QWidget"> + <property name="name"> + <cstring>Form1</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>396</width> + <height>347</height> + </rect> + </property> + <property name="caption"> + <string>Add Yahoo Contact</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="spacing"> + <number>6</number> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout53</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>&Yahoo username:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>contactID</cstring> + </property> + <property name="toolTip" stdset="0"> + <string>The account name of the Yahoo account you would like to add.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>The account name of the Yahoo account you would like to add. This should be in the form of an alphanumeric string (no spaces).</string> + </property> + </widget> + <widget class="QLineEdit"> + <property name="name"> + <cstring>contactID</cstring> + </property> + <property name="toolTip" stdset="0"> + <string>The account name of the Yahoo account you would like to add.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>The account name of the Yahoo account you would like to add. This should be in the form of an alphanumeric string (no spaces).</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel3_2</cstring> + </property> + <property name="text"> + <string><i>(for example: joe8752)</i></string> + </property> + <property name="alignment"> + <set>AlignVCenter|AlignRight</set> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>80</height> + </size> + </property> + </spacer> + </vbox> +</widget> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/kopete/protocols/yahoo/ui/yahooeditaccountbase.ui b/kopete/protocols/yahoo/ui/yahooeditaccountbase.ui new file mode 100644 index 00000000..4b98f8be --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahooeditaccountbase.ui @@ -0,0 +1,467 @@ +<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>YahooEditAccountBase</class> +<widget class="QWidget"> + <property name="name"> + <cstring>YahooEditAccountBase</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>462</width> + <height>344</height> + </rect> + </property> + <property name="caption"> + <string>Account Preferences - Yahoo</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="spacing"> + <number>0</number> + </property> + <widget class="QTabWidget"> + <property name="name"> + <cstring>tabWidget11</cstring> + </property> + <property name="minimumSize"> + <size> + <width>460</width> + <height>0</height> + </size> + </property> + <widget class="QWidget"> + <property name="name"> + <cstring>tab</cstring> + </property> + <attribute name="title"> + <string>&Basic Setup</string> + </attribute> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QGroupBox"> + <property name="name"> + <cstring>mAccountInfo</cstring> + </property> + <property name="title"> + <string>Account Information</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout81</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>label1</cstring> + </property> + <property name="text"> + <string>&Yahoo username:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>mScreenName</cstring> + </property> + <property name="toolTip" stdset="0"> + <string>The account name of your Yahoo account.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>The account name of your Yahoo account. This should be in the form of an alphanumeric string (no spaces).</string> + </property> + </widget> + <widget class="QLineEdit"> + <property name="name"> + <cstring>mScreenName</cstring> + </property> + <property name="toolTip" stdset="0"> + <string>The account name of your Yahoo account.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>The account name of your Yahoo account. This should be in the form of an alphanumeric string (no spaces).</string> + </property> + </widget> + </hbox> + </widget> + <widget class="QCheckBox"> + <property name="name"> + <cstring>mAutoConnect</cstring> + </property> + <property name="text"> + <string>E&xclude from connect all</string> + </property> + <property name="whatsThis" stdset="0"> + <string>Check to disable automatic connection. If checked, you may connect to this account manually using the icon in the bottom of the main Kopete window</string> + </property> + </widget> + <widget class="QCheckBox"> + <property name="name"> + <cstring>mGlobalIdentity</cstring> + </property> + <property name="text"> + <string>Exclude from &Global Identity</string> + </property> + </widget> + </vbox> + </widget> + <widget class="QGroupBox"> + <property name="name"> + <cstring>groupBox5</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>3</hsizetype> + <vsizetype>1</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="title"> + <string>Registration</string> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel6</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>3</hsizetype> + <vsizetype>1</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + <property name="text"> + <string>To connect to the Yahoo network, you will need a Yahoo account.<br><br>If you do not currently have a Yahoo account, please click the button to create one.</string> + </property> + <property name="alignment"> + <set>WordBreak|AlignVCenter</set> + </property> + </widget> + <widget class="QPushButton"> + <property name="name"> + <cstring>buttonRegister</cstring> + </property> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="text"> + <string>Register &New Account</string> + </property> + <property name="toolTip" stdset="0"> + <string>Register a new account on this network.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>Register a new account on this network.</string> + </property> + </widget> + </hbox> + </widget> + <spacer> + <property name="name"> + <cstring>spacer6</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>81</height> + </size> + </property> + </spacer> + </vbox> + </widget> + <widget class="QWidget"> + <property name="name"> + <cstring>TabPage</cstring> + </property> + <attribute name="title"> + <string>Accoun&t Preferences</string> + </attribute> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <spacer row="2" column="0"> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>110</height> + </size> + </property> + </spacer> + <widget class="QGroupBox" row="0" column="0"> + <property name="name"> + <cstring>groupBox73</cstring> + </property> + <property name="title"> + <string>Connection Preferences</string> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QCheckBox"> + <property name="name"> + <cstring>optionOverrideServer</cstring> + </property> + <property name="text"> + <string>O&verride default server information</string> + </property> + <property name="checked"> + <bool>false</bool> + </property> + </widget> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout58</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>lblServer</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Ser&ver:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>edtServerAddress</cstring> + </property> + <property name="toolTip" stdset="0"> + <string>The IP address or hostmask of the Yahoo server you wish to connect to.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>The IP address or hostmask of the Yahoo server you wish to connect to. Normally you will want the default (scs.msg.yahoo.com).</string> + </property> + </widget> + <widget class="QLineEdit"> + <property name="name"> + <cstring>editServerAddress</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>scs.msg.yahoo.com</string> + </property> + <property name="toolTip" stdset="0"> + <string>The IP address or hostmask of the Yahoo server you wish to connect to.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>The IP address or hostmask of the Yahoo server you wish to connect to. Normally you will want the default (scs.msg.yahoo.com).</string> + </property> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>lblPort</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>P&ort:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>sbxServerPort</cstring> + </property> + <property name="toolTip" stdset="0"> + <string>The port on the Yahoo server that you would like to connect to.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>The port on the Yahoo server that you would like to connect to. Normally this is 5050, but Yahoo also allows port 80 in case you are behind a firewall.</string> + </property> + </widget> + <widget class="QSpinBox"> + <property name="name"> + <cstring>sbxServerPort</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="maxValue"> + <number>65534</number> + </property> + <property name="minValue"> + <number>1</number> + </property> + <property name="value"> + <number>5050</number> + </property> + <property name="toolTip" stdset="0"> + <string>The port on the Yahoo server that you would like to connect to.</string> + </property> + <property name="whatsThis" stdset="0"> + <string>The port on the Yahoo server that you would like to connect to. Normally this is 5050, but Yahoo also allows port 80 in case you are behind a firewall.</string> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <widget class="QGroupBox" row="1" column="0"> + <property name="name"> + <cstring>groupBox4</cstring> + </property> + <property name="title"> + <string>Buddy Icon</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLineEdit" row="1" column="0"> + <property name="name"> + <cstring>editPictureUrl</cstring> + </property> + </widget> + <widget class="QPushButton" row="1" column="1"> + <property name="name"> + <cstring>buttonSelectPicture</cstring> + </property> + <property name="text"> + <string>Select Picture...</string> + </property> + <property name="accel"> + <string></string> + </property> + </widget> + <widget class="QLabel" row="0" column="2" rowspan="2" colspan="1"> + <property name="name"> + <cstring>m_Picture</cstring> + </property> + <property name="minimumSize"> + <size> + <width>96</width> + <height>96</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>96</width> + <height>96</height> + </size> + </property> + <property name="frameShape"> + <enum>GroupBoxPanel</enum> + </property> + <property name="margin"> + <number>0</number> + </property> + <property name="text"> + <string></string> + </property> + <property name="scaledContents"> + <bool>true</bool> + </property> + </widget> + <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>optionSendBuddyIcon</cstring> + </property> + <property name="text"> + <string>Se&nd buddy icon to other users</string> + </property> + </widget> + </grid> + </widget> + </grid> + </widget> + </widget> + <widget class="QLabel"> + <property name="name"> + <cstring>labelStatusMessage</cstring> + </property> + <property name="text"> + <string></string> + </property> + <property name="alignment"> + <set>AlignCenter</set> + </property> + </widget> + </vbox> +</widget> +<connections> + <connection> + <sender>optionOverrideServer</sender> + <signal>toggled(bool)</signal> + <receiver>lblPort</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>optionOverrideServer</sender> + <signal>toggled(bool)</signal> + <receiver>lblServer</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>optionOverrideServer</sender> + <signal>toggled(bool)</signal> + <receiver>editServerAddress</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>optionOverrideServer</sender> + <signal>toggled(bool)</signal> + <receiver>sbxServerPort</receiver> + <slot>setEnabled(bool)</slot> + </connection> + <connection> + <sender>optionSendBuddyIcon</sender> + <signal>toggled(bool)</signal> + <receiver>editPictureUrl</receiver> + <slot>setEnabled(bool)</slot> + </connection> +</connections> +<tabstops> + <tabstop>tabWidget11</tabstop> + <tabstop>mScreenName</tabstop> + <tabstop>mAutoConnect</tabstop> + <tabstop>buttonRegister</tabstop> +</tabstops> +<slots> + <slot access="private" specifier="nicht virtual">slotSelectPicture()</slot> +</slots> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/kopete/protocols/yahoo/ui/yahoogeneralinfowidget.ui b/kopete/protocols/yahoo/ui/yahoogeneralinfowidget.ui new file mode 100644 index 00000000..b74dc94b --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahoogeneralinfowidget.ui @@ -0,0 +1,647 @@ +<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>YahooGeneralInfoWidget</class> +<widget class="QWidget"> + <property name="name"> + <cstring>YahooGeneralInfoWidget</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>596</width> + <height>506</height> + </rect> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QGroupBox" row="0" column="0"> + <property name="name"> + <cstring>groupBox4</cstring> + </property> + <property name="title"> + <string>Personal Information</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel" row="0" column="0"> + <property name="name"> + <cstring>fullNameLabel_2</cstring> + </property> + <property name="text"> + <string>First name:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>fullNameEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="1" column="0"> + <property name="name"> + <cstring>fullNameLabel_2_2</cstring> + </property> + <property name="text"> + <string>Second name:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>fullNameEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="2" column="0"> + <property name="name"> + <cstring>LastNameLabel</cstring> + </property> + <property name="text"> + <string>Last name:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>fullNameEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="2" column="1"> + <property name="name"> + <cstring>lastNameEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="3" column="1"> + <property name="name"> + <cstring>nickNameEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>2</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="3" column="0"> + <property name="name"> + <cstring>nickNameLabel</cstring> + </property> + <property name="text"> + <string>&Nickname:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>nickNameEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="0" column="1"> + <property name="name"> + <cstring>firstNameEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="1" column="1"> + <property name="name"> + <cstring>secondNameEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="0" column="2"> + <property name="name"> + <cstring>yahooIdLabel</cstring> + </property> + <property name="text"> + <string>Yahoo ID:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>uinEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="1" column="2"> + <property name="name"> + <cstring>yahooIdLabel_2</cstring> + </property> + <property name="text"> + <string>Title:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>uinEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="3" column="2"> + <property name="name"> + <cstring>birthdayLabel_2</cstring> + </property> + <property name="text"> + <string>Anniversary:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>birthday</cstring> + </property> + </widget> + <widget class="QLineEdit" row="0" column="3"> + <property name="name"> + <cstring>yahooIdEdit</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>true</bool> + </property> + </widget> + <widget class="QLineEdit" row="1" column="3"> + <property name="name"> + <cstring>titleEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="2" column="3"> + <property name="name"> + <cstring>birthdayEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="3" column="3"> + <property name="name"> + <cstring>anniversaryEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="2" column="2"> + <property name="name"> + <cstring>birthdayLabel</cstring> + </property> + <property name="text"> + <string>Birthday:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>birthday</cstring> + </property> + </widget> + </grid> + </widget> + <spacer row="3" column="0"> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>21</width> + <height>30</height> + </size> + </property> + </spacer> + <widget class="QGroupBox" row="2" column="0"> + <property name="name"> + <cstring>groupBox5</cstring> + </property> + <property name="title"> + <string>Contact Information</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel" row="1" column="2"> + <property name="name"> + <cstring>textLabel6_2_2</cstring> + </property> + <property name="text"> + <string>Pager:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>cellEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="6" column="0"> + <property name="name"> + <cstring>textLabel10_2</cstring> + </property> + <property name="text"> + <string>&Homepage:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>homepageEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="5" column="1" rowspan="1" colspan="3"> + <property name="name"> + <cstring>emailEdit_3</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>3</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="3" column="0"> + <property name="name"> + <cstring>textLabel9</cstring> + </property> + <property name="text"> + <string>&Email:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>emailEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="5" column="0"> + <property name="name"> + <cstring>textLabel9_3</cstring> + </property> + <property name="text"> + <string>Email &3:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>emailEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="4" column="0"> + <property name="name"> + <cstring>textLabel9_2</cstring> + </property> + <property name="text"> + <string>Email &2:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>emailEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="4" column="1" rowspan="1" colspan="3"> + <property name="name"> + <cstring>emailEdit_2</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>3</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="6" column="1" rowspan="1" colspan="3"> + <property name="name"> + <cstring>homepageEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>3</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="3" column="1" rowspan="1" colspan="3"> + <property name="name"> + <cstring>emailEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>3</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="1" column="1"> + <property name="name"> + <cstring>faxEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="1" column="0"> + <property name="name"> + <cstring>textLabel7_2</cstring> + </property> + <property name="text"> + <string>Fa&x:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>faxEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="2" column="0"> + <property name="name"> + <cstring>textLabel6_2_2_2</cstring> + </property> + <property name="text"> + <string>Additional:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>cellEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="1" column="3"> + <property name="name"> + <cstring>pagerEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="2" column="1"> + <property name="name"> + <cstring>additionalEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="0" column="0"> + <property name="name"> + <cstring>textLabel5</cstring> + </property> + <property name="text"> + <string>&Phone:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>phoneEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="0" column="3"> + <property name="name"> + <cstring>cellEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="0" column="2"> + <property name="name"> + <cstring>textLabel6_2</cstring> + </property> + <property name="text"> + <string>Ce&ll:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>cellEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="0" column="1"> + <property name="name"> + <cstring>phoneEdit</cstring> + </property> + <property name="text"> + <string></string> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + </grid> + </widget> + <widget class="QGroupBox" row="1" column="0"> + <property name="name"> + <cstring>groupBox2</cstring> + </property> + <property name="title"> + <string>Location Information</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel" row="0" column="0"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>&Address:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>addressEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="3" column="2"> + <property name="name"> + <cstring>textLabel8</cstring> + </property> + <property name="text"> + <string>Countr&y:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>countryEdit</cstring> + </property> + </widget> + <widget class="QTextEdit" row="0" column="1" rowspan="2" colspan="3"> + <property name="name"> + <cstring>addressEdit</cstring> + </property> + </widget> + <spacer row="1" column="0"> + <property name="name"> + <cstring>spacer7</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>78</height> + </size> + </property> + </spacer> + <widget class="QLabel" row="3" column="0"> + <property name="name"> + <cstring>textLabel4</cstring> + </property> + <property name="text"> + <string>&State:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>stateEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="3" column="1"> + <property name="name"> + <cstring>stateEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="2" column="2"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="text"> + <string>&City:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>cityEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="2" column="3"> + <property name="name"> + <cstring>cityEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="3" column="3"> + <property name="name"> + <cstring>countryEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="2" column="0"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="text"> + <string>&Zip:</string> + </property> + <property name="buddy" stdset="0"> + <cstring>zipEdit</cstring> + </property> + </widget> + <widget class="QLineEdit" row="2" column="1"> + <property name="name"> + <cstring>zipEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string></string> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + </grid> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>firstNameEdit</tabstop> + <tabstop>secondNameEdit</tabstop> + <tabstop>lastNameEdit</tabstop> + <tabstop>nickNameEdit</tabstop> + <tabstop>titleEdit</tabstop> + <tabstop>birthdayEdit</tabstop> + <tabstop>anniversaryEdit</tabstop> + <tabstop>addressEdit</tabstop> + <tabstop>zipEdit</tabstop> + <tabstop>cityEdit</tabstop> + <tabstop>stateEdit</tabstop> + <tabstop>countryEdit</tabstop> + <tabstop>phoneEdit</tabstop> + <tabstop>faxEdit</tabstop> + <tabstop>additionalEdit</tabstop> + <tabstop>cellEdit</tabstop> + <tabstop>pagerEdit</tabstop> + <tabstop>emailEdit</tabstop> + <tabstop>emailEdit_2</tabstop> + <tabstop>emailEdit_3</tabstop> + <tabstop>homepageEdit</tabstop> + <tabstop>yahooIdEdit</tabstop> +</tabstops> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/kopete/protocols/yahoo/ui/yahooinvitelistbase.ui b/kopete/protocols/yahoo/ui/yahooinvitelistbase.ui new file mode 100644 index 00000000..09a3cd15 --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahooinvitelistbase.ui @@ -0,0 +1,337 @@ +<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>YahooInviteListBase</class> +<widget class="QDialog"> + <property name="name"> + <cstring>YahooInviteListBase</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>529</width> + <height>418</height> + </rect> + </property> + <property name="caption"> + <string>Invite Friends to Conference</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout19</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QGroupBox"> + <property name="name"> + <cstring>groupBox3</cstring> + </property> + <property name="title"> + <string>Conference Members</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLayoutWidget" row="0" column="0"> + <property name="name"> + <cstring>layout5</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="text"> + <string>Friend List</string> + </property> + </widget> + <widget class="QListBox"> + <item> + <property name="text"> + <string>New Item</string> + </property> + </item> + <property name="name"> + <cstring>listFriends</cstring> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>180</height> + </size> + </property> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="2"> + <property name="name"> + <cstring>layout4</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2_2</cstring> + </property> + <property name="text"> + <string>Chat Invitation List</string> + </property> + </widget> + <widget class="QListBox"> + <item> + <property name="text"> + <string>New Item</string> + </property> + </item> + <property name="name"> + <cstring>listInvited</cstring> + </property> + <property name="minimumSize"> + <size> + <width>0</width> + <height>150</height> + </size> + </property> + </widget> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout2</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLineEdit"> + <property name="name"> + <cstring>editBuddyAdd</cstring> + </property> + </widget> + <widget class="QPushButton"> + <property name="name"> + <cstring>btnCustomAdd</cstring> + </property> + <property name="text"> + <string>Add</string> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + <widget class="QLayoutWidget" row="0" column="1"> + <property name="name"> + <cstring>layout10</cstring> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <spacer> + <property name="name"> + <cstring>spacer1_2</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QPushButton"> + <property name="name"> + <cstring>btn_Add</cstring> + </property> + <property name="text"> + <string>Add >></string> + </property> + </widget> + <widget class="QPushButton"> + <property name="name"> + <cstring>btn_Remove</cstring> + </property> + <property name="text"> + <string><< Remove</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer1</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>90</height> + </size> + </property> + </spacer> + </vbox> + </widget> + </grid> + </widget> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout14</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>txtInvMsg</cstring> + </property> + <property name="text"> + <string>Invitation Message</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Fixed</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>21</height> + </size> + </property> + </spacer> + <widget class="QLineEdit"> + <property name="name"> + <cstring>editMessage</cstring> + </property> + </widget> + </hbox> + </widget> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout18</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QPushButton"> + <property name="name"> + <cstring>btnCancel</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Cancel</string> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer5</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Maximum</enum> + </property> + <property name="sizeHint"> + <size> + <width>350</width> + <height>31</height> + </size> + </property> + </spacer> + <widget class="QPushButton"> + <property name="name"> + <cstring>btnInvite</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>0</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Invite</string> + </property> + </widget> + </hbox> + </widget> + </vbox> + </widget> + </grid> +</widget> +<connections> + <connection> + <sender>btnCancel</sender> + <signal>clicked()</signal> + <receiver>YahooInviteListBase</receiver> + <slot>btnCancel_clicked()</slot> + </connection> + <connection> + <sender>btnCustomAdd</sender> + <signal>clicked()</signal> + <receiver>YahooInviteListBase</receiver> + <slot>btnAddCustom_clicked()</slot> + </connection> + <connection> + <sender>btnInvite</sender> + <signal>clicked()</signal> + <receiver>YahooInviteListBase</receiver> + <slot>btnInvite_clicked()</slot> + </connection> + <connection> + <sender>btn_Add</sender> + <signal>clicked()</signal> + <receiver>YahooInviteListBase</receiver> + <slot>btnAdd_clicked()</slot> + </connection> + <connection> + <sender>btn_Remove</sender> + <signal>clicked()</signal> + <receiver>YahooInviteListBase</receiver> + <slot>btnRemove_clicked()</slot> + </connection> +</connections> +<slots> + <slot>btnAdd_clicked()</slot> + <slot>btnRemove_clicked()</slot> + <slot>btnAddCustom_clicked()</slot> + <slot>btnCancel_clicked()</slot> + <slot>btnInvite_clicked()</slot> +</slots> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp b/kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp new file mode 100644 index 00000000..dcd6e184 --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahooinvitelistimpl.cpp @@ -0,0 +1,165 @@ +/* + YahooInviteListImpl - conference invitation dialog + + Copyright (c) 2004 by Duncan Mac-Vicar P. <[email protected]> + + Kopete (c) 2002-2004 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ************************************************************************* +*/ + +#include "yahooinvitelistimpl.h" + +#include <kdebug.h> + +#include <qlistbox.h> +#include <qlineedit.h> + +YahooInviteListImpl::YahooInviteListImpl(QWidget *parent, const char *name) : YahooInviteListBase(parent,name) +{ + listFriends->setSelectionMode( QListBox::Extended ); + listInvited->setSelectionMode( QListBox::Extended ); +} + +YahooInviteListImpl::~YahooInviteListImpl() +{ +} + +void YahooInviteListImpl::setRoom( const QString &room ) +{ + kdDebug(14180) << k_funcinfo << "Setting roomname to: " << room << endl; + + m_room = room; +} + +void YahooInviteListImpl::fillFriendList( const QStringList &buddies ) +{ + kdDebug(14180) << k_funcinfo << "Adding friends: " << buddies << endl; + + m_buddyList = buddies; + updateListBoxes(); +} + +void YahooInviteListImpl::updateListBoxes() +{ + kdDebug(14180) << k_funcinfo << endl; + + listFriends->clear(); + listInvited->clear(); + listFriends->insertStringList( m_buddyList ); + listFriends->sort(); + listInvited->insertStringList( m_inviteeList ); + listInvited->sort(); +} + +void YahooInviteListImpl::addInvitees( const QStringList &invitees ) +{ + kdDebug(14180) << k_funcinfo << "Adding invitees: " << invitees << endl; + + for( QStringList::const_iterator it = invitees.begin(); it != invitees.end(); it++ ) + { + if( m_inviteeList.find( *it ) == m_inviteeList.end() ) + m_inviteeList.push_back( *it ); + if( m_buddyList.find( *it ) != m_buddyList.end() ) + m_buddyList.remove( *it ); + } + + updateListBoxes(); +} + +void YahooInviteListImpl::removeInvitees( const QStringList &invitees ) +{ + kdDebug(14180) << k_funcinfo << "Removing invitees: " << invitees << endl; + + for( QStringList::const_iterator it = invitees.begin(); it != invitees.end(); it++ ) + { + if( m_buddyList.find( *it ) == m_buddyList.end() ) + m_buddyList.push_back( *it ); + if( m_inviteeList.find( *it ) != m_inviteeList.end() ) + m_inviteeList.remove( *it ); + } + + updateListBoxes(); +} + +void YahooInviteListImpl::addParticipant( const QString &p ) +{ + m_participants.push_back( p ); +} + +void YahooInviteListImpl::btnInvite_clicked() +{ + kdDebug(14180) << k_funcinfo << endl; + + if( m_inviteeList.count() ) + emit readyToInvite( m_room, m_inviteeList,m_participants, editMessage->text() ); + QDialog::accept(); +} + + +void YahooInviteListImpl::btnCancel_clicked() +{ + kdDebug(14180) << k_funcinfo << endl; + + QDialog::reject(); +} + + +void YahooInviteListImpl::btnAddCustom_clicked() +{ + kdDebug(14180) << k_funcinfo << endl; + + QString userId; + userId = editBuddyAdd->text(); + if( userId.isEmpty() ) + return; + + addInvitees( QStringList(userId) ); + editBuddyAdd->clear(); +} + + +void YahooInviteListImpl::btnRemove_clicked() +{ + kdDebug(14180) << k_funcinfo << endl; + + QStringList buddies; + for( uint i=0; i<listInvited->count(); i++ ) + { + if (listInvited->isSelected(i)) + { + buddies.push_back( listInvited->text(i) ); + } + } + removeInvitees( buddies ); +} + + +void YahooInviteListImpl::btnAdd_clicked() +{ + kdDebug(14180) << k_funcinfo << endl; + + QStringList buddies; + for( uint i=0; i<listFriends->count(); i++ ) + { + if (listFriends->isSelected(i)) + { + buddies.push_back( listFriends->text(i) ); + } + } + addInvitees( buddies ); +} + + +#include "yahooinvitelistimpl.moc" + + + + diff --git a/kopete/protocols/yahoo/ui/yahooinvitelistimpl.h b/kopete/protocols/yahoo/ui/yahooinvitelistimpl.h new file mode 100644 index 00000000..76577f36 --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahooinvitelistimpl.h @@ -0,0 +1,59 @@ +/* + YahooInviteListImpl - conference invitation dialog + + Copyright (c) 2004 by Duncan Mac-Vicar P. <[email protected]> + + Kopete (c) 2002-2004 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ************************************************************************* +*/ + +#ifndef YAHOO_INVITE_LIST_IMPL +#define YAHOO_INVITE_LIST_IMPL + +#include <qwidget.h> + +#include "yahooinvitelistbase.h" + +class YahooInviteListImpl : public YahooInviteListBase +{ + Q_OBJECT +public: + YahooInviteListImpl(QWidget *parent=0, const char *name=0); + ~YahooInviteListImpl(); + + void fillFriendList( const QStringList &buddies ); + void addInvitees( const QStringList &buddies ); + void removeInvitees( const QStringList &buddies ); + void setRoom( const QString &room ); + void addParticipant( const QString &participant ); +private: + +signals: + void readyToInvite( const QString &room, const QStringList &buddies, const QStringList &participants, const QString &msg ); +protected slots: + +public slots: + virtual void btnInvite_clicked(); + virtual void btnCancel_clicked(); + virtual void btnAddCustom_clicked(); + virtual void btnRemove_clicked(); + virtual void btnAdd_clicked(); +private: + void updateListBoxes(); + + QStringList m_buddyList; + QStringList m_inviteeList; + QStringList m_participants; + QString m_room; +}; + +#endif + diff --git a/kopete/protocols/yahoo/ui/yahoootherinfowidget.ui b/kopete/protocols/yahoo/ui/yahoootherinfowidget.ui new file mode 100644 index 00000000..db2e4a8f --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahoootherinfowidget.ui @@ -0,0 +1,119 @@ +<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>YahooOtherInfoWidget</class> +<widget class="QWidget"> + <property name="name"> + <cstring>YahooOtherInfoWidget</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>289</width> + <height>439</height> + </rect> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>textLabel13</cstring> + </property> + <property name="text"> + <string>Contact comments:</string> + </property> + </widget> + <widget class="QTextEdit" row="1" column="0" rowspan="1" colspan="2"> + <property name="name"> + <cstring>commentsEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="2" column="0"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="text"> + <string>Note 1:</string> + </property> + </widget> + <widget class="QLineEdit" row="2" column="1"> + <property name="name"> + <cstring>note1Edit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="3" column="0"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="text"> + <string>Note 2:</string> + </property> + </widget> + <widget class="QLineEdit" row="3" column="1"> + <property name="name"> + <cstring>note2Edit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="4" column="1"> + <property name="name"> + <cstring>note3Edit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="4" column="0"> + <property name="name"> + <cstring>textLabel4</cstring> + </property> + <property name="text"> + <string>Note 3:</string> + </property> + </widget> + <widget class="QLineEdit" row="5" column="1"> + <property name="name"> + <cstring>note4Edit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="5" column="0"> + <property name="name"> + <cstring>textLabel5</cstring> + </property> + <property name="text"> + <string>Note 4:</string> + </property> + </widget> + <spacer row="7" column="1"> + <property name="name"> + <cstring>spacer8</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>130</height> + </size> + </property> + </spacer> + </grid> +</widget> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/kopete/protocols/yahoo/ui/yahoostealthsetting.ui b/kopete/protocols/yahoo/ui/yahoostealthsetting.ui new file mode 100644 index 00000000..6c9a6fc0 --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahoostealthsetting.ui @@ -0,0 +1,96 @@ +<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>YahooStealthSetting</class> +<widget class="QWidget"> + <property name="name"> + <cstring>YahooStealthSetting</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>195</width> + <height>114</height> + </rect> + </property> + <property name="minimumSize"> + <size> + <width>195</width> + <height>75</height> + </size> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QButtonGroup" row="0" column="0"> + <property name="name"> + <cstring>buttonGroup1</cstring> + </property> + <property name="title"> + <string>Show Me As</string> + </property> + <widget class="QRadioButton"> + <property name="name"> + <cstring>radioPermOffline</cstring> + </property> + <property name="geometry"> + <rect> + <x>10</x> + <y>60</y> + <width>151</width> + <height>17</height> + </rect> + </property> + <property name="text"> + <string>Perma&nently offline</string> + </property> + </widget> + <widget class="QRadioButton"> + <property name="name"> + <cstring>radioOnline</cstring> + </property> + <property name="geometry"> + <rect> + <x>10</x> + <y>20</y> + <width>151</width> + <height>17</height> + </rect> + </property> + <property name="text"> + <string>&Online</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + <widget class="QRadioButton"> + <property name="name"> + <cstring>radioOffline</cstring> + </property> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="geometry"> + <rect> + <x>10</x> + <y>40</y> + <width>151</width> + <height>17</height> + </rect> + </property> + <property name="text"> + <string>Off&line</string> + </property> + <property name="checked"> + <bool>false</bool> + </property> + </widget> + </widget> + </grid> +</widget> +<tabstops> + <tabstop>radioOnline</tabstop> +</tabstops> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp b/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp new file mode 100644 index 00000000..28a8532d --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahoouserinfodialog.cpp @@ -0,0 +1,260 @@ +/* + Kopete Yahoo Protocol + yahoouserinfodialog.h - Display Yahoo user info + + Copyright (c) 2005 Matt Rogers <[email protected]> + Copyright (c) 2006 Andre Duffeck <[email protected]> + + Kopete (c) 2002-2006 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + ************************************************************************* +*/ + +#include "yahoouserinfodialog.h" + +#include <qlayout.h> +#include <qlineedit.h> +#include <qspinbox.h> +#include <qcombobox.h> +#include <qtextedit.h> +#include <qobject.h> +#include <qtextcodec.h> + +#include <kdatewidget.h> +#include <kdebug.h> +#include <kglobal.h> +#include <kiconloader.h> +#include <kjanuswidget.h> +#include <klocale.h> + +#include "yahooworkinfowidget.h" +#include "yahoogeneralinfowidget.h" +#include "yahoootherinfowidget.h" +#include "yahoocontact.h" + +YahooUserInfoDialog::YahooUserInfoDialog( YahooContact *c, QWidget * parent, const char * name ) +: KDialogBase( KDialogBase::IconList, 0, parent, name, false, i18n( "Yahoo User Information" ), User2|User1|Cancel, Cancel, false, i18n("Save and Close"), i18n("Merge with existing entry") ) +{ + kdDebug(14180) << k_funcinfo << "Creating new yahoo user info widget" << endl; + m_contact = c; + showButton( User2, false ); + QFrame* genInfo = addPage( i18n( "General Info" ), + i18n( "General Yahoo Information" ), + KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "identity" ), KIcon::Desktop ) ); + QVBoxLayout* genLayout = new QVBoxLayout( genInfo ); + m_genInfoWidget = new YahooGeneralInfoWidget( genInfo, "Basic Information" ); + genLayout->addWidget( m_genInfoWidget ); + + QFrame* workInfo = addPage( i18n( "Work Info" ), + i18n( "Work Information" ), + KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "attach" ), KIcon::Desktop ) ); + QVBoxLayout* workLayout = new QVBoxLayout( workInfo ); + m_workInfoWidget = new YahooWorkInfoWidget( workInfo, "Work Information" ); + workLayout->addWidget( m_workInfoWidget ); + + QFrame* otherInfo = addPage( i18n( "Other Info" ), + i18n( "Other Yahoo Information" ), + KGlobal::iconLoader()->loadIcon( QString::fromLatin1( "email" ), KIcon::Desktop ) ); + QVBoxLayout* otherLayout = new QVBoxLayout( otherInfo ); + m_otherInfoWidget = new YahooOtherInfoWidget( otherInfo, "Other Information" ); + otherLayout->addWidget( m_otherInfoWidget ); + + QObject::connect(this, SIGNAL(user1Clicked()), this, SLOT(slotSaveAndCloseClicked())); +} + +void YahooUserInfoDialog::setAccountConnected( bool isOnline ) +{ + enableButton( User1, isOnline ); + enableButton( User2, isOnline ); +} + +void YahooUserInfoDialog::slotSaveAndCloseClicked() +{ + YABEntry entry; + entry.yahooId = m_yab.yahooId; + entry.YABId = m_yab.YABId; + entry.firstName = m_genInfoWidget->firstNameEdit->text(); + entry.secondName = m_genInfoWidget->secondNameEdit->text(); + entry.lastName = m_genInfoWidget->lastNameEdit->text(); + entry.nickName = m_genInfoWidget->nickNameEdit->text(); + entry.email = m_genInfoWidget->emailEdit->text(); + entry.privatePhone = m_genInfoWidget->phoneEdit->text(); + entry.workPhone = m_workInfoWidget->phoneEdit->text(); + entry.pager = m_genInfoWidget->pagerEdit->text(); + entry.fax = m_genInfoWidget->faxEdit->text(); + entry.phoneMobile = m_genInfoWidget->cellEdit->text(); + entry.additionalNumber = m_genInfoWidget->additionalEdit->text(); + entry.altEmail1 = m_genInfoWidget->emailEdit_2->text(); + entry.altEmail2 = m_genInfoWidget->emailEdit_3->text(); + entry.privateURL = m_genInfoWidget->homepageEdit->text(); + entry.title = m_genInfoWidget->titleEdit->text(); + entry.corporation = m_workInfoWidget->companyEdit->text(); + entry.workAdress = m_workInfoWidget->addressEdit->text(); + entry.workCity = m_workInfoWidget->cityEdit->text(); + entry.workState = m_workInfoWidget->stateEdit->text(); + entry.workZIP = m_workInfoWidget->zipEdit->text(); + entry.workCountry = m_workInfoWidget->countryEdit->text(); + entry.workURL = m_workInfoWidget->homepageEdit->text(); + entry.privateAdress = m_genInfoWidget->addressEdit->text(); + entry.privateCity = m_genInfoWidget->cityEdit->text(); + entry.privateState = m_genInfoWidget->stateEdit->text(); + entry.privateZIP = m_genInfoWidget->zipEdit->text(); + entry.privateCountry = m_genInfoWidget->countryEdit->text(); + QString bi = m_genInfoWidget->birthdayEdit->text(); + entry.birthday = QDate( bi.section("/",2,2).toInt(), bi.section("/",1,1).toInt(), bi.section("/",0,0).toInt() ); + QString an = m_genInfoWidget->anniversaryEdit->text(); + entry.anniversary = QDate( an.section("/",2,2).toInt(), an.section("/",1,1).toInt(), an.section("/",0,0).toInt() ); + entry.additional1 = m_otherInfoWidget->note1Edit->text(); + entry.additional2 = m_otherInfoWidget->note2Edit->text(); + entry.additional3 = m_otherInfoWidget->note3Edit->text(); + entry.additional4 = m_otherInfoWidget->note4Edit->text(); + entry.notes = m_otherInfoWidget->commentsEdit->text(); +// entry.imAIM = m_genInfoWidget->firstNameEdit->text(); +// entry.imGoogleTalk = m_genInfoWidget->firstNameEdit->text(); +// entry.imICQ = m_genInfoWidget->firstNameEdit->text(); +// entry.imIRC = m_genInfoWidget->firstNameEdit->text(); +// entry.imMSN = m_genInfoWidget->firstNameEdit->text(); +// entry.imQQ = m_genInfoWidget->firstNameEdit->text(); +// entry.imSkype = m_genInfoWidget->firstNameEdit->text(); + + emit saveYABEntry( entry ); + + QDialog::accept(); +} + +void YahooUserInfoDialog::slotUser2() +{ + if( m_contact ) + { + YABEntry entry; + const YABEntry *oldEntry = m_contact->yabEntry(); + + entry.yahooId = m_yab.yahooId; + entry.YABId = m_yab.YABId; + entry.firstName = m_genInfoWidget->firstNameEdit->text().isEmpty() ? oldEntry->firstName : m_genInfoWidget->firstNameEdit->text(); + entry.secondName = m_genInfoWidget->secondNameEdit->text().isEmpty() ? oldEntry->secondName : m_genInfoWidget->secondNameEdit->text(); + entry.lastName = m_genInfoWidget->lastNameEdit->text().isEmpty() ? oldEntry->lastName : m_genInfoWidget->lastNameEdit->text(); + entry.nickName = m_genInfoWidget->nickNameEdit->text().isEmpty() ? oldEntry->nickName : m_genInfoWidget->nickNameEdit->text(); + entry.email = m_genInfoWidget->emailEdit->text().isEmpty() ? oldEntry->email : m_genInfoWidget->emailEdit->text(); + entry.privatePhone = m_genInfoWidget->phoneEdit->text().isEmpty() ? oldEntry->privatePhone : m_genInfoWidget->phoneEdit->text(); + entry.workPhone = m_workInfoWidget->phoneEdit->text().isEmpty() ? oldEntry->workPhone : m_workInfoWidget->phoneEdit->text(); + entry.pager = m_genInfoWidget->pagerEdit->text().isEmpty() ? oldEntry->pager : m_genInfoWidget->pagerEdit->text(); + entry.fax = m_genInfoWidget->faxEdit->text().isEmpty() ? oldEntry->fax : m_genInfoWidget->faxEdit->text(); + entry.phoneMobile = m_genInfoWidget->cellEdit->text().isEmpty() ? oldEntry->phoneMobile : m_genInfoWidget->cellEdit->text(); + entry.additionalNumber = m_genInfoWidget->additionalEdit->text().isEmpty() ? oldEntry->additionalNumber : m_genInfoWidget->additionalEdit->text(); + entry.altEmail1 = m_genInfoWidget->emailEdit_2->text().isEmpty() ? oldEntry->altEmail1 : m_genInfoWidget->emailEdit_2->text(); + entry.altEmail2 = m_genInfoWidget->emailEdit_3->text().isEmpty() ? oldEntry->altEmail2 : m_genInfoWidget->emailEdit_3->text(); + entry.privateURL = m_genInfoWidget->homepageEdit->text().isEmpty() ? oldEntry->privateURL : m_genInfoWidget->homepageEdit->text(); + entry.title = m_genInfoWidget->titleEdit->text().isEmpty() ? oldEntry->title : m_genInfoWidget->titleEdit->text(); + entry.corporation = m_workInfoWidget->companyEdit->text().isEmpty() ? oldEntry->corporation : m_workInfoWidget->companyEdit->text(); + entry.workAdress = m_workInfoWidget->addressEdit->text().isEmpty() ? oldEntry->workAdress : m_workInfoWidget->addressEdit->text(); + entry.workCity = m_workInfoWidget->cityEdit->text().isEmpty() ? oldEntry->workCity : m_workInfoWidget->cityEdit->text(); + entry.workState = m_workInfoWidget->stateEdit->text().isEmpty() ? oldEntry->workState : m_workInfoWidget->stateEdit->text(); + entry.workZIP = m_workInfoWidget->zipEdit->text().isEmpty() ? oldEntry->workZIP : m_workInfoWidget->zipEdit->text(); + entry.workCountry = m_workInfoWidget->countryEdit->text().isEmpty() ? oldEntry->workCountry : m_workInfoWidget->countryEdit->text(); + entry.workURL = m_workInfoWidget->homepageEdit->text().isEmpty() ? oldEntry->workURL : m_workInfoWidget->homepageEdit->text(); + entry.privateAdress = m_genInfoWidget->addressEdit->text().isEmpty() ? oldEntry->privateAdress : m_genInfoWidget->addressEdit->text(); + entry.privateCity = m_genInfoWidget->cityEdit->text().isEmpty() ? oldEntry->privateCity : m_genInfoWidget->cityEdit->text(); + entry.privateState = m_genInfoWidget->stateEdit->text().isEmpty() ? oldEntry->privateState : m_genInfoWidget->stateEdit->text(); + entry.privateZIP = m_genInfoWidget->zipEdit->text().isEmpty() ? oldEntry->privateZIP : m_genInfoWidget->zipEdit->text(); + entry.privateCountry = m_genInfoWidget->countryEdit->text().isEmpty() ? oldEntry->privateCountry : m_genInfoWidget->countryEdit->text(); + + if( m_genInfoWidget->birthdayEdit->text().isEmpty() ) + entry.birthday = oldEntry->birthday; + else + { + QString bi = m_genInfoWidget->birthdayEdit->text(); + entry.birthday = QDate( bi.section("/",2,2).toInt(), bi.section("/",1,1).toInt(), bi.section("/",0,0).toInt() ); + } + + if( m_genInfoWidget->anniversaryEdit->text().isEmpty() ) + entry.anniversary = oldEntry->anniversary; + else + { + QString an = m_genInfoWidget->anniversaryEdit->text(); + entry.anniversary = QDate( an.section("/",2,2).toInt(), an.section("/",1,1).toInt(), an.section("/",0,0).toInt() ); + } + + entry.additional1 = m_otherInfoWidget->note1Edit->text().isEmpty() ? oldEntry->additional1 : m_otherInfoWidget->note1Edit->text(); + entry.additional2 = m_otherInfoWidget->note2Edit->text().isEmpty() ? oldEntry->additional2 : m_otherInfoWidget->note2Edit->text(); + entry.additional3 = m_otherInfoWidget->note3Edit->text().isEmpty() ? oldEntry->additional3 : m_otherInfoWidget->note3Edit->text(); + entry.additional4 = m_otherInfoWidget->note4Edit->text().isEmpty() ? oldEntry->additional4 : m_otherInfoWidget->note4Edit->text(); + entry.notes = m_otherInfoWidget->commentsEdit->text().isEmpty() ? oldEntry->notes : m_otherInfoWidget->commentsEdit->text(); + // entry.imAIM = m_genInfoWidget->firstNameEdit->text().isEmpty() ? oldEntry->notes : m_otherInfoWidget->commentsEdit->text(); + // entry.imGoogleTalk = m_genInfoWidget->firstNameEdit->text().isEmpty() ? oldEntry->notes : m_otherInfoWidget->commentsEdit->text(); + // entry.imICQ = m_genInfoWidget->firstNameEdit->text().isEmpty() ? oldEntry->notes : m_otherInfoWidget->commentsEdit->text(); + // entry.imIRC = m_genInfoWidget->firstNameEdit->text().isEmpty() ? oldEntry->notes : m_otherInfoWidget->commentsEdit->text(); + // entry.imMSN = m_genInfoWidget->firstNameEdit->text().isEmpty() ? oldEntry->notes : m_otherInfoWidget->commentsEdit->text(); + // entry.imQQ = m_genInfoWidget->firstNameEdit->text().isEmpty() ? oldEntry->notes : m_otherInfoWidget->commentsEdit->text(); + // entry.imSkype = m_genInfoWidget->firstNameEdit->text().isEmpty() ? oldEntry->notes : m_otherInfoWidget->commentsEdit->text(); + + emit saveYABEntry( entry ); + } + + QDialog::accept(); +} + +void YahooUserInfoDialog::setData( const YABEntry &yab ) +{ + m_yab = yab; + + if( m_yab.source == YABEntry::SourceContact ) + { + showButton( User2, true ); + setButtonText( User1, i18n("Replace existing entry") ); + } + + m_genInfoWidget->firstNameEdit->setText( yab.firstName ); + m_genInfoWidget->secondNameEdit->setText( yab.secondName ); + m_genInfoWidget->lastNameEdit->setText( yab.lastName ); + m_genInfoWidget->nickNameEdit->setText( yab.nickName ); + m_genInfoWidget->yahooIdEdit->setText( yab.yahooId ); + m_genInfoWidget->titleEdit->setText( yab.title ); + + if( yab.birthday.isValid() ) + m_genInfoWidget->birthdayEdit->setText( QString("%1/%2/%3").arg( yab.birthday.day() ).arg( yab.birthday.month() ).arg( yab.birthday.year() )); + if( yab.anniversary.isValid() ) + m_genInfoWidget->anniversaryEdit->setText( QString("%1/%2/%3").arg( yab.anniversary.day() ).arg( yab.anniversary.month() ).arg( yab.anniversary.year() )); + + m_genInfoWidget->addressEdit->setText( yab.privateAdress ); + m_genInfoWidget->cityEdit->setText( yab.privateCity ); + m_genInfoWidget->stateEdit->setText( yab.privateState ); + m_genInfoWidget->zipEdit->setText( yab.privateZIP ); + m_genInfoWidget->countryEdit->setText( yab.privateCountry ); + m_genInfoWidget->phoneEdit->setText( yab.privatePhone ); + m_genInfoWidget->cellEdit->setText( yab.phoneMobile ); + m_genInfoWidget->faxEdit->setText( yab.fax ); + m_genInfoWidget->pagerEdit->setText( yab.pager ); + m_genInfoWidget->emailEdit->setText( yab.email ); + m_genInfoWidget->emailEdit_2->setText( yab.altEmail1 ); + m_genInfoWidget->emailEdit_3->setText( yab.altEmail2 ); + m_genInfoWidget->homepageEdit->setText( yab.privateURL ); + m_genInfoWidget->additionalEdit->setText( yab.additionalNumber ); + + m_workInfoWidget->phoneEdit->setText( yab.workPhone ); + m_workInfoWidget->addressEdit->setText( yab.workAdress ); + m_workInfoWidget->cityEdit->setText( yab.workCity ); + m_workInfoWidget->stateEdit->setText( yab.workState ); + m_workInfoWidget->zipEdit->setText( yab.workZIP ); + m_workInfoWidget->countryEdit->setText( yab.workCountry ); + m_workInfoWidget->companyEdit->setText( yab.corporation ); + m_workInfoWidget->homepageEdit->setText( yab.workURL ); + + m_otherInfoWidget->commentsEdit->setText( yab.notes ); + m_otherInfoWidget->note1Edit->setText( yab.additional1 ); + m_otherInfoWidget->note2Edit->setText( yab.additional2 ); + m_otherInfoWidget->note3Edit->setText( yab.additional3 ); + m_otherInfoWidget->note4Edit->setText( yab.additional4 ); +} + +#include "yahoouserinfodialog.moc" + +//kate: indent-mode csands; tab-width 4; space-indent off; replace-tabs off; + diff --git a/kopete/protocols/yahoo/ui/yahoouserinfodialog.h b/kopete/protocols/yahoo/ui/yahoouserinfodialog.h new file mode 100644 index 00000000..6500d412 --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahoouserinfodialog.h @@ -0,0 +1,56 @@ +/* + Kopete Yahoo Protocol + yahoouserinfodialog.h - Display Yahoo user info + + Copyright (c) 2005 Matt Rogers <[email protected]> + Copyright (c) 2006 Andre Duffeck <[email protected]> + + Kopete (c) 2002-2006 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + ************************************************************************* +*/ + +#ifndef YAHOOUSERINFODIALOG_H_ +#define YAHOOUSERINFODIALOG_H_ + +#include <kdialogbase.h> +#include "../libkyahoo/yabentry.h" + +class KJanusWidget; +class YahooWorkInfoWidget; +class YahooGeneralInfoWidget; +class YahooOtherInfoWidget; +class YahooContact; + +class YahooUserInfoDialog : public KDialogBase +{ +Q_OBJECT +public: + YahooUserInfoDialog( YahooContact *c, QWidget* parent = 0, const char* name = 0 ); + void setAccountConnected( bool isOnline ); +signals: + void saveYABEntry( YABEntry & ); +public slots: + void setData( const YABEntry &yab ); +private slots: + void slotSaveAndCloseClicked(); + void slotUser2(); +private: + YahooGeneralInfoWidget* m_genInfoWidget; + YahooWorkInfoWidget* m_workInfoWidget; + YahooOtherInfoWidget* m_otherInfoWidget; + + YABEntry m_yab; + YahooContact *m_contact; +}; + +#endif + +//kate: indent-mode csands; tab-width 4; space-indent off; replace-tabs off; diff --git a/kopete/protocols/yahoo/ui/yahooverifyaccountbase.ui b/kopete/protocols/yahoo/ui/yahooverifyaccountbase.ui new file mode 100644 index 00000000..73eb827a --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahooverifyaccountbase.ui @@ -0,0 +1,159 @@ +<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>YahooVerifyAccountBase</class> +<widget class="QWidget"> + <property name="name"> + <cstring>YahooVerifyAccountBase</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>450</width> + <height>200</height> + </rect> + </property> + <property name="minimumSize"> + <size> + <width>450</width> + <height>200</height> + </size> + </property> + <vbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>Your Account has to be verified because of too many false login attempts.<br></string> + </property> + </widget> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout0</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="text"> + <string>Please enter the chars shown in the picture:</string> + </property> + </widget> + <widget class="QLineEdit"> + <property name="name"> + <cstring>mWord</cstring> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer15</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>110</width> + <height>20</height> + </size> + </property> + </spacer> + </hbox> + </widget> + <spacer> + <property name="name"> + <cstring>spacer4</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>16</height> + </size> + </property> + </spacer> + <widget class="QLayoutWidget"> + <property name="name"> + <cstring>layout16</cstring> + </property> + <hbox> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <spacer> + <property name="name"> + <cstring>spacer14</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>72</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLabel"> + <property name="name"> + <cstring>mPicture</cstring> + </property> + <property name="minimumSize"> + <size> + <width>240</width> + <height>75</height> + </size> + </property> + <property name="pixmap"> + <pixmap>image0</pixmap> + </property> + <property name="scaledContents"> + <bool>true</bool> + </property> + </widget> + <spacer> + <property name="name"> + <cstring>spacer13</cstring> + </property> + <property name="orientation"> + <enum>Horizontal</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>72</width> + <height>20</height> + </size> + </property> + </spacer> + </hbox> + </widget> + </vbox> +</widget> +<images> + <image name="image0"> + <data format="XPM.GZ" length="4833">789c8597596f23470e80dfe75718c3b7c182e9eabb11ec834fc9873cbeaf601fc86ec9966df994cfc5fef794483633934d10c836fcb9582cde55fee5dbd2d9de68e9db2f5f9ee7349fb64bed153d2d7deb5e66b38fdffef3efff7ef99aa64b8baf2c5b4abffeebcb57dc5c6a9720499290640b8613e110ff22eb941b07657e7256f90be742e4a7c6a9ed076791c7a1732efbd784d3f817615a71167db0e55c0a17ce95c88f8ced3c7e74d6f306cea29fd159f583b3e8a75367d18f5bce8df0b63389be67e3ccfcd97716fd78e22cfaf1d459edefedcbedbc63e75af4cf85b33edeb8616cfef1b5b39eb7e72cf6c28b7166fb53678df7b5b3fadf388b3d503a8b3d40c6b9eaa35767d9cf37c6a5e53f73d6f3769d55bedf5f2789ac6bfcf2de1fda33ce4cdfbb716eeb6fce1acf1de3c2f2bbe7acf573605cdafe2b67f5efd359f20bb97165febe38b3c453fd2bfa7cd0a67165fea97c9db416ff1de3b1e9d77a6d12567bf8c159ed9d1ab7969fc2b8d378e2ba304579c93769bd719457fd524f2184cae221f51bd250a8fd3c35ae4cfec1b8b6fa06e3c6eaffc859d651f215b2d0c7efdab8327b969d459e9e8d7bfd57c68df587c43be4c1e20b685c1b9f0b17c1e283cfce927f96f911ca40d63fcbce7afebd31eb3a91b3fa37376ead9e64dea5759606a94f546eb23499883d9bc69932bef4acf22cf594725c1f8bfca9b3c8d3aa711e82c82bb73de3817111a4fe2171d67e1a1b97ba8e87ce5a8f12bfb48b2cfae8ceb85206894f9666135bff2e5c45d6fae894a3393a3f5be13aaeb7729eca4ff2d6ce3f5b701ef2b1c95f0aa7715dfb4de657519675d0fc8d8c9ba0f527f12faab234fd8fc695f1ab716dfa3f84ebb2089dec5f779678d381711d74beae398b7f540b3751bfd6e39ab1c9033b6bbd07e326687dcb3c2da8ecf47cfa301e9bbe37e389c94b3c0a2edba0f5f361dc194b3c8b36eed77acf9c453fab7f6d95587e6e8d83c957c25dc9668fdc5fc538b2c6e3a6e754e7adcc836252b6a9d69bccffb2ad535d67e98fb2ab538befaab3e8439947e5b84e82f6ffa17165f1bd7096fcc1ccb8b67a981b375a0f20f92d2775b078493dd54c75aaef0de9dfba75167fea2eb2f683dc5771388d753fbe396b7fca7c6b52ea2c5e57ce621fcbfdd26464f1812767ed8f63e3ced665de34c464fe9e1bb3d5b3f45bc3dca67a7fc9fba7697b46a9bf66cc13cb8fcc8b66c2960f3832b6f3988dad1e2828b799c53371d6f9766b9c5b7f4afe286983f5c3aeb3be177ace6c1ecc9cb51f6a678def8a7169f351fca710f5a93d9db3d64febacf9981aa76a2f5e3b6b7d5d1af7f6df3aebfb67e4acf93f72d6f972675cd83c7d77d67cac3bebfdfce9acf7eb87b3c66b665cdabc5feed9f44bfd51caade59395dbc4fc3f33cecc9f9b9e35bf786fdccfffc459e7ffc059eb7fe2acefcfd459df13dbceda5f4367bddffed8affdf0665c243a6f769c351f6367f51f7ad6fcefcf9dd57e72567fd959e3dd3a6bbc3b677daf34ce6affadb3dadbdb57263a5f46ce7adf8e9dd5dededfbe5e2f9cb5de5b678df7bb71a5fa59f767dccf77cd57d6f7136c185b7e79d359f3159cf53df7e8acf19e19f7f57ee5acef9b0d67f5b733b6fa844b63f38f07ceea9fcc3fca5b9bef58199b3dbce5acefa53567bd6fee8c73d54f95b3fa3b34b6fcc3b3b3f6dba1b3f6afe6a788fb6bad9f1f3f08f19b90b18ddff0f3dafefc2fe4bb284948f1b7f1e2e73fca4ff012af708ad77883b77f2f8f33bc8b9aeff1011ff1099f718e2ff88a6ff88e1ff8196da33fc92fe30aaee21aaee3060e70889bb885dbb88323dc8d7a407df941be8dd2dfa3ec5e94dac7033cc4233cc6133cc5333cc78bffb327c18029669863812556d1ef1a9ba8168080a1850ec608daaf30814bb882296ec035dc486426700b33b8837b78c0213cc2133ce367af3f7a93c01c5e700b5ee10d6fe11d093ee01396610556f104d6601d36a2d77abf0da2f41036610bb6b1841d18c12e7c873dd887033884233886133885b318297d3fc558e114cee1021208d1e01432c8a180122aa8e3c5190f2322c63bb507995aea62bc37698c9f34a14bba822d9ad235ddd02dcde80e87744f0f7fc823d1233de1363d634d737aa1577aa3ebf8047ba70ffaa4655aa1555aa375b37f0c298e6923ca0fb0a1212cd3266dd136edd08876e93bedd13e1dd0211d997e88f6031dd3099d624e67744e17f15f8b40296594cb273ef61632aa5ff34515d5d43032707c19449fd6e993db283b8217ee62fc0630fa31bf1cdf037c493bb1724ef98a162d30e56bcae185467cc3b731dfa0f935f919dff13daef1033ff2133fc77d039e73d41da55ff90d268b8afba17ea27d30a18edff9833f7999577895d7a88421aff31b6fc0e04ff5c6314acc031ef2266cc4c7ce036ff12ca66a10ff75d95eacfd2ccf3b0bfd38e651ac93f7d83b77f84e47d1e6f1222e0bf9c5ef3ff7a3f690766f4ffd0490aa85affffbf5cbef985d44a8</data> + </image> +</images> +<layoutdefaults spacing="6" margin="11"/> +</UI> diff --git a/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp b/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp new file mode 100644 index 00000000..1c7d4ef7 --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahoowebcamdialog.cpp @@ -0,0 +1,113 @@ +/* + Kopete Yahoo Protocol + + Copyright (c) 2005 by Matt Rogers <[email protected]> + Kopete (c) 2002-2005 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ************************************************************************* +*/ + +#include "yahoowebcamdialog.h" + +#include <qframe.h> +#include <qobject.h> +#include <qwidget.h> +#include <qlabel.h> +#include <qlayout.h> +#include <qvbox.h> +#include <kdebug.h> +#include <klocale.h> + +#include <webcamwidget.h> + +YahooWebcamDialog::YahooWebcamDialog( const QString &contactId, QWidget * parent, const char * name ) +: KDialogBase( KDialogBase::Plain, i18n( "Webcam for %1" ).arg( contactId ), + KDialogBase::Close, KDialogBase::Close, parent, name, false, true /*seperator*/ ) +{ + setInitialSize( QSize(320,290), false ); + + setEscapeButton( KDialogBase::Close ); + QObject::connect( this, SIGNAL( closeClicked() ), this, SIGNAL( closingWebcamDialog() ) ); + + contactName = contactId; + QWidget *page = plainPage(); + setMainWidget(page); + + QVBoxLayout *topLayout = new QVBoxLayout( page, 0, spacingHint() ); + m_imageContainer = new Kopete::WebcamWidget( page ); + m_imageContainer->setText( i18n( "No webcam image received" ) ); + m_imageContainer->setMinimumSize(320,240); + m_imageContainer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + topLayout->add( m_imageContainer ); + + m_Viewer = new QLabel( page ); + m_Viewer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + m_Viewer->hide(); + topLayout->add( m_Viewer ); + + show(); +} + +YahooWebcamDialog::~ YahooWebcamDialog( ) +{ + +} + +void YahooWebcamDialog::newImage( const QPixmap &image ) +{ + m_imageContainer->updatePixmap( image ); +} + +void YahooWebcamDialog::webcamPaused() +{ + m_imageContainer->setText( QString::fromLatin1("*** Webcam paused ***") ); +} + +void YahooWebcamDialog::webcamClosed( int reason ) +{ + kdDebug(14180) << k_funcinfo << "webcam closed with reason?? " << reason <<endl; + QString closeReason; + switch ( reason ) + { + case 1: + closeReason = i18n( "%1 has stopped broadcasting" ).arg( contactName ); break; + case 2: + closeReason = i18n( "%1 has cancelled viewing permission" ).arg( contactName ); break; + case 3: + closeReason = i18n( "%1 has declined permission to view webcam" ).arg( contactName ); break; + case 4: + closeReason = i18n( "%1 does not have his/her webcam online" ).arg( contactName ); break; + default: + closeReason = i18n( "Unable to view the webcam of %1 for an unknown reason" ).arg( contactName); + } + m_imageContainer->clear(); + + m_imageContainer->setText( closeReason ); +} + +void YahooWebcamDialog::setViewer( const QStringList &viewer ) +{ + QString s = i18n( "%1 viewer(s)" ).arg( viewer.size() ); + if( viewer.size() ) + { + s += ": "; + for ( QStringList::ConstIterator it = viewer.begin(); it != viewer.end(); ++it ) { + if( it != viewer.begin() ) + s += ", "; + s += *it; + } + } + m_Viewer->setText( s ); + m_Viewer->show(); +} + +// kate: indent-mode csands; tab-width 4; + +#include "yahoowebcamdialog.moc" diff --git a/kopete/protocols/yahoo/ui/yahoowebcamdialog.h b/kopete/protocols/yahoo/ui/yahoowebcamdialog.h new file mode 100644 index 00000000..8400e53d --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahoowebcamdialog.h @@ -0,0 +1,56 @@ +/* + Kopete Yahoo Protocol + + Copyright (c) 2005 by Matt Rogers <[email protected]> + Kopete (c) 2002-2005 by the Kopete developers <[email protected]> + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ************************************************************************* +*/ + +#ifndef YAHOOWEBCAMDIALOG_H_ +#define YAHOOWEBCAMDIALOG_H_ + +#include <qstring.h> +#include <kdialogbase.h> + + +class QPixmap; +class QWidget; +class YahooContact; + +namespace Kopete +{ + class WebcamWidget; +} + +class YahooWebcamDialog : public KDialogBase +{ +Q_OBJECT +public: + YahooWebcamDialog( const QString &, QWidget* parent = 0, const char* name = 0 ); + ~YahooWebcamDialog(); + + void setViewer( const QStringList & ); +public slots: + void newImage( const QPixmap &image ); + void webcamClosed( int ); + void webcamPaused(); +signals: + void closingWebcamDialog(); + +private: + Kopete::WebcamWidget *m_imageContainer; + QLabel *m_Viewer; + QString contactName; + +}; + +#endif +//kate: indent-mode csands; auto-insert-doxygen on; diff --git a/kopete/protocols/yahoo/ui/yahooworkinfowidget.ui b/kopete/protocols/yahoo/ui/yahooworkinfowidget.ui new file mode 100644 index 00000000..0be88f61 --- /dev/null +++ b/kopete/protocols/yahoo/ui/yahooworkinfowidget.ui @@ -0,0 +1,233 @@ +<!DOCTYPE UI><UI version="3.3" stdsetdef="1"> +<class>YahooWorkInfoWidget</class> +<widget class="QWidget"> + <property name="name"> + <cstring>YahooWorkInfoWidget</cstring> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>328</width> + <height>681</height> + </rect> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QGroupBox" row="0" column="0"> + <property name="name"> + <cstring>groupBox2</cstring> + </property> + <property name="title"> + <string>Personal Work Information</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel" row="1" column="0"> + <property name="name"> + <cstring>textLabel10</cstring> + </property> + <property name="text"> + <string>Phone:</string> + </property> + </widget> + <widget class="QLineEdit" row="1" column="1"> + <property name="name"> + <cstring>phoneEdit</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>7</hsizetype> + <vsizetype>0</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + </grid> + </widget> + <widget class="QButtonGroup" row="1" column="0"> + <property name="name"> + <cstring>buttonGroup1</cstring> + </property> + <property name="title"> + <string>Company Location Information</string> + </property> + <grid> + <property name="name"> + <cstring>unnamed</cstring> + </property> + <widget class="QLabel" row="0" column="0"> + <property name="name"> + <cstring>textLabel1</cstring> + </property> + <property name="text"> + <string>Name:</string> + </property> + </widget> + <widget class="QLabel" row="1" column="0"> + <property name="name"> + <cstring>textLabel8</cstring> + </property> + <property name="text"> + <string>Homepage:</string> + </property> + </widget> + <widget class="QLineEdit" row="0" column="1"> + <property name="name"> + <cstring>companyEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="1" column="1"> + <property name="name"> + <cstring>homepageEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="7" column="0"> + <property name="name"> + <cstring>textLabel9</cstring> + </property> + <property name="sizePolicy"> + <sizepolicy> + <hsizetype>5</hsizetype> + <vsizetype>5</vsizetype> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="text"> + <string>Country:</string> + </property> + </widget> + <widget class="QLineEdit" row="7" column="1"> + <property name="name"> + <cstring>countryEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QTextEdit" row="2" column="1" rowspan="2" colspan="1"> + <property name="name"> + <cstring>addressEdit</cstring> + </property> + </widget> + <widget class="QLabel" row="2" column="0"> + <property name="name"> + <cstring>textLabel2</cstring> + </property> + <property name="text"> + <string>Address:</string> + </property> + </widget> + <spacer row="3" column="0"> + <property name="name"> + <cstring>spacer9</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + </spacer> + <widget class="QLineEdit" row="5" column="1"> + <property name="name"> + <cstring>cityEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLineEdit" row="6" column="1"> + <property name="name"> + <cstring>stateEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + <widget class="QLabel" row="6" column="0"> + <property name="name"> + <cstring>textLabel5</cstring> + </property> + <property name="text"> + <string>State:</string> + </property> + </widget> + <widget class="QLabel" row="5" column="0"> + <property name="name"> + <cstring>textLabel3</cstring> + </property> + <property name="text"> + <string>City:</string> + </property> + </widget> + <widget class="QLabel" row="4" column="0"> + <property name="name"> + <cstring>textLabel4</cstring> + </property> + <property name="text"> + <string>Zip:</string> + </property> + </widget> + <widget class="QLineEdit" row="4" column="1"> + <property name="name"> + <cstring>zipEdit</cstring> + </property> + <property name="readOnly"> + <bool>false</bool> + </property> + </widget> + </grid> + </widget> + <spacer row="2" column="0"> + <property name="name"> + <cstring>spacer2</cstring> + </property> + <property name="orientation"> + <enum>Vertical</enum> + </property> + <property name="sizeType"> + <enum>Expanding</enum> + </property> + <property name="sizeHint"> + <size> + <width>20</width> + <height>150</height> + </size> + </property> + </spacer> + </grid> +</widget> +<tabstops> + <tabstop>phoneEdit</tabstop> + <tabstop>companyEdit</tabstop> + <tabstop>homepageEdit</tabstop> + <tabstop>addressEdit</tabstop> + <tabstop>zipEdit</tabstop> + <tabstop>cityEdit</tabstop> + <tabstop>stateEdit</tabstop> + <tabstop>countryEdit</tabstop> +</tabstops> +<layoutdefaults spacing="6" margin="11"/> +</UI> |