|
QAction * | addToCustomToolBar (KviCustomToolBar *pTool) override |
| Adds the action to the given toolbar.
|
|
bool | addToPopupMenu (QMenu *pMenu) override |
| Adds the action to the given popup.
|
|
| KviGoAwayAction (QObject *pParent) |
|
virtual void | activate () |
| Executes the action.
|
|
| KviKvsAction (QObject *pParent, const QString &szName, const QString &szScriptCode, const QString &szVisibleName, const QString &szDescription, KviActionCategory *pCategory=nullptr, const QString &szBigIconId=QString(), const QString &szSmallIconId=QString(), unsigned int uFlags=0, const QString &szKeySequence=QString()) |
| Constructs the action object.
|
|
| KviKvsAction (QObject *pParent, const QString &szName, const QString &szScriptCode, const QString &szVisibleName, const QString &szDescription, KviActionCategory *pCategory=nullptr, const QString &szBigIconId=QString(), KviIconManager::SmallIcon eSmallIcon=KviIconManager::None, unsigned int uFlags=0, const QString &szKeySequence=QString()) |
| Constructs the action object.
|
|
const QString & | scriptCode () |
| Returns the code of the script contained in the action.
|
|
virtual | ~KviKvsAction () |
| Destroys the action object.
|
|
QPixmap * | bigIcon () |
| Returns the big icon associated to the action.
|
|
const QString & | bigIconId () const |
| Returns the id of the big icon associated to the action.
|
|
KviActionCategory * | category () const |
| Returns the category of the action.
|
|
virtual const QString & | description () |
| Returns the description of the action.
|
|
unsigned int | flags () const |
| Returns the flag associated to the action.
|
|
bool | isEnabled () const |
| Returns true if the action is enabled.
|
|
virtual bool | isKviUserActionNeverOverrideThis () |
| Returns true if the action is user-defined.
|
|
const QString & | keySequence () const |
| Returns the shortcut of the action.
|
|
| KviAction (QObject *pParent, QString szName, QString szVisibleName, QString szDescription, KviActionCategory *pCategory=nullptr, QString szBigIconId=QString(), KviIconManager::SmallIcon eSmallIcon=KviIconManager::None, unsigned int uFlags=0, QString szKeySequence=QString()) |
| Constructs the action object.
|
|
| KviAction (QObject *pParent, QString szName, QString szVisibleName, QString szDescription, KviActionCategory *pCategory=nullptr, QString szBigIconId=QString(), QString szSmallIconId=QString(), unsigned int uFlags=0, QString szKeySequence=QString()) |
| Constructs the action object.
|
|
const QString & | name () const |
| Returns the name of the action.
|
|
virtual void | setEnabled (bool bEnabled) |
| Enables the action.
|
|
QPixmap * | smallIcon () |
| Returns the small icon associated to the action.
|
|
const QString & | smallIconId () const |
| Returns the id of the small icon associated to the action.
|
|
void | suicide () |
| Destroys itself. Maybe the best function in the whole APIs :)
|
|
virtual const QString & | visibleName () |
| Returns the visible name of the action.
|
|
virtual | ~KviAction () |
| Destroys the action object.
|
|
|
void | activeContextChanged () override |
| Enables or disables the action upon checking the active context.
|
|
void | activeContextStateChanged () override |
| Enables or disables the action upon checking the active context.
|
|
void | reloadImages () override |
| Reloads the images.
|
|
void | setup () override |
| Enables or disables the action upon starting KVIrc.
|
|
std::unordered_set< QAction * > const & | actionList () const |
| Returns the list of actions associated to the action.
|
|
void | registerAccelerator () |
| Registers the action shortcut in the application.
|
|
void | registerAction (QAction *pAction) |
| Adds the action to the list.
|
|
bool | setupDone () const |
| Returns true if the setup is finished.
|
|
void | unregisterAccelerator () |
| Removes the action shortcut from the application.
|
|
void KviGoAwayAction::activeContextChanged |
( |
| ) |
|
|
overrideprotectedvirtual |
Enables or disables the action upon checking the active context.
If the context doesn't exist, the action is disabled
Called when the frame changes the active context.
- Note
- It works only if NeedsContext is specified
- Returns
- void
Reimplemented from KviAction.