1 #ifndef _KVI_KVS_POPUPMENU_H_
2 #define _KVI_KVS_POPUPMENU_H_
72 void setTestMode(
bool bTestMode) { m_bTestMode = bTestMode; };
107 const QString &
name() {
return m_szItemName; };
109 bool isItem() {
return m_eType == Item; };
113 bool isMenu() {
return m_eType == Menu; };
121 virtual void clear();
187 KviKvsPopupMenuItemLabel(
const QString & szItemName,
const QString & szText,
const QString & szIcon,
const QString & szCondition);
200 virtual void clear();
203 void labelDestroyed();
211 KviKvsPopupMenuItemItem(
const QString & szItemName,
const QString & szCode,
const QString & szText,
const QString & szIcon,
const QString & szCondition);
245 virtual void clear();
254 KviKvsPopupMenuItemExtMenu(
const QString & szItemName,
const QString & szMenuName,
const QString & szText,
const QString & szIcon,
const QString & szCondition);
264 const QString &
extName() {
return m_szMenuName; };
266 virtual void clear();
274 friend class KviSinglePopupEditor;
303 KviKvsPopupMenu * addPopup(
const QString & szItemName,
const QString & szText,
const QString & szIcon,
const QString & szCondition);
304 void addSeparator(
const QString & szItemName,
const QString & szCondition);
305 void addLabel(
const QString & szItemName,
const QString & szText,
const QString & szIcon,
const QString & szCondition);
306 void addItem(
const QString & szItemName,
const QString & szCode,
const QString & szText,
const QString & szIcon,
const QString & szCondition);
307 void addExtPopup(
const QString & szItemName,
const QString & szPopupName,
const QString & szText,
const QString & szIcon,
const QString & szCondition);
309 bool isEmpty() {
return m_pItemList->isEmpty() && m_pPrologues->isEmpty() && m_pEpilogues->isEmpty(); };
311 void addPrologue(
const QString & szItemName,
const QString & szCode);
312 void addEpilogue(
const QString & szItemName,
const QString & szCode);
313 bool removeItemByName(
const QString & szItemName,
bool bRecursive);
318 void generateDefPopup(QString & buffer);
320 void generateDefPopupCore(QString & buffer);
329 void setupMenuContents();
332 void clearMenuContents();
334 void itemClicked(QAction * pAction);
Definition: KviKvsPopupMenu.h:141
#define KVIRC_API
Definition: kvi_settings.h:128
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
The KVIrc Script class.
Definition: KviKvsScript.h:59
Definition: KviConfigurationFile.h:48
KviKvsScript * m_pKvsIcon
Definition: KviKvsPopupMenu.h:152
Definition: KviKvsRunTimeContext.h:43
bool save(KviThemeInfo &options, bool bSaveIcons)
Definition: KviOptions.cpp:986
QHashIterator< int, QFile * > t(getDict)
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
KviKvsScript * m_pKvsText
Definition: KviKvsPopupMenu.h:151
Parser class to handle variant variables lists.
Contains the KviWindow class.
Handling of hash data type in KVS.
This file contains compile time settings.
Helper functions for the QString class.