![]() |
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, KviIconManager::getSmallIcon(), 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, KviWindowStack, KviStatusBar::load(), m_pMenuBar, m_pSplitter, m_pStatusBar, m_pWindowStack, r, setButtonStyle(), setIconSize(), x, and y.
KviMainWindow::~KviMainWindow | ( | ) |
References a, begin(), closeWindow(), end(), KviApplication::frameDestructorCallback(), g_pApp, g_pMainWindow, i, KviCustomToolBarManager::instance(), KviWindow::isConsole(), KVI_OPTION_BOOL, KVI_OPTION_RECT, KviOption_boolFrameIsMaximized, KviOption_boolShowDockExtension, KviOption_boolStatusBarVisible, KviOption_rectFrameGeometry, 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 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 |
Referenced by KviConnectAction::activate(), KviAction::activeContextChanged(), KviAction::activeContextStateChanged(), KviConnectAction::activeContextStateChanged(), KviAction::activeWindowChanged(), KviConnectAction::addToPopupMenu(), executeInternalCommand(), KviStatusBar::mouseDoubleClickEvent(), KviStatusBar::setPermanentMessage(), KviAction::setup(), KviStatusBar::tipRequest(), KviStatusBarAwayIndicator::updateDisplay(), KviStatusBarLagIndicator::updateDisplay(), and KviMenuBar::updateMainPopup().
|
signal |
Referenced by windowActivated().
|
signal |
Referenced by childContextStateChange().
|
signal |
Referenced by windowActivated().
|
signal |
Referenced by childWindowSelectionStateChange().
void KviMainWindow::addWindow | ( | KviWindow * | wnd, |
bool | bShow = true ) |
References KviWindow::context(), KviWindow::createWindowListItem(), dockWindow(), g_pActiveWindow, g_pWinPropertiesConfig, KviWindow::getConfigGroupName(), KviConfigurationFile::hasGroup(), KviWindow::isChannel(), KVI_OPTION_BOOL, KviOption_boolWindowsRememberProperties, KviWindow::loadProperties(), m_pActiveContext, m_pWindowStack, m_WinList, KviConfigurationFile::readBoolEntry(), KviConfigurationFile::setGroup(), KviWindowStack::showAndActivate(), KviWindow::triggerCreationEvents(), KviWindow::typeString(), windowActivated(), KviWindow::windowName(), and KviWindow::youAreUndocked().
Referenced by actioneditor_kvs_cmd_open(), DccBroker::activeVideoExecute(), DccBroker::activeVoiceExecute(), aliaseditor_kvs_cmd_open(), classeditor_kvs_cmd_open(), codetester_kvs_cmd_open(), KviIrcConnection::createChannel(), createNewConsole(), KviIrcConnection::createQuery(), eventeditor_kvs_cmd_open(), DccBroker::executeChat(), filetransferwindow_alloc(), KviDebugWindow::getInstance(), help_kvs_cmd_open(), KvsObject_window::init(), iograph_module_cmd_open(), links_kvs_cmd_open(), list_kvs_cmd_open(), logview_kvs_cmd_open(), DccBroker::passiveVideoExecute(), DccBroker::passiveVoiceExecute(), popupeditor_kvs_cmd_open(), raweditor_kvs_cmd_open(), sharedfileswindow_kvs_cmd_open(), socketspy_kvs_cmd_open(), term_kvs_cmd_open(), url_kvs_cmd_list(), and window_kvs_fnc_open().
|
protected |
|
protectedslot |
References setButtonStyle().
Referenced by KviToolBar::mousePressEvent().
|
overrideprotected |
|
protected |
References activeConnectionAwayStateChanged(), KviIrcConnection::context(), and m_pActiveContext.
Referenced by KviIrcConnection::changeAwayState().
|
protected |
References activeConnectionLagChanged(), KviIrcConnection::context(), and m_pActiveContext.
Referenced by KviLagMeter::timerEvent().
|
protected |
References activeConnectionNickNameChanged(), KviIrcConnection::context(), and m_pActiveContext.
Referenced by KviIrcConnection::nickChange().
|
protected |
References activeConnectionServerInfoChanged(), KviIrcConnection::context(), and m_pActiveContext.
Referenced by KviIrcConnection::serverInfoReceived().
|
protected |
References activeConnectionUserModeChanged(), KviIrcConnection::context(), and m_pActiveContext.
Referenced by KviIrcConnection::changeUserMode().
|
protected |
References activeContextStateChanged(), and m_pActiveContext.
Referenced by KviIrcContext::setState().
|
protected |
References closeWindow().
Referenced by KviWindow::closeEvent().
|
protected |
References activeWindowSelectionStateChanged(), and g_pActiveWindow.
Referenced by KviUserListView::insertUserEntry(), KviUserListViewArea::keyPressEvent(), KviUserListViewArea::mouseMoveEvent(), KviUserListViewArea::mousePressEvent(), KviUserListView::partInternal(), KviUserListView::removeAllEntries(), and KviUserListView::select().
|
protectedslot |
References KviWindow::delayedClose(), and g_pActiveWindow.
Referenced by installAccelerators().
|
overrideprotected |
void KviMainWindow::closeWindow | ( | KviWindow * | wnd | ) |
References consoleCount(), KviWindowStack::destroyWindow(), g_pActiveWindow, g_pApp, KviWindow::getConfigGroupName(), KviWindow::isConsole(), KviWindow::isDocked(), KVI_OPTION_BOOL, KviApplication::kviClosingDown(), KviEvent_OnFrameWindowDestroyed, KviEvent_OnKVIrcShutdown, KviOption_boolWindowsRememberProperties, KVS_TRIGGER_EVENT_0, m_pActiveContext, m_pWindowStack, m_WinList, saveWindowProperties(), KviWindow::triggerDestructionEvents(), and windowActivated().
Referenced by actioneditor_module_cleanup(), aliaseditor_module_cleanup(), childWindowCloseRequest(), classeditor_module_cleanup(), KviIrcContext::closeAllContextWindows(), KviIrcContext::closeAllDeadChannels(), KviIrcContext::closeAllDeadQueries(), eventeditor_module_cleanup(), filetransferwindow_module_cleanup(), iograph_module_cleanup(), logview_module_cleanup(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralPart(), popupeditor_module_cleanup(), raweditor_module_cleanup(), sharedfileswindow_module_cleanup(), and ~KviMainWindow().
int KviMainWindow::consoleCount | ( | ) |
References begin(), end(), m_WinList, and w.
Referenced by KviConsoleWindow::closeEvent(), and closeWindow().
|
overrideprotected |
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 KviApplication::createFrame(), KviKvsCoreSimpleCommands::KVSCSC(), newConsole(), and KviIrcUrl::run().
|
protected |
References KviWindowListBase::currentDockArea(), KVI_OPTION_BOOL, KviOption_boolUseTreeWindowList, and m_pWindowList.
Referenced by KviMainWindow(), and recreateWindowList().
|
slot |
References g_pActiveWindow, and KviKvsScript::run().
Referenced by fillToolBarsPopup().
|
protected |
References KviWindowStack::addWindow(), m_pWindowStack, and KviWindow::youAreDocked().
Referenced by addWindow(), and KviWindow::dock().
|
slot |
References activeContext(), KviIrcContext::console(), firstConsole(), kvi_getInternalCommandBuffer(), and KviKvsScript::run().
Referenced by KviMenuBar::actionTriggered(), changeEvent(), closeEvent(), KviApplication::createFrame(), KviTrayIconWidget::disableTrayIcon(), KviTrayIconWidget::executeInternalCommand(), KviIrcConnectionTargetResolver::haveServerIp(), hideEvent(), CustomizeToolBarsDialog::importToolBar(), KviIrcConnection::linkAttemptFailed(), KviIrcConnection::linkTerminated(), KviIrcConnection::loginComplete(), KviApplication::optionResetUpdate(), OptionsWidget_tray::setEnabled(), KviApplication::setup(), KviIrcConnection::start(), KviConsoleWindow::triggerCreationEvents(), and KviIrcConnection::~KviIrcConnection().
void KviMainWindow::fillIconSizePopup | ( | QMenu * | p | ) |
void KviMainWindow::fillToolBarsPopup | ( | QMenu * | p | ) |
References __tr2qs, connect(), KviPointerHashTableIterator< Key, T >::current(), customizeToolBars(), d, g_pIconManager, g_pModuleExtensionManager, KviModuleExtensionManager::getExtensionList(), KviIconManager::getImage(), KviIconManager::getSmallIcon(), KviCustomToolBarManager::instance(), l, moduleExtensionToolBar(), p, KviIconManager::ToolBarEditor, and toolbarsPopupSelected().
Referenced by KviToolBar::mousePressEvent(), and KviMenuBar::updateToolbarsPopup().
KviConsoleWindow * KviMainWindow::firstConsole | ( | ) |
References m_WinList.
Referenced by KviApplication::activeConsole(), KviApplication::createFrame(), dcc_kvs_parse_default_parameters(), DccChatWindow::event(), DccVideoWindow::event(), executeInternalCommand(), KviApplication::ipcMessage(), KviApplication::loadDefaultScript(), KviModuleManager::loadModule(), KviMenuBar::modulesToolsTriggered(), KviMenuBar::newConnectionToServer(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), restoreModuleExtensionToolBars(), toolbarsPopupSelected(), and KviModuleManager::unloadModule().
KviConsoleWindow * KviMainWindow::firstNotConnectedConsole | ( | ) |
References KviWindow::Console, and m_WinList.
Referenced by KviKvsCoreSimpleCommands::KVSCSC(), and KviIrcUrl::run().
void KviMainWindow::freeAccelleratorKeySequence | ( | const QString & | key | ) |
References m_pAccellerators.
Referenced by KviAction::registerAccelerator().
|
overrideprotected |
|
protectedslot |
References g_pApp, KviApplication::optionResetUpdate(), and setIconSize().
Referenced by 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 KviMainWindow().
|
inline |
Referenced by KviKvsCoreSimpleCommands::KVSCSC().
|
inline |
KviMexToolBar * KviMainWindow::moduleExtensionToolBar | ( | int | extensionId | ) |
References m_pModuleExtensionToolBarList, and t.
Referenced by fillToolBarsPopup(), and toolbarsPopupSelected().
|
overrideprotected |
References e, KVI_OPTION_RECT, KviOption_rectFrameGeometry, updatePseudoTransparency(), x, and y.
|
slot |
References createNewConsole().
|
protected |
References createWindowList(), g_pActiveWindow, m_pWindowList, m_WinList, KviWindowListBase::setActiveItem(), w, and KviWindow::windowListItem().
Referenced by KviApplication::optionResetUpdate(), and toggleWindowList().
|
protected |
References m_pModuleExtensionToolBarList, and t.
Referenced by KviMexToolBar::KviMexToolBar().
|
overrideprotected |
References e, KVI_OPTION_RECT, KviOption_rectFrameGeometry, x, and y.
|
protected |
|
private |
References KviApplication::Config, f, g_pApp, KviApplication::getLocalKvircDirectory(), KVI_CONFIGFILE_TOOLBARS, and m_pWindowList.
Referenced by createNewConsole().
|
protected |
References KVI_OPTION_STRINGLIST, KviOption_stringlistModuleExtensionToolbars, m_pModuleExtensionToolBarList, s, and t.
Referenced by ~KviMainWindow().
|
private |
References KviApplication::Config, f, g_pApp, KviApplication::getLocalKvircDirectory(), and KVI_CONFIGFILE_TOOLBARS.
Referenced by ~KviMainWindow().
void KviMainWindow::saveWindowProperties | ( | KviWindow * | wnd, |
const QString & | szSection ) |
References KviConfigurationFile::clearGroup(), KviPointerHashTableIterator< Key, T >::current(), KviPointerHashTableIterator< Key, T >::currentKey(), KviConfigurationFile::dict(), g_pWinPropertiesConfig, KviConfigurationFile::groupsCount(), KviWindow::isDocked(), KviWindow::saveProperties(), KviConfigurationFile::setGroup(), and KviConfigurationFile::writeEntry().
Referenced by closeWindow(), and KviWindow::savePropertiesAsDefault().
void KviMainWindow::setActiveWindow | ( | KviWindow * | wnd | ) |
References m_pWindowStack, and KviWindowStack::showAndActivate().
Referenced by KviWindow::autoRaise(), KviIrcConnection::createChannel(), KviIrcConnection::createQuery(), KviWindow::dock(), KviKvsCoreSimpleCommands::KVSCSC(), KviIrcView::mouseDoubleClickEvent(), NotifierWindowTab::mouseDoubleClickEvent(), KviTreeWindowListTreeWidget::mousePressEvent(), KviWindowListButton::mousePressEvent(), UrlDialog::sayToWin(), and KviWindowListBase::switchWindow().
void KviMainWindow::setButtonStyle | ( | unsigned int | uStyle | ) |
void KviMainWindow::setIconSize | ( | unsigned int | uSize | ) |
References KviPointerHashTableIterator< Key, T >::current(), d, KviCustomToolBarManager::instance(), KVI_OPTION_UINT, KviOption_uintToolBarIconSize, m_pModuleExtensionToolBarList, and t.
Referenced by iconSizePopupSelected(), and KviMainWindow().
|
inline |
References e, and m_pTrayIcon.
Referenced by KviTrayIconWidget::KviTrayIconWidget(), and KviTrayIconWidget::~KviTrayIconWidget().
|
inline |
|
protectedslot |
References m_pWindowList, and KviWindowListBase::switchWindow().
Referenced by installAccelerators().
|
protectedslot |
References m_pWindowList, and KviWindowListBase::switchWindow().
Referenced by installAccelerators().
|
protectedslot |
References m_pWindowList, and KviWindowListBase::switchWindow().
Referenced by installAccelerators().
|
protectedslot |
References m_pWindowList, and KviWindowListBase::switchWindow().
Referenced by installAccelerators().
|
protectedslot |
References m_pWindowList, and KviWindowListBase::switchWindow().
Referenced by installAccelerators().
|
protectedslot |
References m_pWindowList, and KviWindowListBase::switchWindow().
Referenced by installAccelerators().
|
slot |
|
slot |
References KviStatusBar::load(), and m_pStatusBar.
|
slot |
References applyOptions(), KVI_OPTION_BOOL, KviOption_boolUseTreeWindowList, and recreateWindowList().
|
protectedslot |
References KviModuleExtensionManager::allocateExtension(), KviCustomToolBarDescriptor::createToolBar(), KviCustomToolBarManager::findDescriptorByInternalId(), firstConsole(), g_pModuleExtensionManager, KviCustomToolBarManager::instance(), moduleExtensionToolBar(), t, and KviCustomToolBarDescriptor::toolBar().
Referenced by fillToolBarsPopup().
|
inline |
References m_pTrayIcon.
Referenced by KviClassicWindowList::addItem(), changeEvent(), KviIrcView::clearUnreaded(), closeEvent(), hideEvent(), KviTreeWindowListItem::highlight(), KviWindowListButton::highlight(), KviClassicWindowList::removeItem(), KviClassicWindowList::setActiveItem(), KviTreeWindowList::setActiveItem(), KviTreeWindowListItem::unhighlight(), and KviWindowListButton::unhighlight().
|
protected |
References m_pWindowStack, and KviWindow::youAreUndocked().
Referenced by KviWindow::undock().
|
protected |
References m_pModuleExtensionToolBarList, and t.
Referenced by KviMexToolBar::~KviMexToolBar().
|
protected |
References KVI_OPTION_UINT, KviOption_uintGlobalWindowOpacityPercent, m_pWindowList, m_pWindowStack, m_WinList, and KviWindowListBase::updatePseudoTransparency().
Referenced by moveEvent(), and KviApplication::updatePseudoTransparency().
void KviMainWindow::updateWindowTitle | ( | KviWindow * | wnd | ) |
References g_pActiveWindow, and KVI_DEFAULT_FRAME_CAPTION.
Referenced by KviWindow::setWindowTitle(), and windowActivated().
|
protected |
References activeContextChanged(), activeWindowChanged(), KviIrcView::clearUnreaded(), KviWindow::context(), g_pActiveWindow, KviEvent_OnWindowActivated, KVS_TRIGGER_EVENT_0, KviWindow::lostUserFocus(), m_pActiveContext, m_pWindowList, KviWindowListBase::setActiveItem(), updateWindowTitle(), KviWindow::view(), and KviWindow::windowListItem().
Referenced by addWindow(), changeEvent(), closeWindow(), KviWindowStack::currentWindowChanged(), KviWindow::eventFilter(), and KviWindow::focusInEvent().
|
inline |
|
inline |
Referenced by context_kvs_fnc_list(), UrlDialog::contextMenu(), and KviKvsCoreSimpleCommands::KVSCSC().
|
inline |
Referenced by KviTrayIconWidget::getToolTipText(), and KviTrayIconWidget::grabActivityInfo().
|
inline |
Referenced by KviMenuBar::KviMenuBar().
|
friend |
|
friend |
Referenced by createNewConsole().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Referenced by KviMainWindow().
|
protected |
Referenced by freeAccelleratorKeySequence(), and installAccelerators().
|
protected |
|
protected |
Referenced by applyOptions(), KviMainWindow(), and toggleMenuBar().
|
protected |
|
protected |
Referenced by KviMainWindow().
|
protected |
Referenced by KviMainWindow(), toggleStatusBar(), and ~KviMainWindow().
|
protected |
Referenced by ~KviMainWindow().
|
protected |
Referenced by applyOptions(), createWindowList(), KviWindow::createWindowListItem(), KviWindow::destroyWindowListItem(), recreateWindowList(), restoreToolBarPositions(), switchToNextHighlightedWindow(), switchToNextWindow(), switchToNextWindowInContext(), switchToPrevHighlightedWindow(), switchToPrevWindow(), switchToPrevWindowInContext(), updatePseudoTransparency(), and windowActivated().
|
protected |
Referenced by addWindow(), applyOptions(), closeWindow(), dockWindow(), KviMainWindow(), setActiveWindow(), undockWindow(), and updatePseudoTransparency().
|
protected |