KVIrc
4.9.2
DeveloperAPIs
|
#include <KviActionManager.h>
Signals | |
void | beginCustomizeToolBars () |
void | currentToolBarChanged () |
void | endCustomizeToolBars () |
void | removeActionsHintRequest () |
Public Member Functions | |
KviPointerHashTable< QString, KviAction > * | actions () |
KviPointerHashTable< QString, KviActionCategory > * | categories () |
KviActionCategory * | category (const QString &szName) |
bool | coreActionExists (const QString &szName) |
void | emitRemoveActionsHintRequest () |
KviAction * | getAction (const QString &szName) |
void | killAllKvsUserActions () |
KviActionManager () | |
void | listActionsByCategory (const QString &szCatName, KviPointerList< KviAction > *pBuffer) |
void | load (const QString &szFileName) |
QString | nameForAutomaticAction (const QString &szTemplate) |
bool | registerAction (KviAction *a) |
void | save (const QString &szFileName) |
bool | unregisterAction (const QString &szName) |
~KviActionManager () | |
Static Public Member Functions | |
static KviActionCategory * | categoryChannel () |
static KviActionCategory * | categoryGeneric () |
static KviActionCategory * | categoryGUI () |
static KviActionCategory * | categoryIrc () |
static KviActionCategory * | categoryScripting () |
static KviActionCategory * | categorySettings () |
static KviActionCategory * | categoryTools () |
static KviCustomToolBar * | currentToolBar () |
static bool | customizingToolBars () |
static void | done () |
static void | init () |
static KviActionManager * | instance () |
static void | loadAllAvailableActions () |
Protected Slots | |
void | actionDestroyed () |
Protected Member Functions | |
void | customizeToolBarsDialogCreated () |
void | customizeToolBarsDialogDestroyed () |
void | delayedRegisterAccelerators () |
KviAction * | findAction (const QString &szName) |
void | setCurrentToolBar (KviCustomToolBar *t) |
void | tryFindCurrentToolBar () |
Protected Attributes | |
bool | m_bCoreActionsRegistered |
KviPointerHashTable< QString, KviAction > * | m_pActions |
KviPointerHashTable< QString, KviActionCategory > * | m_pCategories |
Static Protected Attributes | |
static bool | m_bCustomizingToolBars = false |
static KviActionCategory * | m_pCategoryChannel = nullptr |
static KviActionCategory * | m_pCategoryGeneric = nullptr |
static KviActionCategory * | m_pCategoryGUI = nullptr |
static KviActionCategory * | m_pCategoryIrc = nullptr |
static KviActionCategory * | m_pCategoryScripting = nullptr |
static KviActionCategory * | m_pCategorySettings = nullptr |
static KviActionCategory * | m_pCategoryTools = nullptr |
static KviCustomToolBar * | m_pCurrentToolBar = nullptr |
static KviActionManager * | m_pInstance = nullptr |
Friends | |
class | CustomizeToolBarsDialog |
class | KviActionDrawer |
class | KviCustomToolBar |
class | KviMainWindow |
KviActionManager::KviActionManager | ( | ) |
References __tr2qs, CATEGORY, m_bCoreActionsRegistered, m_bCustomizingToolBars, m_pActions, m_pCategories, m_pCategoryChannel, m_pCategoryGeneric, m_pCategoryGUI, m_pCategoryIrc, m_pCategoryScripting, m_pCategorySettings, m_pCategoryTools, m_pCurrentToolBar, and KviPointerHashTable< Key, T >::setAutoDelete().
Referenced by init().
KviActionManager::~KviActionManager | ( | ) |
References a, actionDestroyed(), KviPointerHashTableIterator< Key, T >::current(), m_pActions, and m_pCategories.
|
protectedslot |
References a, m_pActions, KviAction::name(), and KviPointerHashTable< Key, T >::remove().
Referenced by registerAction(), unregisterAction(), and ~KviActionManager().
|
inline |
Referenced by KviActionDrawer::fill().
|
signal |
Referenced by customizeToolBarsDialogCreated().
|
inline |
KviActionCategory * KviActionManager::category | ( | const QString & | szName | ) |
References c, KviPointerHashTable< Key, T >::find(), m_pCategories, and m_pCategoryGeneric.
Referenced by KviKvsUserAction::KviKvsUserAction(), listActionsByCategory(), and KviKvsUserAction::load().
|
inlinestatic |
|
inlinestatic |
Referenced by ActionEditor::ActionEditor(), KviActionDrawer::fill(), ActionEditor::newAction(), and register_core_actions().
|
inlinestatic |
|
inlinestatic |
Referenced by KviActionDrawer::fill(), and register_core_actions().
|
inlinestatic |
Referenced by register_core_actions().
|
inlinestatic |
Referenced by register_core_actions().
|
inlinestatic |
bool KviActionManager::coreActionExists | ( | const QString & | szName | ) |
|
inlinestatic |
|
signal |
Referenced by setCurrentToolBar().
|
protected |
|
protected |
References endCustomizeToolBars(), g_pApp, m_bCustomizingToolBars, m_pCurrentToolBar, and KviApplication::saveToolBars().
Referenced by CustomizeToolBarsDialog::~CustomizeToolBarsDialog().
|
inlinestatic |
|
protected |
References a, KviPointerHashTableIterator< Key, T >::current(), and m_pActions.
Referenced by KviMainWindow::createNewConsole().
|
static |
References m_pInstance.
Referenced by KviApplication::~KviApplication().
void KviActionManager::emitRemoveActionsHintRequest | ( | ) |
References removeActionsHintRequest().
Referenced by KviCustomToolBar::eventFilter().
|
signal |
Referenced by customizeToolBarsDialogDestroyed().
|
inlineprotected |
KviAction * KviActionManager::getAction | ( | const QString & | szName | ) |
References a, KviPointerHashTable< Key, T >::find(), g_pModuleManager, KviModuleManager::getModule(), m_bCoreActionsRegistered, m_pActions, register_core_actions(), and s.
Referenced by action_kvs_cmd_create(), action_kvs_cmd_destroy(), action_kvs_cmd_disable(), action_kvs_cmd_enable(), action_kvs_cmd_trigger(), action_kvs_fnc_isEnabled(), KviCustomToolBarDescriptor::addAction(), KviCustomToolBar::dragEnterEvent(), KviCustomToolBar::eventFilter(), CustomizeToolBarsDialog::exportToolBar(), KviCustomToolBarDescriptor::fillToolBar(), KviActionDrawerPageListWidget::mousePressEvent(), KviIrcToolsAction::popupAboutToShow(), and KviIrcOperationsAction::popupAboutToShow().
|
static |
References KviActionManager(), and m_pInstance.
Referenced by KviApplication::setup().
|
inlinestatic |
Referenced by action_kvs_cmd_create(), action_kvs_cmd_destroy(), action_kvs_cmd_disable(), action_kvs_cmd_enable(), action_kvs_cmd_list(), action_kvs_cmd_trigger(), action_kvs_fnc_exists(), action_kvs_fnc_isEnabled(), ActionEditor::ActionEditor(), KviCustomToolBarDescriptor::addAction(), SingleActionEditor::commit(), ActionEditor::commit(), KviMainWindow::createNewConsole(), CustomizeToolBarsDialog::currentToolBarChanged(), CustomizeToolBarsDialog::CustomizeToolBarsDialog(), KviCustomToolBar::dragEnterEvent(), KviCustomToolBar::eventFilter(), CustomizeToolBarsDialog::exportToolBar(), KviActionDrawer::fill(), KviCustomToolBarDescriptor::fillToolBar(), KviCustomToolBar::KviCustomToolBar(), KviKvsUserAction::KviKvsUserAction(), KviKvsUserAction::load(), loadAllAvailableActions(), KviActionDrawerPageListWidget::mousePressEvent(), CustomizeToolBarsDialog::newToolBar(), KviIrcToolsAction::popupAboutToShow(), KviIrcOperationsAction::popupAboutToShow(), KviDefaultScriptManager::restoreInternal(), KviApplication::saveActions(), KviApplication::setup(), SingleActionEditor::SingleActionEditor(), TrashcanLabel::TrashcanLabel(), KviMenuBar::updateActionsToolsPopup(), KviMenuBar::updateToolsPopup(), CustomizeToolBarsDialog::~CustomizeToolBarsDialog(), and KviCustomToolBar::~KviCustomToolBar().
void KviActionManager::killAllKvsUserActions | ( | ) |
void KviActionManager::listActionsByCategory | ( | const QString & | szCatName, |
KviPointerList< KviAction > * | pBuffer | ||
) |
References a, KviPointerList< T >::append(), category(), KviPointerList< T >::clear(), KviPointerHashTableIterator< Key, T >::current(), loadAllAvailableActions(), m_pActions, and KviPointerList< T >::setAutoDelete().
Referenced by KviMenuBar::updateActionsToolsPopup(), and KviMenuBar::updateToolsPopup().
void KviActionManager::load | ( | const QString & | szFileName | ) |
|
static |
References g_pModuleManager, instance(), KviModuleManager::loadModulesByCaps(), m_bCoreActionsRegistered, and register_core_actions().
Referenced by KviActionDrawer::fill(), and listActionsByCategory().
QString KviActionManager::nameForAutomaticAction | ( | const QString & | szTemplate | ) |
References KviPointerHashTable< Key, T >::find(), i, and m_pActions.
bool KviActionManager::registerAction | ( | KviAction * | a | ) |
References a, actionDestroyed(), connect(), KviPointerHashTable< Key, T >::find(), g_pMainWindow, KviPointerHashTable< Key, T >::insert(), m_pActions, KviAction::name(), and KviAction::registerAccelerator().
Referenced by action_kvs_cmd_create(), ActionEditor::commit(), load(), and register_core_actions().
|
signal |
Referenced by emitRemoveActionsHintRequest().
void KviActionManager::save | ( | const QString & | szFileName | ) |
|
protected |
References currentToolBarChanged(), KviCustomToolBarManager::firstExistingToolBar(), KviCustomToolBarManager::instance(), m_bCustomizingToolBars, m_pCurrentToolBar, and t().
Referenced by KviCustomToolBar::dragEnterEvent(), KviCustomToolBar::eventFilter(), CustomizeToolBarsDialog::newToolBar(), and KviCustomToolBar::~KviCustomToolBar().
|
protected |
bool KviActionManager::unregisterAction | ( | const QString & | szName | ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Referenced by getAction(), KviActionManager(), and loadAllAvailableActions().
|
staticprotected |
|
protected |
|
protected |
Referenced by category(), KviActionManager(), and ~KviActionManager().
|
staticprotected |
Referenced by KviActionManager().
|
staticprotected |
Referenced by category(), and KviActionManager().
|
staticprotected |
Referenced by KviActionManager().
|
staticprotected |
Referenced by KviActionManager().
|
staticprotected |
Referenced by KviActionManager().
|
staticprotected |
Referenced by KviActionManager().
|
staticprotected |
Referenced by KviActionManager().
|
staticprotected |
|
staticprotected |