KVIrc  4.9.2
DeveloperAPIs
Public Types | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
KviStatusBarClock Class Reference

#include <KviStatusBarApplet.h>

+ Inheritance diagram for KviStatusBarClock:

Public Types

enum  Format { HMS, HM }
 

Public Member Functions

 KviStatusBarClock (KviStatusBar *pParent, KviStatusBarAppletDescriptor *pDescriptor)
 
virtual ~KviStatusBarClock ()
 
- Public Member Functions inherited from KviStatusBarApplet
KviStatusBarAppletDescriptordescriptor ()
 
KviMainWindowframe ()
 
int index () const
 
 KviStatusBarApplet (KviStatusBar *pParent, KviStatusBarAppletDescriptor *pDescriptor)
 
void setIndex (int i)
 
KviStatusBarstatusBar ()
 
virtual ~KviStatusBarApplet ()
 

Static Public Member Functions

static void selfRegister (KviStatusBar *pBar)
 

Protected Slots

void changeFormat (QAction *)
 
void toggle24h ()
 
void toggleUtc ()
 

Protected Member Functions

void adjustMinWidth ()
 
virtual void fillContextPopup (QMenu *p)
 
virtual void loadState (const char *pcPrefix, KviConfigurationFile *pCfg)
 
virtual void saveState (const char *pcPrefix, KviConfigurationFile *pCfg)
 
virtual void timerEvent (QTimerEvent *e)
 
- Protected Member Functions inherited from KviStatusBarApplet
virtual QString tipText (const QPoint &)
 

Protected Attributes

bool m_b24h
 
bool m_bUtc
 
int m_iType
 
- Protected Attributes inherited from KviStatusBarApplet
KviStatusBarAppletDescriptorm_pDescriptor
 
KviStatusBarm_pStatusBar
 
int mIndex
 

Member Enumeration Documentation

Enumerator
HMS 
HM 

Constructor & Destructor Documentation

KviStatusBarClock::KviStatusBarClock ( KviStatusBar pParent,
KviStatusBarAppletDescriptor pDescriptor 
)

References adjustMinWidth(), HMS, m_b24h, m_bUtc, and m_iType.

KviStatusBarClock::~KviStatusBarClock ( )
virtualdefault

Member Function Documentation

void KviStatusBarClock::adjustMinWidth ( )
protected

References HMS, m_b24h, and m_iType.

Referenced by changeFormat(), KviStatusBarClock(), loadState(), and toggle24h().

void KviStatusBarClock::changeFormat ( QAction *  pAct)
protectedslot

References adjustMinWidth(), and m_iType.

Referenced by fillContextPopup().

void KviStatusBarClock::fillContextPopup ( QMenu *  p)
protectedvirtual
void KviStatusBarClock::loadState ( const char *  pcPrefix,
KviConfigurationFile pCfg 
)
protectedvirtual
void KviStatusBarClock::saveState ( const char *  pcPrefix,
KviConfigurationFile pCfg 
)
protectedvirtual
void KviStatusBarClock::selfRegister ( KviStatusBar pBar)
static
void KviStatusBarClock::timerEvent ( QTimerEvent *  e)
protectedvirtual

References HM, HMS, kvi_time_t, kvi_unixTime, m_b24h, m_bUtc, m_iType, and t().

Referenced by toggle24h(), and toggleUtc().

void KviStatusBarClock::toggle24h ( )
protectedslot

References adjustMinWidth(), m_b24h, and timerEvent().

Referenced by fillContextPopup().

void KviStatusBarClock::toggleUtc ( )
protectedslot

References m_bUtc, and timerEvent().

Referenced by fillContextPopup().

Member Data Documentation

bool KviStatusBarClock::m_b24h
protected
bool KviStatusBarClock::m_bUtc
protected
int KviStatusBarClock::m_iType
protected

The documentation for this class was generated from the following files: