Small patch to add a sms icon to the user send dialog. Applies to latest
cvs. Attached the icon.

Regards.

diff -ur licq.orig/plugins/qt-gui/src/mainwin.cpp licq/plugins/qt-gui/src/mainwin.cpp
--- licq.orig/plugins/qt-gui/src/mainwin.cpp    Tue Aug 13 12:01:31 2002
+++ licq/plugins/qt-gui/src/mainwin.cpp Tue Aug 13 11:59:46 2002
@@ -2930,6 +2930,11 @@
    pmAuthorize.load(sFilepath);
    if(pmAuthorize.isNull()) pmAuthorize = pmMessage;
 
+   fIconsConf.ReadStr("SMS", sFilename, "");
+   snprintf(sFilepath, MAX_FILENAME_LEN, "%s%s", sIconPath, sFilename);
+   pmSMS.load(sFilepath);
+   if(pmSMS.isNull()) pmSMS = pmMessage;
+
    if (!_bInitial)
    {
      mnuStatus->changeItem(pmOnline, tr("&Online"), ICQ_STATUS_ONLINE);
@@ -2946,7 +2951,7 @@
      mnuUser->changeItem(pmFile, tr("Send &File Transfer"), mnuUserSendFile);
      mnuUser->changeItem(pmContact, tr("Send Contact &List"), mnuUserSendContact);
      mnuUser->changeItem(pmAuthorize, tr("Send &Authorization"), mnuUserAuthorize);
-     mnuUser->changeItem(tr("Send &SMS"), mnuUserSendSms);
+     mnuUser->changeItem(pmSMS, tr("Send &SMS"), mnuUserSendSms);
      mnuUser->changeItem(tr("Request &Secure Channel"), mnuUserSendKey);
      CUserView::UpdateFloaties();
      updateUserWin();
@@ -3097,7 +3102,7 @@
    mnuSend->insertItem(pmFile, tr("Send &File Transfer"), mnuUserSendFile);
    mnuSend->insertItem(pmContact, tr("Send Contact &List"), mnuUserSendContact);
    mnuSend->insertItem(pmAuthorize, tr("Send &Authorization"), mnuUserAuthorize);
-   mnuSend->insertItem(tr("Send &SMS"), mnuUserSendSms);
+   mnuSend->insertItem(pmSMS, tr("Send &SMS"), mnuUserSendSms);
    mnuSend->insertSeparator();
    mnuSend->insertItem(pmSecureOff, tr("Request &Secure Channel"), mnuUserSendKey);
    connect (mnuSend, SIGNAL(activated(int)), this, SLOT(callUserFunction(int)));
diff -ur licq.orig/plugins/qt-gui/src/mainwin.h licq/plugins/qt-gui/src/mainwin.h
--- licq.orig/plugins/qt-gui/src/mainwin.h      Tue Aug 13 12:03:07 2002
+++ licq/plugins/qt-gui/src/mainwin.h   Tue Aug 13 11:55:44 2002
@@ -184,7 +184,7 @@
   char *m_szIconSet;
   QPixmap pmOnline, pmOffline, pmAway, pmDnd, pmOccupied, pmNa,
           pmPrivate, pmFFC, pmMessage, pmUrl, pmChat, pmFile, pmContact, pmSms,
-          pmAuthorize, pmSecureOn, pmSecureOff, pmHistory, pmInfo, pmEncoding;
+          pmAuthorize, pmSMS, pmSecureOn, pmSecureOff, pmHistory, pmInfo, pmEncoding;
   unsigned long m_nUserMenuUin;
   unsigned int positionChanges;
 

Attachment: sms.xpm
Description: X pixmap

Reply via email to