Changeset 5546

Show
Ignore:
Timestamp:
10/04/07 12:27:57 (13 months ago)
Author:
eugene
Message:

Added default AwaitingAuth? extended icon.

Location:
branches/qt-gui_qt4/src
Files:
1 added
6 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_qt4/src/config/iconmanager.cpp

    r5537 r5546  
    3838#include "xpm/itemCollapsed.xpm" 
    3939#include "xpm/itemExpanded.xpm" 
     40#include "xpm/pixAwaitingAuth.xpm" 
    4041#include "xpm/pixCustomAR.xpm" 
    4142#include "xpm/pixPhone.xpm" 
     
    212213  LOAD_ICON("Invisible",        InvisibleIcon,          pixInvisible_xpm); 
    213214  LOAD_ICON("Typing",           TypingIcon,             pixTyping_xpm); 
     215  LOAD_ICON("AwaitingAuth",     AwaitingAuthIcon,       pixAwaitingAuth_xpm); 
    214216  LOAD_ICON("ICQphoneActive",   IcqPhoneActiveIcon,     pixICQphoneActive_xpm); 
    215217  LOAD_ICON("ICQphoneBusy",     IcqPhoneBusyIcon,       pixICQphoneBusy_xpm); 
     
    235237    return myIconMap[icon]; 
    236238 
    237 printf("IconManager::getIcon - returning empty icon for %i\n", icon); 
     239  qWarning("IconManager::getIcon - returning empty icon for IconType=%i", icon); 
    238240  return myEmptyIcon; 
    239241} 
  • branches/qt-gui_qt4/src/config/iconmanager.h

    r5422 r5546  
    7373    InvisibleIcon, 
    7474    TypingIcon, 
     75    AwaitingAuthIcon, 
    7576    CustomArIcon, 
    7677    CollapsedIcon, 
  • branches/qt-gui_qt4/src/contactlist/contactlist.h

    r5528 r5546  
    143143    IcqPhoneBusyStatusBit, 
    144144    SharedFilesStatusBit, 
     145    AwaitingAuthBit, 
    145146    TypingStatusBit, 
    146147    SecureStatusBit, 
     
    164165  static const unsigned long IcqPhoneBusyStatus         = 1 << IcqPhoneBusyStatusBit; 
    165166  static const unsigned long SharedFilesStatus          = 1 << SharedFilesStatusBit; 
     167  static const unsigned long AwaitingAuthStatus         = 1 << AwaitingAuthBit; 
    166168  static const unsigned long TypingStatus               = 1 << TypingStatusBit; 
    167169  static const unsigned long SecureStatus               = 1 << SecureStatusBit; 
  • branches/qt-gui_qt4/src/contactlist/contactuserdata.cpp

    r5545 r5546  
    164164  myStatusFull = u->StatusFull(); 
    165165  myStatusInvisible = u->StatusInvisible(); 
     166  myStatusAwaitingAuth = u->GetAwaitingAuth(); 
    166167  myStatusTyping = u->GetTyping() == ICQ_TYPING_ACTIVE; 
    167168  myPhoneFollowMeStatus = u->PhoneFollowMeStatus(); 
     
    197198 
    198199  updateText(u); 
    199  
    200   myStatusFull = u->StatusFull(); 
    201  
    202200 
    203201  if (u->GetPicturePresent()) 
     
    316314    myExtendedStatus |= ContactListModel::SharedFilesStatus; 
    317315 
     316  if (myStatusAwaitingAuth) 
     317    myExtendedStatus |= ContactListModel::AwaitingAuthStatus; 
     318 
    318319  if (myCustomAR) 
    319320    myExtendedStatus |= ContactListModel::CustomArStatus; 
  • branches/qt-gui_qt4/src/contactlist/contactuserdata.h

    r5528 r5546  
    211211  unsigned long myStatusFull; 
    212212  int myEvents; 
    213   bool myStatusInvisible, myStatusTyping, myCustomAR, mySecure, myFlash, myBirthday, myPhone, myCellular, myGPGKey, myGPGKeyEnabled; 
     213  bool myStatusInvisible, myStatusTyping, myStatusAwaitingAuth, myCustomAR, mySecure; 
     214  bool myFlash, myBirthday, myPhone, myCellular, myGPGKey, myGPGKeyEnabled; 
    214215  bool myNewUser, myNotInList; 
    215216  bool myInIgnoreList, myInOnlineNotify, myInInvisibleList, myInVisibleList; 
  • branches/qt-gui_qt4/src/views/contactdelegate.cpp

    r5544 r5546  
    328328          && Config::ContactList::instance()->showExtendedIcons()) // ...+ extended icons are enabled 
    329329      { 
     330        // pmAwaitingAuth 
     331        if (extStatus & ContactListModel::AwaitingAuthStatus) 
     332          drawExtIcon(p, width, height, align, w, IconManager::AwaitingAuthIcon); 
     333 
    330334        // pmPhone 
    331335        if (extStatus & ContactListModel::PhoneStatus)