KVIrc
4.9.2
DeveloperAPIs
|
#include <KviKvsPopupMenu.h>
Public Types | |
enum | Type { Item, Menu, Label, Separator, ExtMenu } |
Public Member Functions | |
virtual void | clear () |
virtual KviKvsPopupMenuItem * | clone () const =0 |
bool | evaluateCondition (KviKvsPopupMenuTopLevelData *pData) |
virtual void | fill (KviKvsPopupMenu *pMenu, KviKvsPopupMenuTopLevelData *pData, int iIdx)=0 |
bool | isExtMenu () |
bool | isItem () |
bool | isLabel () |
bool | isMenu () |
bool | isSeparator () |
virtual KviKvsScript * | kvsCode () |
KviKvsScript * | kvsCondition () |
virtual KviKvsScript * | kvsIcon () |
virtual KviKvsScript * | kvsText () |
const QString & | name () |
KviKvsPopupMenuItem::Type | type () |
virtual | ~KviKvsPopupMenuItem () |
Protected Member Functions | |
KviKvsPopupMenuItem (Type t, const QString &szItemName, const QString &szCondition) | |
KviKvsPopupMenuItem (Type t, const QString &szItemName, const KviKvsScript *pCondition) | |
Protected Attributes | |
Type | m_eType |
KviKvsScript * | m_pKvsCondition |
QString | m_szItemName |
Friends | |
class | KviKvsPopupMenu |
|
protected |
References KviKvsScript::Expression, m_eType, m_pKvsCondition, m_szItemName, and t().
|
protected |
References m_eType, m_pKvsCondition, m_szItemName, and t().
|
virtual |
References m_pKvsCondition.
|
virtual |
Reimplemented in KviKvsPopupMenuItemExtMenu, KviKvsPopupMenuItemMenu, and KviKvsPopupMenuItemLabel.
|
pure virtual |
bool KviKvsPopupMenuItem::evaluateCondition | ( | KviKvsPopupMenuTopLevelData * | pData | ) |
References __tr2qs_ctx(), KviKvsVariant::asBoolean(), KviKvsPopupMenuTopLevelData::extendedRunTimeData(), KVI_OUT_PARSERWARNING, m_pKvsCondition, KviWindow::output(), KviKvsPopupMenuTopLevelData::parameters(), KviKvsScript::PreserveParams, KviKvsScript::run(), and KviKvsPopupMenuTopLevelData::window().
Referenced by KviKvsPopupMenuItemSeparator::fill(), KviKvsPopupMenuItemLabel::fill(), KviKvsPopupMenuItemItem::fill(), KviKvsPopupMenuItemMenu::fill(), and KviKvsPopupMenuItemExtMenu::fill().
|
pure virtual |
|
inline |
|
inline |
Referenced by KviKvsPopupMenu::itemClicked().
|
inline |
|
inline |
|
inline |
|
virtual |
Reimplemented in KviKvsPopupMenuItemItem.
Referenced by SinglePopupEditor::findMatchingItem().
|
inline |
Referenced by SinglePopupEditor::findMatchingItem().
|
virtual |
Reimplemented in KviKvsPopupMenuItemWithTextAndIcon.
Referenced by SinglePopupEditor::findMatchingItem().
|
virtual |
Reimplemented in KviKvsPopupMenuItemWithTextAndIcon.
Referenced by SinglePopupEditor::findMatchingItem().
|
inline |
Referenced by SinglePopupEditor::findMatchingItem(), and KviKvsPopupMenu::itemClicked().
|
inline |
Referenced by SinglePopupEditor::findMatchingItem().
|
friend |
|
protected |
Referenced by KviKvsPopupMenuItem().
|
protected |
|
protected |