KVIrc
4.9.2
DeveloperAPIs
|
#include <KviMainWindow.h>
Public Slots | |
void | customizeToolBars () |
void | executeInternalCommand (int index) |
void | newConsole () |
void | toggleMenuBar () |
void | toggleStatusBar () |
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 | |
KviPointerList< QShortcut > * | m_pAccellerators |
KviIrcContext * | m_pActiveContext |
KviMenuBar * | m_pMenuBar |
KviPointerList< KviMexToolBar > * | m_pModuleExtensionToolBarList |
QSplitter * | m_pSplitter |
KviStatusBar * | m_pStatusBar |
KviTrayIcon * | m_pTrayIcon |
KviWindowListBase * | m_pWindowList |
KviWindowStack * | m_pWindowStack |
KviPointerList< KviWindow > * | m_pWinList |
Private Member Functions | |
void | restoreToolBarPositions () |
void | saveToolBarPositions () |
Friends | |
class | KviApplication |
class | KviConsoleWindow |
class | KviIrcConnection |
class | KviIrcContext |
class | KviIrcServerParser |
class | KviLagMeter |
class | KviMexToolBar |
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_pAccellerators, m_pActiveContext, m_pMenuBar, m_pModuleExtensionToolBarList, m_pSplitter, m_pStatusBar, m_pTrayIcon, m_pWindowList, m_pWindowStack, m_pWinList, KviMemory::move(), r, KviPointerList< T >::setAutoDelete(), setButtonStyle(), setIconSize(), x, and y.
KviMainWindow::~KviMainWindow | ( | ) |
References KviPointerList< T >::at(), closeWindow(), KviWindow::Console, KviPointerList< T >::count(), KviTrayIcon::die(), KviPointerList< T >::first(), KviApplication::frameDestructorCallback(), g_pApp, g_pMainWindow, i, KviCustomToolBarManager::instance(), KVI_OPTION_BOOL, KVI_OPTION_RECT, KviOption_boolFrameIsMaximized, KviOption_boolShowDockExtension, KviOption_boolStatusBarVisible, KviOption_rectFrameGeometry, m_pAccellerators, m_pModuleExtensionToolBarList, m_pStatusBar, m_pTrayIcon, m_pWinList, saveModuleExtensionToolBars(), saveToolBarPositions(), KviCustomToolBarManager::storeVisibilityState(), t(), KviWindow::type(), x, and y.
|
protectedslot |
References g_pActiveWindow, KviEvent_OnAccelKeyPressed, KVS_TRIGGER_EVENT_1, and KviStringConversion::toString().
Referenced by installAccelerators().
KviIrcConnection * KviMainWindow::activeConnection | ( | ) |
|
signal |
|
signal |
Referenced by childConnectionLagChange(), and KviStatusBarLagIndicator::KviStatusBarLagIndicator().
|
signal |
Referenced by childConnectionNickNameChange().
|
signal |
Referenced by childConnectionServerInfoChange().
|
signal |
Referenced by childConnectionUserModeChange().
|
inline |
Referenced by KviConnectAction::activate(), KviAction::activeContextChanged(), KviConnectAction::activeContextStateChanged(), KviGoAwayAction::activeContextStateChanged(), KviAction::activeContextStateChanged(), KviAction::activeWindowChanged(), KviConnectAction::addToPopupMenu(), KviGoAwayAction::addToPopupMenu(), executeInternalCommand(), KviStatusBar::mouseDoubleClickEvent(), KviStatusBar::setPermanentMessage(), KviAction::setup(), KviStatusBar::tipRequest(), KviStatusBarAwayIndicator::updateDisplay(), KviStatusBarLagIndicator::updateDisplay(), and KviMenuBar::updateMainPopup().
|
signal |
|
signal |
|
signal |
Referenced by windowActivated().
|
signal |
Referenced by childWindowSelectionStateChange().
void KviMainWindow::addWindow | ( | KviWindow * | wnd, |
bool | bShow = true |
||
) |
References KviPointerList< T >::append(), KviWindow::Channel, KviWindow::context(), KviWindow::createWindowListItem(), dockWindow(), g_pActiveWindow, KviWindow::getConfigGroupName(), KviConfigurationFile::hasGroup(), KVI_OPTION_BOOL, KviOption_boolWindowsRememberProperties, KviWindow::loadProperties(), m_pActiveContext, m_pWindowStack, m_pWinList, KviConfigurationFile::readBoolEntry(), KviConfigurationFile::setGroup(), KviWindowStack::showAndActivate(), KviWindow::triggerCreationEvents(), KviWindow::type(), 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 |
References KviWindowListBase::applyOptions(), KviTextIconManager::applyOptions(), KviPointerList< T >::first(), g_pTextIconManager, KVI_OPTION_BOOL, KviOption_boolMenuBarVisible, m_pMenuBar, m_pWindowList, m_pWindowStack, m_pWinList, and KviPointerList< T >::next().
Referenced by KviMainWindow(), and KviApplication::updateGui().
|
protectedslot |
References setButtonStyle().
|
protectedvirtual |
|
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().
|
protectedvirtual |
References __tr2qs, KviWindow::Console, executeInternalCommand(), KviPointerList< T >::first(), g_pApp, KVI_INTERNALCOMMAND_TRAYICON_SHOW, KVI_OPTION_BOOL, KviOption_boolCloseInTray, KviOption_boolConfirmCloseWhenThereAreConnections, KviOption_boolFrameIsMaximized, m_pWinList, KviPointerList< T >::next(), KviApplication::setKviClosingDown(), trayIcon(), w, and KviMessageBox::warning().
void KviMainWindow::closeWindow | ( | KviWindow * | wnd | ) |
References consoleCount(), KviWindowStack::destroyWindow(), KviPointerList< T >::first(), g_pActiveWindow, g_pApp, KviWindow::getConfigGroupName(), KviWindow::isDocked(), KVI_OPTION_BOOL, KviApplication::kviClosingDown(), KviEvent_OnFrameWindowDestroyed, KviEvent_OnKVIrcShutdown, KviOption_boolWindowsRememberProperties, KVS_TRIGGER_EVENT_0, m_pActiveContext, m_pWindowStack, m_pWinList, KviPointerList< T >::next(), KviPointerList< T >::removeRef(), 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().
unsigned int KviMainWindow::consoleCount | ( | ) |
References KviWindow::Console, KviPointerList< T >::first(), m_pWinList, and KviPointerList< T >::next().
Referenced by KviConsoleWindow::closeEvent(), and closeWindow().
|
protectedvirtual |
KviConsoleWindow * KviMainWindow::createNewConsole | ( | bool | bFirstInFrame = false , |
bool | bShowIt = true |
||
) |
References addWindow(), c, KviCustomToolBarManager::createToolBarsVisibleAtStartup(), KviActionManager::delayedRegisterAccelerators(), KviCustomToolBarManager::instance(), KviActionManager::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(), KviIrcView::console(), firstConsole(), kvi_getInternalCommandBuffer(), and KviKvsScript::run().
Referenced by KviMenuBar::actionTriggered(), changeEvent(), closeEvent(), KviApplication::createFrame(), KviTrayIconWidget::disableTrayIcon(), KviTrayIconWidget::executeInternalCommand(), ThemeManagementDialog::getMoreThemes(), KviIrcConnectionTargetResolver::haveServerIp(), hideEvent(), 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, KviPointerList< T >::first(), g_pIconManager, g_pModuleExtensionManager, KviModuleExtensionManager::getExtensionList(), KviIconManager::getImage(), KviIconManager::getSmallIcon(), KviCustomToolBarManager::instance(), l, moduleExtensionToolBar(), KviPointerList< T >::next(), KviIconManager::ToolBarEditor, and toolbarsPopupSelected().
Referenced by KviToolBar::mousePressEvent(), and KviMenuBar::updateToolbarsPopup().
KviConsoleWindow * KviMainWindow::firstConsole | ( | ) |
References KviWindow::Console, KviPointerList< T >::first(), m_pWinList, and KviPointerList< T >::next().
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, KviPointerList< T >::first(), m_pWinList, and KviPointerList< T >::next().
Referenced by KviKvsCoreSimpleCommands::KVSCSC(), and KviIrcUrl::run().
void KviMainWindow::freeAccelleratorKeySequence | ( | QString & | key | ) |
References KviPointerList< T >::first(), m_pAccellerators, KviPointerList< T >::next(), and KviPointerList< T >::removeRef().
Referenced by KviAction::registerAccelerator().
|
protectedvirtual |
|
protectedslot |
References g_pApp, KviApplication::optionResetUpdate(), and setIconSize().
|
protected |
References accelActivated(), KviPointerList< T >::append(), closeActiveWindow(), KviShortcut::create(), i, 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 KviPointerList< T >::first(), m_pModuleExtensionToolBarList, KviPointerList< T >::next(), and t().
Referenced by fillToolBarsPopup(), and toolbarsPopupSelected().
|
protectedvirtual |
References KVI_OPTION_RECT, KviOption_rectFrameGeometry, updatePseudoTransparency(), x, and y.
|
slot |
References createNewConsole().
|
protected |
References createWindowList(), KviWindow::createWindowListItem(), KviWindow::destroyWindowListItem(), KviPointerList< T >::first(), g_pActiveWindow, m_pWindowList, m_pWinList, KviPointerList< T >::next(), KviWindowListBase::setActiveItem(), w, and KviWindow::windowListItem().
Referenced by KviApplication::optionResetUpdate().
|
protected |
References KviPointerList< T >::append(), and m_pModuleExtensionToolBarList.
Referenced by KviMexToolBar::KviMexToolBar().
|
protectedvirtual |
References 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 KviPointerList< T >::first(), KVI_OPTION_STRINGLIST, KviOption_stringlistModuleExtensionToolbars, m_pModuleExtensionToolBarList, KviPointerList< T >::next(), 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(), 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(), NotifierWindowTab::mouseDoubleClickEvent(), KviIrcView::mouseDoubleClickEvent(), KviTreeWindowListTreeWidget::mousePressEvent(), KviWindowListButton::mousePressEvent(), UrlDialog::sayToWin(), and KviWindowListBase::switchWindow().
void KviMainWindow::setButtonStyle | ( | unsigned int | uStyle | ) |
void KviMainWindow::setIconSize | ( | unsigned int | uSize | ) |
|
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.
|
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(), KviTreeWindowList::setActiveItem(), KviClassicWindowList::setActiveItem(), KviTreeWindowListItem::unhighlight(), and KviWindowListButton::unhighlight().
|
protected |
References m_pWindowStack, and KviWindow::youAreUndocked().
Referenced by KviWindow::undock().
|
protected |
References m_pModuleExtensionToolBarList, and KviPointerList< T >::removeRef().
Referenced by KviMexToolBar::~KviMexToolBar().
|
protected |
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(), KviKvsCoreSimpleCommands::KVSCSC(), and UrlDialog::popup().
|
inline |
Referenced by KviTrayIconWidget::event(), and KviTrayIconWidget::grabActivityInfo().
|
inline |
Referenced by KviMenuBar::KviMenuBar().
|
friend |
|
friend |
Referenced by createNewConsole().
|
friend |
|
friend |
|
friend |
Referenced by KviApplication::setup().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Referenced by KviMainWindow().
|
protected |
Referenced by freeAccelleratorKeySequence(), installAccelerators(), KviMainWindow(), and ~KviMainWindow().
|
protected |
|
protected |
Referenced by applyOptions(), KviMainWindow(), and toggleMenuBar().
|
protected |
|
protected |
Referenced by KviMainWindow().
|
protected |
Referenced by KviMainWindow(), toggleStatusBar(), and ~KviMainWindow().
|
protected |
Referenced by KviMainWindow(), and ~KviMainWindow().
|
protected |
Referenced by applyOptions(), createWindowList(), KviWindow::createWindowListItem(), KviWindow::destroyWindowListItem(), KviMainWindow(), recreateWindowList(), restoreToolBarPositions(), switchToNextHighlightedWindow(), switchToNextWindow(), switchToNextWindowInContext(), switchToPrevHighlightedWindow(), switchToPrevWindow(), switchToPrevWindowInContext(), updatePseudoTransparency(), and windowActivated().
|
protected |
Referenced by addWindow(), applyOptions(), closeWindow(), dockWindow(), KviMainWindow(), setActiveWindow(), undockWindow(), and updatePseudoTransparency().
|
protected |