69 KviActionCategory(
const QString & szName,
const QString & szVisibleName,
const QString & szDescription);
81 const QString &
name() {
return m_szName; };
127 InternalWindowMask = WindowConsole | WindowChannel | WindowQuery | WindowDccChat,
129 WindowOnlyIfUsersSelected = 128
152 const QString & szName,
153 const QString & szVisibleName,
154 const QString & szDescription,
156 const QString & szBigIconId = QString(),
157 const QString & szSmallIconId = QString(),
158 unsigned int uFlags = 0,
159 const QString & szKeySequence = QString());
181 const QString & szName,
182 const QString & szVisibleName,
183 const QString & szDescription,
185 const QString & szBigIconId = QString(),
187 unsigned int uFlags = 0,
188 const QString & szKeySequence = QString());
215 static int validateFlags(
int iFlagsToValidate);
221 const QString &
name()
const {
return m_szName; };
227 virtual const QString & visibleName();
233 virtual const QString & description();
245 const QString &
bigIconId()
const {
return m_szBigIconId; };
269 unsigned int flags() {
return m_uFlags; };
276 virtual bool isKviUserActionNeverOverrideThis();
283 virtual void setEnabled(
bool bEnabled);
289 QPixmap * smallIcon();
302 virtual bool addToPopupMenu(QMenu * pMenu);
328 virtual void setup();
340 void registerAccelerator();
346 void unregisterAccelerator();
362 virtual void activate();
378 virtual void reloadImages();
389 virtual void activeContextChanged();
397 virtual void activeContextStateChanged();
405 virtual void activeWindowChanged();
415 virtual void activeWindowSelectionStateChanged(
bool bSelectedNow);
424 #endif // _KVI_ACTION_H_
const QString & name() const
Returns the name of the action.
Definition: KviAction.h:221
QString m_szKeySequence
Definition: KviAction.h:206
bool setupDone() const
Returns true if the setup is finished.
Definition: KviAction.h:322
void suicide()
Destroys itself. Maybe the best function in the whole APIs :)
Definition: KviAction.h:315
Flags
Holds the flags of an action.
Definition: KviAction.h:119
const QString & name()
Returns the name of the category.
Definition: KviAction.h:81
#define KVIRC_API
Definition: kvi_settings.h:128
Definition: KviAction.h:111
KviActionCategory * m_pCategory
Definition: KviAction.h:199
char * NULL
Definition: KviIrcNumericCodes.h:391
const QString & smallIconId() const
Returns the id of the small icon associated to the action.
Definition: KviAction.h:251
Holds the categories of an action.
Definition: KviAction.h:54
KviPointerList< QAction > * actionList()
Returns the list of actions associated to the action.
Definition: KviAction.h:334
const QString & description()
Returns the description of the category.
Definition: KviAction.h:93
Defines an action inside KVIrc.
Definition: KviAction.h:100
QString m_szSmallIconId
Definition: KviAction.h:201
QPointer< QShortcut > m_pAccel
Definition: KviAction.h:207
unsigned int flags()
Returns the flag associated to the action.
Definition: KviAction.h:269
void actionDestroyed()
Definition: KviActionManager.cpp:265
InternalFlags
Holds the internal flags of an action.
Definition: KviAction.h:109
Definition: KviActionManager.h:36
QString m_szDescription
Definition: KviAction.h:198
SmallIcon
Contains all KVIrc's small icons.
Definition: KviIconManager.h:168
QString m_szBigIconId
Definition: KviAction.h:200
const QString & keySequence() const
Returns the shortcut of the action.
Definition: KviAction.h:239
const QString & visibleName()
Returns the visible name of the category.
Definition: KviAction.h:87
KviIconManager::SmallIcon m_eSmallIcon
Definition: KviAction.h:202
Definition: KviIconManager.h:170
KviActionCategory * category() const
Returns the category of the action.
Definition: KviAction.h:257
bool isEnabled() const
Returns true if the action is enabled.
Definition: KviAction.h:263
C++ Template based double linked pointer list class.
bool registerAction(KviAction *a)
Definition: KviActionManager.cpp:254
const QString & bigIconId() const
Returns the id of the big icon associated to the action.
Definition: KviAction.h:245
QString m_szDescription
Definition: KviAction.h:59
QString m_szName
Definition: KviAction.h:57
QString m_szVisibleName
Definition: KviAction.h:58
QString m_szName
Definition: KviAction.h:196
KviPointerList< QAction > * m_pActionList
Definition: KviAction.h:203
This file contains compile time settings.
unsigned int m_uFlags
Definition: KviAction.h:205
unsigned short int m_uInternalFlags
Definition: KviAction.h:204
Definition: KviAction.h:112
QString m_szVisibleName
Definition: KviAction.h:197