Hi,
here an newer diff for my Alias and Name Popup info patch. It adds the
possibility to have the Name and/or Alias of a user also displayed in the user
popup for the qt-plugin.
I added these params because my licq window is very slim and some users are
only displayed partially. So i need to have the whole name also available.
Would like to see it applied.
thanks
Philipp
--
Douglas Adams:
"Worin besteht der Vorteil, mit Ihren Fans per E-Mail zu korespondieren?"
"Es geht schneller, ist einfacher und man muss nicht so viel lecken."
Index: src/mainwin.h
===================================================================
--- src/mainwin.h (revision 4551)
+++ src/mainwin.h (working copy)
@@ -137,6 +137,8 @@
m_bAutoPosReplyWin,
m_bAutoSendThroughServer,
m_bEnableMainwinMouseMovement,
+ m_bPopAlias,
+ m_bPopName,
m_bPopEmail,
m_bPopPhone,
m_bPopFax,
Index: src/userbox.cpp
===================================================================
--- src/userbox.cpp (revision 4551)
+++ src/userbox.cpp (working copy)
@@ -1583,7 +1583,22 @@
QString s = strFileName + QString("<nobr>") +
QString(ICQUser::StatusToStatusStr(item->m_nStatus, item->m_bStatusInvisible))
+ QString("</nobr>");
+
+ if (*u->GetAlias() && gMainWindow->m_bPopAlias)
+ s += tr("<br><nobr>") + codec->toUnicode(u->GetAlias()) + tr("</nobr>");
+ if ((*u->GetFirstName() || *u->GetLastName()) && gMainWindow->m_bPopName)
+ {
+ s += tr("<br><nobr>");
+ if (*u->GetFirstName())
+ s += codec->toUnicode(u->GetFirstName());
+ if (*u->GetFirstName() && *u->GetLastName())
+ s += " ";
+ if (*u->GetLastName())
+ s += codec->toUnicode(u->GetLastName());
+ s += tr("</nobr>");
+ }
+
if (item->m_nStatusFull & ICQ_STATUS_FxBIRTHDAY)
s += tr("<br><b>Birthday Today!</b>");
Index: src/optionsdlg.cpp
===================================================================
--- src/optionsdlg.cpp (revision 4551)
+++ src/optionsdlg.cpp (working copy)
@@ -243,6 +243,8 @@
chkMainWinSticky->setChecked(mainwin->m_bMainWinSticky);
chkMsgWinSticky->setChecked(mainwin->m_bMsgWinSticky);
chkSingleLineChatMode->setChecked(mainwin->m_bSingleLineChatMode);
+ popAlias->setChecked(mainwin->m_bPopAlias);
+ popName->setChecked(mainwin->m_bPopName);
popEmail->setChecked(mainwin->m_bPopEmail);
popPhone->setChecked(mainwin->m_bPopPhone);
popFax->setChecked(mainwin->m_bPopFax);
@@ -543,6 +545,8 @@
mainwin->m_bMsgWinSticky = chkMsgWinSticky->isChecked();
mainwin->m_bSingleLineChatMode = chkSingleLineChatMode->isChecked();
+ mainwin->m_bPopAlias= popAlias->isChecked();
+ mainwin->m_bPopName= popName->isChecked();
mainwin->m_bPopEmail= popEmail->isChecked();
mainwin->m_bPopPhone= popPhone->isChecked();
mainwin->m_bPopFax= popFax->isChecked();
@@ -1456,6 +1460,8 @@
boxPopWin = new QGroupBox(1, Horizontal, tr("Popup info"), w);
+ popAlias = new QCheckBox(tr("Alias"), boxPopWin);
+ popName = new QCheckBox(tr("Name"), boxPopWin);
popEmail = new QCheckBox(tr("Email"), boxPopWin);
popPhone = new QCheckBox(tr("Phone"), boxPopWin);
popFax = new QCheckBox(tr("Fax"), boxPopWin);
Index: src/mainwin.cpp
===================================================================
--- src/mainwin.cpp (revision 4551)
+++ src/mainwin.cpp (working copy)
@@ -469,6 +469,8 @@
licqConf.ReadStr("ChatBackground", szTemp, "white");
m_colorChatBkg = QColor(szTemp);
+ licqConf.ReadBool("showPopAlias",m_bPopAlias, false);
+ licqConf.ReadBool("showPopName",m_bPopName, false);
licqConf.ReadBool("showPopEmail",m_bPopEmail, false);
licqConf.ReadBool("showPopPhone",m_bPopPhone, true);
licqConf.ReadBool("showPopFax",m_bPopFax, false);
@@ -3675,6 +3677,8 @@
licqConf.WriteStr("TabOnTypingColor", m_colorTabTyping.name());
licqConf.WriteStr("ChatBackground", m_colorChatBkg.name());
+ licqConf.WriteBool("showPopAlias",m_bPopAlias);
+ licqConf.WriteBool("showPopName",m_bPopName);
licqConf.WriteBool("showPopEmail",m_bPopEmail);
licqConf.WriteBool("showPopPhone",m_bPopPhone);
licqConf.WriteBool("showPopFax",m_bPopFax);
Index: src/optionsdlg.h
===================================================================
--- src/optionsdlg.h (revision 4551)
+++ src/optionsdlg.h (working copy)
@@ -135,7 +135,8 @@
// display tab
QWidget* new_popup_options();
QGroupBox *boxPopWin;
- QCheckBox *popEmail, *popPhone, *popFax, *popCellular, *popIP,
+ QCheckBox *popAlias, *popName, *popEmail, *popPhone,
+ *popFax, *popCellular, *popIP,
*popLastOnline, *popOnlineSince, *popIdleTime, *popID;
QWidget* new_chat_options();
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel