KVIrc 5.2.6
Developer APIs
KviCustomToolBarDescriptor Class Reference

#include <KviCustomToolBarDescriptor.h>

Public Member Functions

KviPointerList< QString > * actions () const
 
bool addAction (const QString &szAction)
 
void clear ()
 
KviCustomToolBarcreateToolBar ()
 
const QString & iconId () const
 
const QString & id () const
 
int internalId () const
 
const QString & label ()
 
const QString & labelCode () const
 
bool removeAction (const QString &szAction)
 
bool removeAction (unsigned int iAction)
 
void rename (const QString &szNewName)
 
void setIconId (const QString &szIconId)
 
KviCustomToolBartoolBar () const
 
void updateToolBar ()
 
 ~KviCustomToolBarDescriptor ()
 

Protected Member Functions

void createLabelScript (const QString &szNewLabelCode)
 
void fillToolBar ()
 
 KviCustomToolBarDescriptor (QString szId, const QString &szLabelCode)
 
bool load (KviConfigurationFile *cfg)
 
void registerToolBar (KviCustomToolBar *t)
 
void save (KviConfigurationFile *cfg)
 
void unregisterToolBar (KviCustomToolBar *t)
 

Protected Attributes

bool m_bVisibleAtStartup = false
 
int m_iInternalId
 
KviPointerList< QString > * m_pActions
 
KviKvsScriptm_pLabelScript = nullptr
 
KviCustomToolBarm_pToolBar = nullptr
 
QString m_szIconId
 
QString m_szId
 
QString m_szParsedLabel
 

Friends

class KviCustomToolBar
 
class KviCustomToolBarManager
 

Constructor & Destructor Documentation

◆ KviCustomToolBarDescriptor()

KviCustomToolBarDescriptor::KviCustomToolBarDescriptor ( QString szId,
const QString & szLabelCode )
protected

◆ ~KviCustomToolBarDescriptor()

KviCustomToolBarDescriptor::~KviCustomToolBarDescriptor ( )

Member Function Documentation

◆ actions()

KviPointerList< QString > * KviCustomToolBarDescriptor::actions ( ) const
inline

References m_pActions.

◆ addAction()

bool KviCustomToolBarDescriptor::addAction ( const QString & szAction)

◆ clear()

void KviCustomToolBarDescriptor::clear ( )

References m_pActions, and m_pToolBar.

◆ createLabelScript()

void KviCustomToolBarDescriptor::createLabelScript ( const QString & szNewLabelCode)
protected

◆ createToolBar()

KviCustomToolBar * KviCustomToolBarDescriptor::createToolBar ( )

◆ fillToolBar()

◆ iconId()

const QString & KviCustomToolBarDescriptor::iconId ( ) const
inline

References m_szIconId.

◆ id()

const QString & KviCustomToolBarDescriptor::id ( ) const
inline

References m_szId.

◆ internalId()

int KviCustomToolBarDescriptor::internalId ( ) const
inline

References m_iInternalId.

◆ label()

const QString & KviCustomToolBarDescriptor::label ( )

◆ labelCode()

const QString & KviCustomToolBarDescriptor::labelCode ( ) const

References m_pLabelScript.

◆ load()

◆ registerToolBar()

void KviCustomToolBarDescriptor::registerToolBar ( KviCustomToolBar * t)
protected

◆ removeAction() [1/2]

bool KviCustomToolBarDescriptor::removeAction ( const QString & szAction)

References fillToolBar(), m_pActions, m_pToolBar, and s.

◆ removeAction() [2/2]

bool KviCustomToolBarDescriptor::removeAction ( unsigned int iAction)

References fillToolBar(), m_pActions, and m_pToolBar.

◆ rename()

void KviCustomToolBarDescriptor::rename ( const QString & szNewName)

◆ save()

void KviCustomToolBarDescriptor::save ( KviConfigurationFile * cfg)
protected

◆ setIconId()

void KviCustomToolBarDescriptor::setIconId ( const QString & szIconId)
inline

References m_szIconId.

◆ toolBar()

KviCustomToolBar * KviCustomToolBarDescriptor::toolBar ( ) const
inline

◆ unregisterToolBar()

void KviCustomToolBarDescriptor::unregisterToolBar ( KviCustomToolBar * t)
protected

References KviCustomToolBar, and m_pToolBar.

◆ updateToolBar()

void KviCustomToolBarDescriptor::updateToolBar ( )

References fillToolBar(), and m_pToolBar.

Friends And Related Symbol Documentation

◆ KviCustomToolBar

◆ KviCustomToolBarManager

Member Data Documentation

◆ m_bVisibleAtStartup

bool KviCustomToolBarDescriptor::m_bVisibleAtStartup = false
protected

◆ m_iInternalId

int KviCustomToolBarDescriptor::m_iInternalId
protected

◆ m_pActions

◆ m_pLabelScript

KviKvsScript* KviCustomToolBarDescriptor::m_pLabelScript = nullptr
protected

◆ m_pToolBar

◆ m_szIconId

QString KviCustomToolBarDescriptor::m_szIconId
protected

Referenced by iconId(), load(), save(), and setIconId().

◆ m_szId

QString KviCustomToolBarDescriptor::m_szId
protected

◆ m_szParsedLabel

QString KviCustomToolBarDescriptor::m_szParsedLabel
protected

Referenced by label().


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