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

#include <KviMenuBar.h>

+ Inheritance diagram for KviMenuBar:

Public Member Functions

void addMenu (const QString &text, KviKvsPopupMenu *p, int index)
 
int getDefaultItemRealIndex (int iDefaultIndex)
 
 KviMenuBar (KviMainWindow *par, const char *name)
 
bool removeMenu (const QString &text)
 
 ~KviMenuBar ()
 
- Public Member Functions inherited from KviTalMenuBar
 KviTalMenuBar (QWidget *pParent, const char *pcName)
 Constructs the menubar object. More...
 
 ~KviTalMenuBar ()
 Destroys the menubar object. More...
 

Protected Slots

void actionTriggered (QAction *pAction)
 
void actionTriggered (bool)
 
void menuDestroyed ()
 
void modulesToolsTriggered (QAction *pAction)
 
void newConnectionToServer (QAction *pAction)
 
void setupHelpPopup (QMenu *pop=0)
 
void setupMainPopup (QMenu *pop=0)
 
void setupScriptingPopup (QMenu *pop=0)
 
void setupSettingsPopup (QMenu *pop=0)
 
void setupToolsPopup (QMenu *pop=0)
 
void updateActionsToolsPopup ()
 
void updateMainPopup ()
 
void updateModulesToolsPopup ()
 
void updateRecentServersPopup ()
 
void updateSettingsPopup ()
 
void updateToolbarsPopup ()
 
void updateToolsPopup ()
 

Protected Member Functions

void addDefaultItem (const QString &text, QMenu *pop)
 
KviScriptMenuBarItemfindMenu (const QString &text)
 
KviScriptMenuBarItemfindMenu (KviKvsPopupMenu *p)
 

Protected Attributes

QAction * m_pActionsToolsAction
 
QMenu * m_pActionsToolsPopup
 
QAction * m_pDisconnectAction
 
KviMainWindowm_pFrm
 
QAction * m_pMenuBarAction
 
QAction * m_pModulesToolsAction
 
QMenu * m_pModulesToolsPopup
 
QMenu * m_pRecentServersPopup
 
KviPointerList
< KviScriptMenuBarItem > * 
m_pScriptItemList
 
QAction * m_pStatusBarAction
 
QMenu * m_pToolbarsPopup
 

Constructor & Destructor Documentation

KviMenuBar::KviMenuBar ( KviMainWindow par,
const char *  name 
)
KviMenuBar::~KviMenuBar ( )

References m_pScriptItemList.

Member Function Documentation

void KviMenuBar::actionTriggered ( QAction *  pAction)
protectedslot
void KviMenuBar::actionTriggered ( bool  )
protectedslot

References actionTriggered().

void KviMenuBar::addDefaultItem ( const QString &  text,
QMenu *  pop 
)
protected

Referenced by KviMenuBar().

void KviMenuBar::addMenu ( const QString &  text,
KviKvsPopupMenu p,
int  index 
)
KviScriptMenuBarItem * KviMenuBar::findMenu ( const QString &  text)
protected

References KviQString::equalCI(), i, and m_pScriptItemList.

Referenced by menuDestroyed(), and removeMenu().

KviScriptMenuBarItem * KviMenuBar::findMenu ( KviKvsPopupMenu p)
protected

References i, and m_pScriptItemList.

int KviMenuBar::getDefaultItemRealIndex ( int  iDefaultIndex)
void KviMenuBar::menuDestroyed ( )
protectedslot

References findMenu(), i, and m_pScriptItemList.

Referenced by addMenu(), and removeMenu().

void KviMenuBar::modulesToolsTriggered ( QAction *  pAction)
protectedslot
void KviMenuBar::newConnectionToServer ( QAction *  pAction)
protectedslot
bool KviMenuBar::removeMenu ( const QString &  text)
void KviMenuBar::setupHelpPopup ( QMenu *  pop = 0)
protectedslot
void KviMenuBar::setupMainPopup ( QMenu *  pop = 0)
protectedslot
void KviMenuBar::setupScriptingPopup ( QMenu *  pop = 0)
protectedslot
void KviMenuBar::setupSettingsPopup ( QMenu *  pop = 0)
protectedslot
void KviMenuBar::setupToolsPopup ( QMenu *  pop = 0)
protectedslot
void KviMenuBar::updateActionsToolsPopup ( )
protectedslot
void KviMenuBar::updateMainPopup ( )
protectedslot
void KviMenuBar::updateModulesToolsPopup ( )
protectedslot
void KviMenuBar::updateRecentServersPopup ( )
protectedslot
void KviMenuBar::updateSettingsPopup ( )
protectedslot
void KviMenuBar::updateToolbarsPopup ( )
protectedslot
void KviMenuBar::updateToolsPopup ( )
protectedslot

Member Data Documentation

QAction* KviMenuBar::m_pActionsToolsAction
protected
QMenu* KviMenuBar::m_pActionsToolsPopup
protected
QAction* KviMenuBar::m_pDisconnectAction
protected

Referenced by setupMainPopup(), and updateMainPopup().

KviMainWindow* KviMenuBar::m_pFrm
protected
QAction* KviMenuBar::m_pMenuBarAction
protected
QAction* KviMenuBar::m_pModulesToolsAction
protected
QMenu* KviMenuBar::m_pModulesToolsPopup
protected
QMenu* KviMenuBar::m_pRecentServersPopup
protected

Referenced by KviMenuBar(), and setupMainPopup().

KviPointerList<KviScriptMenuBarItem>* KviMenuBar::m_pScriptItemList
protected
QAction* KviMenuBar::m_pStatusBarAction
protected
QMenu* KviMenuBar::m_pToolbarsPopup
protected

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