-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,
 This patch adds an option to show the ID (uin/msn email) of a user in the 
Popup info. Not sure if other people will find this useful, but I do as my 
msn contacts seem to change their aliases a lot and this way I can just put 
the mouse over their alias to see their msn id.
I guess another way to do this would be to set msn user IDs as their email 
also, then the existing Email popup info option could be used - would that be 
better?

Philip
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBX2kExIxNqC2kQ1MRAqBdAJ9s9Cwrj/vBiyvzGfdO1giHMSheOACeNFrg
vyWmhAsbvuU6ewdf+O5zbCo=
=Ijdt
-----END PGP SIGNATURE-----
? id.patch
Index: mainwin.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/mainwin.cpp,v
retrieving revision 1.335
diff -u -r1.335 mainwin.cpp
--- mainwin.cpp	2 Oct 2004 15:57:15 -0000	1.335
+++ mainwin.cpp	3 Oct 2004 02:44:39 -0000
@@ -431,6 +431,7 @@
   licqConf.ReadBool("showPopLastOnelin",m_bPopLastOnline, false);
   licqConf.ReadBool("showPopOnlineSince", m_bPopOnlineSince, false);
   licqConf.ReadBool("showPopIdleTime", m_bPopIdleTime, true);
+  licqConf.ReadBool("showPopID", m_bPopID, false);
   
   unsigned short nFlash;
   licqConf.ReadNum("Flash", nFlash, FLASH_URGENT);
@@ -3249,6 +3250,7 @@
   licqConf.WriteBool("showPopLastOnelin",m_bPopLastOnline);
   licqConf.WriteBool("showPopOnlineSince", m_bPopOnlineSince);
   licqConf.WriteBool("showPopIdleTime", m_bPopIdleTime);
+  licqConf.WriteBool("showPopID", m_bPopID);
 
   licqConf.WriteNum("UseDock", (unsigned short)m_nDockMode);
   switch(m_nDockMode)
Index: mainwin.h
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/mainwin.h,v
retrieving revision 1.130
diff -u -r1.130 mainwin.h
--- mainwin.h	2 Oct 2004 15:57:15 -0000	1.130
+++ mainwin.h	3 Oct 2004 02:44:40 -0000
@@ -158,6 +158,7 @@
        m_bPopLastOnline,
        m_bPopOnlineSince,
        m_bPopIdleTime,
+       m_bPopID,
        m_bShowAllEncodings,
        m_bTabbedChatting,
        m_bShowHistory,
Index: optionsdlg.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/optionsdlg.cpp,v
retrieving revision 1.142
diff -u -r1.142 optionsdlg.cpp
--- optionsdlg.cpp	2 Oct 2004 15:13:21 -0000	1.142
+++ optionsdlg.cpp	3 Oct 2004 02:44:44 -0000
@@ -232,6 +232,7 @@
   popLastOnline->setChecked(mainwin->m_bPopLastOnline);
   popOnlineSince->setChecked(mainwin->m_bPopOnlineSince);
   popIdleTime->setChecked(mainwin->m_bPopIdleTime);
+  popID->setChecked(mainwin->m_bPopID);
 
   switch(mainwin->m_nDockMode)
   {
@@ -512,6 +513,7 @@
   mainwin->m_bPopLastOnline= popLastOnline->isChecked();
   mainwin->m_bPopOnlineSince = popOnlineSince->isChecked();
   mainwin->m_bPopIdleTime = popIdleTime->isChecked();
+  mainwin->m_bPopID = popID->isChecked();
 
 
 #ifndef USE_KDE
@@ -1396,6 +1398,7 @@
   popLastOnline = new QCheckBox(tr("Last online"), boxPopWin);
   popOnlineSince = new QCheckBox(tr("Online Time"), boxPopWin);
   popIdleTime = new QCheckBox(tr("Idle Time"), boxPopWin);
+  popID = new QCheckBox(tr("ID"), boxPopWin);
 
 
   QVBoxLayout *g_main = new QVBoxLayout(w, 10, 5);
Index: optionsdlg.h
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/optionsdlg.h,v
retrieving revision 1.68
diff -u -r1.68 optionsdlg.h
--- optionsdlg.h	2 Oct 2004 15:13:21 -0000	1.68
+++ optionsdlg.h	3 Oct 2004 02:44:44 -0000
@@ -120,7 +120,7 @@
    QWidget* new_popup_options();
    QGroupBox *boxPopWin;
    QCheckBox *popEmail, *popPhone, *popFax, *popCellular, *popIP,
-	*popLastOnline, *popOnlineSince, *popIdleTime;
+	*popLastOnline, *popOnlineSince, *popIdleTime, *popID;
 
    // Phone & celluar tab
    QWidget* new_phone_options();
Index: userbox.cpp
===================================================================
RCS file: /cvsroot/licq/qt-gui/src/userbox.cpp,v
retrieving revision 1.159
diff -u -r1.159 userbox.cpp
--- userbox.cpp	2 Oct 2004 15:57:16 -0000	1.159
+++ userbox.cpp	3 Oct 2004 02:44:47 -0000
@@ -1563,6 +1563,16 @@
         tip (r, s);
       }
     }
+    
+    if (gMainWindow->m_bPopID)
+    {
+      char *szTemp;
+      szTemp = u->usprintf("%u");
+      QString temp(szTemp);
+      free(szTemp);
+      s += tr("<br><nobr>ID: ") + temp + tr("</nobr>");
+      tip (r, s);
+    }
 
     tip(r, s);
   }

Reply via email to