![]() |
KVIrc 5.2.6
Developer APIs
|
#include <KviMainWindow.h>
Public Slots | |
void | customizeToolBars () |
void | executeInternalCommand (int index) |
void | newConsole () |
void | toggleMenuBar () |
void | toggleStatusBar () |
void | toggleWindowList () |
Signals | |
void | activeConnectionAwayStateChanged () |
void | activeConnectionLagChanged () |
void | activeConnectionNickNameChanged () |
void | activeConnectionServerInfoChanged () |
void | activeConnectionUserModeChanged () |
void | activeContextChanged () |
void | activeContextStateChanged () |
void | activeWindowChanged () |
void | activeWindowSelectionStateChanged (bool bGotSelectionNow) |
Protected Slots | |
void | accelActivated () |
void | buttonStylePopupSelected (QAction *pAction) |
void | closeActiveWindow () |
void | iconSizePopupSelected (QAction *pAction) |
void | switchToNextHighlightedWindow () |
void | switchToNextWindow () |
void | switchToNextWindowInContext () |
void | switchToPrevHighlightedWindow () |
void | switchToPrevWindow () |
void | switchToPrevWindowInContext () |
void | toolbarsPopupSelected (QAction *pAction) |
Protected Attributes | |
std::vector< QShortcut * > | m_pAccellerators |
KviIrcContext * | m_pActiveContext = nullptr |
KviMenuBar * | m_pMenuBar |
std::unordered_set< KviMexToolBar * > | m_pModuleExtensionToolBarList |
QSplitter * | m_pSplitter |
KviStatusBar * | m_pStatusBar = nullptr |
KviTrayIcon * | m_pTrayIcon = nullptr |
KviWindowListBase * | m_pWindowList = nullptr |
KviWindowStack * | m_pWindowStack |
std::list< KviWindow * > | m_WinList |
Private Member Functions | |
void | restoreToolBarPositions () |
void | saveToolBarPositions () |
Friends | |
class | KviApplication |
class | KviConsoleWindow |
class | KviIrcConnection |
class | KviIrcContext |
class | KviIrcServerParser |
class | KviLagMeter |
class | KviMexToolBar |
class | KviToolBar |
class | KviUserListView |
class | KviUserListViewArea |
class | KviWindow |
class | KviWindowStack |
KviMainWindow::KviMainWindow | ( | QWidget * | pParent | ) |
References applyOptions(), createWindowList(), g_pApp, g_pIconManager, g_pMainWindow, installAccelerators(), KVI_DEFAULT_FRAME_CAPTION, KVI_OPTION_BOOL, KVI_OPTION_RECT, KVI_OPTION_UINT, KviOption_boolFrameIsMaximized, KviOption_boolMenuBarVisible, KviOption_boolStatusBarVisible, KviOption_rectFrameGeometry, KviOption_uintToolBarButtonStyle, KviOption_uintToolBarIconSize, KviIconManager::KVIrc, KviTalMainWindow::KviTalMainWindow(), KviWindowStack, m_pMenuBar, m_pSplitter, m_pStatusBar, m_pWindowStack, r, setButtonStyle(), setIconSize(), x, and y.
Referenced by KviWindowStack.
KviMainWindow::~KviMainWindow | ( | ) |
References a, begin(), closeWindow(), end(), g_pApp, g_pMainWindow, i, KviCustomToolBarManager::instance(), KviWindow::isConsole(), KVI_OPTION_BOOL, KVI_OPTION_RECT, KviOption_boolFrameIsMaximized, KviOption_boolShowDockExtension, KviOption_boolStatusBarVisible, KviOption_rectFrameGeometry, KviWindow, m_pModuleExtensionToolBarList, m_pStatusBar, m_pTrayIcon, m_WinList, saveModuleExtensionToolBars(), saveToolBarPositions(), KviCustomToolBarManager::storeVisibilityState(), t, x, and y.
|
protectedslot |
References g_pActiveWindow, KviEvent_OnAccelKeyPressed, and KVS_TRIGGER_EVENT_1.
Referenced by fillIconSizePopup(), and installAccelerators().
KviIrcConnection * KviMainWindow::activeConnection | ( | ) |
|
signal |
Referenced by childConnectionAwayStateChange().
|
signal |
Referenced by childConnectionLagChange().
|
signal |
Referenced by childConnectionNickNameChange().
|
signal |
Referenced by childConnectionServerInfoChange().
|
signal |
Referenced by childConnectionUserModeChange().
|
inline |
References KviIrcContext, and m_pActiveContext.
Referenced by executeInternalCommand(), KviStatusBarAwayIndicator::updateDisplay(), and KviStatusBarLagIndicator::updateDisplay().
|
signal |
Referenced by windowActivated().
|
signal |
Referenced by childContextStateChange().
|
signal |
Referenced by windowActivated().
|
signal |
References applyOptions(), restoreToolBarPositions(), and saveToolBarPositions().
Referenced by childWindowSelectionStateChange().
void KviMainWindow::addWindow | ( | KviWindow * | wnd, |
bool | bShow = true ) |
References KviWindow::context(), KviWindow::createWindowListItem(), dockWindow(), g_pActiveWindow, g_pWinPropertiesConfig, KviWindow::getConfigGroupName(), KviWindow::isChannel(), KVI_OPTION_BOOL, KviOption_boolWindowsRememberProperties, KviWindow, KviWindow::loadProperties(), m_pActiveContext, m_pWindowStack, m_WinList, KviWindow::triggerCreationEvents(), KviWindow::typeString(), windowActivated(), KviWindow::windowName(), and KviWindow::youAreUndocked().
Referenced by createNewConsole().
|
protected |
References g_pTextIconManager, KVI_OPTION_BOOL, KviOption_boolMenuBarVisible, m_pMenuBar, m_pWindowList, m_pWindowStack, and m_WinList.
Referenced by activeWindowSelectionStateChanged(), KviMainWindow(), and toggleWindowList().
|
protectedslot |
References setButtonStyle().
Referenced by fillIconSizePopup(), and KviToolBar::mousePressEvent().
|
overrideprotected |
References e, executeInternalCommand(), g_pActiveWindow, KVI_INTERNALCOMMAND_TRAYICON_SHOW, KVI_OPTION_BOOL, KviOption_boolFrameIsMaximized, KviOption_boolMinimizeInTray, trayIcon(), and windowActivated().
Referenced by fillIconSizePopup().
|
protected |
References activeConnectionAwayStateChanged(), KviIrcConnection::context(), KviIrcConnection, KviIrcContext, and m_pActiveContext.
Referenced by fillIconSizePopup().
|
protected |
References activeConnectionLagChanged(), KviIrcConnection::context(), KviIrcConnection, KviIrcContext, and m_pActiveContext.
Referenced by fillIconSizePopup().
|
protected |
References activeConnectionNickNameChanged(), KviIrcConnection::context(), KviIrcConnection, KviIrcContext, and m_pActiveContext.
Referenced by fillIconSizePopup().
|
protected |
References activeConnectionServerInfoChanged(), KviIrcConnection::context(), KviIrcConnection, KviIrcContext, and m_pActiveContext.
Referenced by fillIconSizePopup().
|
protected |
References activeConnectionUserModeChanged(), KviIrcConnection::context(), KviIrcConnection, KviIrcContext, and m_pActiveContext.
Referenced by fillIconSizePopup().
|
protected |
References activeContextStateChanged(), KviIrcContext, and m_pActiveContext.
Referenced by fillIconSizePopup().
|
protected |
References closeWindow(), and KviWindow.
Referenced by fillIconSizePopup().
|
protected |
References activeWindowSelectionStateChanged(), g_pActiveWindow, and KviWindow.
Referenced by fillIconSizePopup().
|
protectedslot |
References g_pActiveWindow.
Referenced by fillIconSizePopup(), and installAccelerators().
|
overrideprotected |
void KviMainWindow::closeWindow | ( | KviWindow * | wnd | ) |
References consoleCount(), g_pActiveWindow, g_pApp, KviWindow::getConfigGroupName(), KviWindow::isConsole(), KviWindow::isDocked(), KVI_OPTION_BOOL, KviEvent_OnFrameWindowDestroyed, KviEvent_OnKVIrcShutdown, KviOption_boolWindowsRememberProperties, KviWindow, KVS_TRIGGER_EVENT_0, m_pActiveContext, m_pWindowStack, m_WinList, saveWindowProperties(), KviWindow::triggerDestructionEvents(), and windowActivated().
Referenced by childWindowCloseRequest(), and ~KviMainWindow().
int KviMainWindow::consoleCount | ( | ) |
|
overrideprotected |
Referenced by fillIconSizePopup().
KviConsoleWindow * KviMainWindow::createNewConsole | ( | bool | bFirstInFrame = false, |
bool | bShowIt = true ) |
References addWindow(), KviCustomToolBarManager::createToolBarsVisibleAtStartup(), KviActionManager::delayedRegisterAccelerators(), KviActionManager::instance(), KviCustomToolBarManager::instance(), KVI_CONSOLE_FLAG_FIRSTINFRAME, KviConsoleWindow, restoreModuleExtensionToolBars(), and restoreToolBarPositions().
Referenced by newConsole().
|
protected |
References KVI_OPTION_BOOL, KviOption_boolUseTreeWindowList, and m_pWindowList.
Referenced by fillIconSizePopup(), KviMainWindow(), and recreateWindowList().
|
slot |
References g_pActiveWindow, and KviKvsScript::run().
Referenced by fillIconSizePopup(), and fillToolBarsPopup().
|
protected |
References KviWindow, m_pWindowStack, and KviWindow::youAreDocked().
Referenced by addWindow(), and fillIconSizePopup().
|
slot |
References activeContext(), KviIrcContext::console(), firstConsole(), kvi_getInternalCommandBuffer(), KviConsoleWindow, and KviKvsScript::run().
Referenced by changeEvent(), closeEvent(), fillIconSizePopup(), and hideEvent().
void KviMainWindow::fillIconSizePopup | ( | QMenu * | p | ) |
References accelActivated(), buttonStylePopupSelected(), changeEvent(), childConnectionAwayStateChange(), childConnectionLagChange(), childConnectionNickNameChange(), childConnectionServerInfoChange(), childConnectionUserModeChange(), childContextStateChange(), childWindowCloseRequest(), childWindowSelectionStateChange(), closeActiveWindow(), closeEvent(), contextMenuEvent(), createWindowList(), customizeToolBars(), dockWindow(), e, executeInternalCommand(), focusNextPrevChild(), freeAccelleratorKeySequence(), hideEvent(), iconSizePopupSelected(), installAccelerators(), KviIrcConnection, KviIrcContext, KviMexToolBar, KviWindow, moveEvent(), newConsole(), p, recreateWindowList(), registerModuleExtensionToolBar(), resizeEvent(), restoreModuleExtensionToolBars(), saveModuleExtensionToolBars(), setButtonStyle(), setIconSize(), switchToNextHighlightedWindow(), switchToNextWindow(), switchToNextWindowInContext(), switchToPrevHighlightedWindow(), switchToPrevWindow(), switchToPrevWindowInContext(), t, toggleMenuBar(), toggleStatusBar(), toggleWindowList(), toolbarsPopupSelected(), undockWindow(), unregisterModuleExtensionToolBar(), updatePseudoTransparency(), updateWindowTitle(), and windowActivated().
void KviMainWindow::fillToolBarsPopup | ( | QMenu * | p | ) |
KviConsoleWindow * KviMainWindow::firstConsole | ( | ) |
References KviConsoleWindow, and m_WinList.
Referenced by executeInternalCommand(), restoreModuleExtensionToolBars(), and toolbarsPopupSelected().
KviConsoleWindow * KviMainWindow::firstNotConnectedConsole | ( | ) |
References KviWindow::Console, KviConsoleWindow, and m_WinList.
|
overrideprotected |
Referenced by fillIconSizePopup().
void KviMainWindow::freeAccelleratorKeySequence | ( | const QString & | key | ) |
References m_pAccellerators.
Referenced by fillIconSizePopup().
|
overrideprotected |
References e, executeInternalCommand(), KVI_INTERNALCOMMAND_TRAYICON_SHOW, KVI_OPTION_BOOL, KviOption_boolFrameIsMaximized, KviOption_boolMinimizeInTray, and trayIcon().
Referenced by fillIconSizePopup().
|
protectedslot |
References g_pApp, and setIconSize().
Referenced by fillIconSizePopup(), and KviToolBar::mousePressEvent().
|
protected |
References accelActivated(), closeActiveWindow(), KviShortcut::create(), KVI_SHORTCUTS_WIN_CLOSE, KVI_SHORTCUTS_WIN_NEXT, KVI_SHORTCUTS_WIN_NEXT_CONTEXT, KVI_SHORTCUTS_WIN_NEXT_HIGHLIGHT, KVI_SHORTCUTS_WIN_NEXT_TAB, KVI_SHORTCUTS_WIN_PREV, KVI_SHORTCUTS_WIN_PREV_CONTEXT, KVI_SHORTCUTS_WIN_PREV_HIGHLIGHT, KVI_SHORTCUTS_WIN_PREV_TAB, m_pAccellerators, switchToNextHighlightedWindow(), switchToNextWindow(), switchToNextWindowInContext(), switchToPrevHighlightedWindow(), switchToPrevWindow(), and switchToPrevWindowInContext().
Referenced by fillIconSizePopup(), and KviMainWindow().
|
inline |
References m_pMenuBar.
|
inline |
References m_pStatusBar.
KviMexToolBar * KviMainWindow::moduleExtensionToolBar | ( | int | extensionId | ) |
References KviMexToolBar, m_pModuleExtensionToolBarList, and t.
Referenced by fillToolBarsPopup(), and toolbarsPopupSelected().
|
overrideprotected |
References e, KVI_OPTION_RECT, KviOption_rectFrameGeometry, updatePseudoTransparency(), x, and y.
Referenced by fillIconSizePopup().
|
slot |
References createNewConsole().
Referenced by fillIconSizePopup().
|
protected |
References createWindowList(), g_pActiveWindow, m_pWindowList, m_WinList, and w.
Referenced by fillIconSizePopup(), and toggleWindowList().
|
protected |
References KviMexToolBar, m_pModuleExtensionToolBarList, and t.
Referenced by fillIconSizePopup().
|
overrideprotected |
References e, KVI_OPTION_RECT, KviOption_rectFrameGeometry, x, and y.
Referenced by fillIconSizePopup().
|
protected |
References firstConsole(), g_pModuleExtensionManager, KVI_OPTION_STRINGLIST, and KviOption_stringlistModuleExtensionToolbars.
Referenced by createNewConsole(), and fillIconSizePopup().
|
private |
References KviApplication::Config, f, g_pApp, KVI_CONFIGFILE_TOOLBARS, and m_pWindowList.
Referenced by activeWindowSelectionStateChanged(), and createNewConsole().
|
protected |
References KVI_OPTION_STRINGLIST, KviOption_stringlistModuleExtensionToolbars, m_pModuleExtensionToolBarList, s, and t.
Referenced by fillIconSizePopup(), and ~KviMainWindow().
|
private |
References KviApplication::Config, f, g_pApp, and KVI_CONFIGFILE_TOOLBARS.
Referenced by activeWindowSelectionStateChanged(), and ~KviMainWindow().
void KviMainWindow::saveWindowProperties | ( | KviWindow * | wnd, |
const QString & | szSection ) |
void KviMainWindow::setActiveWindow | ( | KviWindow * | wnd | ) |
References KviWindow, and m_pWindowStack.
void KviMainWindow::setButtonStyle | ( | unsigned int | uStyle | ) |
void KviMainWindow::setIconSize | ( | unsigned int | uSize | ) |
|
inline |
References e, and m_pTrayIcon.
|
inline |
References m_pSplitter.
|
protectedslot |
References m_pWindowList.
Referenced by fillIconSizePopup(), and installAccelerators().
|
protectedslot |
References m_pWindowList.
Referenced by fillIconSizePopup(), and installAccelerators().
|
protectedslot |
References m_pWindowList.
Referenced by fillIconSizePopup(), and installAccelerators().
|
protectedslot |
References m_pWindowList.
Referenced by fillIconSizePopup(), and installAccelerators().
|
protectedslot |
References m_pWindowList.
Referenced by fillIconSizePopup(), and installAccelerators().
|
protectedslot |
References m_pWindowList.
Referenced by fillIconSizePopup(), and installAccelerators().
|
slot |
References __tr2qs, KVI_OPTION_BOOL, KVI_SHORTCUTS_TOGGLE_MENU_BAR, KviOption_boolMenuBarVisible, KviOption_boolWarnAboutHidingMenuBar, and m_pMenuBar.
Referenced by fillIconSizePopup().
|
slot |
References m_pStatusBar.
Referenced by fillIconSizePopup().
|
slot |
References applyOptions(), KVI_OPTION_BOOL, KviOption_boolUseTreeWindowList, and recreateWindowList().
Referenced by fillIconSizePopup().
|
protectedslot |
References KviCustomToolBarDescriptor::createToolBar(), KviCustomToolBarManager::findDescriptorByInternalId(), firstConsole(), g_pModuleExtensionManager, KviCustomToolBarManager::instance(), KviMexToolBar, moduleExtensionToolBar(), t, and KviCustomToolBarDescriptor::toolBar().
Referenced by fillIconSizePopup(), and fillToolBarsPopup().
|
inline |
References m_pTrayIcon.
Referenced by changeEvent(), closeEvent(), and hideEvent().
|
protected |
References KviWindow, m_pWindowStack, and KviWindow::youAreUndocked().
Referenced by fillIconSizePopup().
|
protected |
References KviMexToolBar, m_pModuleExtensionToolBarList, and t.
Referenced by fillIconSizePopup().
|
protected |
References KVI_OPTION_UINT, KviOption_uintGlobalWindowOpacityPercent, m_pWindowList, m_pWindowStack, and m_WinList.
Referenced by fillIconSizePopup(), and moveEvent().
void KviMainWindow::updateWindowTitle | ( | KviWindow * | wnd | ) |
References g_pActiveWindow, KVI_DEFAULT_FRAME_CAPTION, and KviWindow.
Referenced by fillIconSizePopup(), and windowActivated().
|
protected |
References activeContextChanged(), activeWindowChanged(), KviWindow::context(), g_pActiveWindow, KviEvent_OnWindowActivated, KviWindow, KVS_TRIGGER_EVENT_0, m_pActiveContext, m_pWindowList, updateWindowTitle(), and KviWindow::windowListItem().
Referenced by addWindow(), changeEvent(), closeWindow(), and fillIconSizePopup().
|
inline |
|
inline |
References m_pWindowList.
|
inline |
References KviWindowStack, and m_pWindowStack.
Referenced by KviMenuBar::KviMenuBar().
|
friend |
References KviApplication.
Referenced by KviApplication.
|
friend |
References KviConsoleWindow.
Referenced by createNewConsole(), executeInternalCommand(), firstConsole(), firstNotConnectedConsole(), and KviConsoleWindow.
|
friend |
|
friend |
|
friend |
References KviIrcServerParser.
Referenced by KviIrcServerParser.
|
friend |
References KviLagMeter.
Referenced by KviLagMeter.
|
friend |
References KviMexToolBar.
Referenced by fillIconSizePopup(), KviMexToolBar, moduleExtensionToolBar(), registerModuleExtensionToolBar(), toolbarsPopupSelected(), and unregisterModuleExtensionToolBar().
|
friend |
References KviToolBar.
Referenced by KviToolBar.
|
friend |
References KviUserListView.
Referenced by KviUserListView.
|
friend |
References KviUserListViewArea.
Referenced by KviUserListViewArea.
|
friend |
References KviWindow.
Referenced by addWindow(), childWindowCloseRequest(), childWindowSelectionStateChange(), closeWindow(), consoleCount(), dockWindow(), fillIconSizePopup(), KviWindow, saveWindowProperties(), setActiveWindow(), undockWindow(), updateWindowTitle(), windowActivated(), windowExists(), and ~KviMainWindow().
|
friend |
References KviMainWindow(), and KviWindowStack.
Referenced by KviMainWindow(), KviWindowStack, and windowStack().
|
protected |
Referenced by freeAccelleratorKeySequence(), and installAccelerators().
|
protected |
|
protected |
Referenced by applyOptions(), KviMainWindow(), mainMenuBar(), and toggleMenuBar().
|
protected |
|
protected |
Referenced by KviMainWindow(), and splitter().
|
protected |
Referenced by KviMainWindow(), mainStatusBar(), toggleStatusBar(), and ~KviMainWindow().
|
protected |
Referenced by setTrayIcon(), trayIcon(), and ~KviMainWindow().
|
protected |
Referenced by applyOptions(), createWindowList(), recreateWindowList(), restoreToolBarPositions(), switchToNextHighlightedWindow(), switchToNextWindow(), switchToNextWindowInContext(), switchToPrevHighlightedWindow(), switchToPrevWindow(), switchToPrevWindowInContext(), updatePseudoTransparency(), windowActivated(), and windowListWidget().
|
protected |
Referenced by addWindow(), applyOptions(), closeWindow(), dockWindow(), KviMainWindow(), setActiveWindow(), undockWindow(), updatePseudoTransparency(), and windowStack().
|
protected |