KVIrc
4.9.2
DeveloperAPIs
|
Base class for all windows in KVIrc. More...
#include <KviWindow.h>
Public Types | |
enum | ActivityTemperature { Ice = 0, VeryCold = 1, Cold = 2, Undefined = 3, Hot = 4, VeryHot = 5, Fire = 6 } |
Holds the activity meter in temperature scale. More... | |
enum | ActivityValue { None = 0, VeryLow = 1, Low = 2, Medium = 3, High = 4, VeryHigh = 5 } |
Holds the activity meter in value scale. More... | |
enum | AttentionLevel { VisibleAndActive = 0, MainWindowIsVisible = 1 } |
attention levels usable in hasAttention() More... | |
enum | Type { Console = 0, Channel = 1, Query = 2, DeadChannel = 3, DeadQuery = 4, Editor = 5, Help = 6, Terminal = 7, SocketSpy = 8, Links = 9, List = 10, DccChat = 11, DccTransfer = 12, DccCanvas = 13, DccVoice = 14, DccVideo = 15, UserWindow = 16, Tool = 17, IOGraph = 18, DirBrowser = 19, ScriptEditor = 20, ScriptObject = 21, LogView = 22, Offer = 23, Debug = 24, Unknown = 25, TypeCount = 26 } |
Holds the types of a window; these are used by the KVIrc core and distributed modules. More... | |
Public Slots | |
void | autoRaise () |
void | dock () |
void | reloadImages () |
void | savePropertiesAsDefault () |
void | undock () |
Signals | |
void | windowNameChanged () |
Public Member Functions | |
virtual bool | activityMeter (unsigned int *puActivityValue, unsigned int *puActivityTemperature) |
virtual void | applyOptions () |
virtual QFrame * | buttonContainer () |
KviIrcConnection * | connection () |
Returns the current IRC connection (if any) More... | |
KviConsoleWindow * | console () |
Returns the console that this window belongs to. More... | |
KviIrcContext * | context () |
void | contextPopup () |
QString | decodeText (const char *pcText) |
virtual QTextCodec * | defaultTextCodec () |
void | delayedAutoRaise () |
void | delayedClose () |
void | demandAttention () |
Notify the window manager that this window demands attention. More... | |
QByteArray | encodeText (const QString &szText) |
void | forceTextCodec (QTextCodec *pCodec) |
virtual void | getBaseLogFileName (QString &szBuffer) |
virtual void | getConfigGroupName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer) |
virtual void | getWindowListTipText (QString &szBuffer) |
bool | hasAttention (AttentionLevel eLevel=VisibleAndActive) |
Returns whether this window is the active one. More... | |
virtual bool | highlightMe (unsigned int uValue) |
virtual bool | highlightMeter (unsigned int *puValue) |
QString | id () |
Returns the global ID of this window. More... | |
KviInput * | input () |
void | internalOutput (KviIrcView *pView, int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
bool | isChannel () const |
bool | isConsole () const |
bool | isDocked () |
bool | isQuery () const |
KviWindow (Type eType, const QString &szName, KviConsoleWindow *pConsole=0) | |
Constructs the window object. More... | |
const QString & | lastLineOfText () |
const QString & | lastMessageText () |
void | listWindowTypes () |
virtual const QString & | localNick () |
QTextEncoder * | makeEncoder () |
unsigned long int | numericId () |
Returns the global ID of this window. More... | |
virtual void | output (int iMsgType, const char *pcFormat,...) |
virtual void | output (int iMsgType, const kvi_wchar_t *pwFormat,...) |
virtual void | output (int iMsgType, QString szFmt,...) |
void | output (int iMsgType, const QDateTime &datetime, const char *pcFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, const kvi_wchar_t *pwFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, QString szFmt,...) |
virtual void | outputNoFmt (int iMsgType, const char *pcText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual void | outputNoFmt (int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual void | outputNoFmt (int iMsgType, const QString &szText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual KviWindow * | outputProxy () |
virtual void | ownAction (const QString &) |
virtual void | ownMessage (const QString &, bool=true) |
virtual const QString & | plainTextCaption () |
void | setFixedCaption (const QString &szCaption) |
void | setProgress (int iProgress) |
Sets the progress for the WindowList item. More... | |
bool | setTextEncoding (const QString &szTextEncoding) |
void | setWindowName (const QString &szName) |
Sets the name of the window. More... | |
void | setWindowTitle (QString &szTitle) |
KviTalSplitter * | splitter () |
Returns the splitter of this window. More... | |
virtual const QString & | target () |
QTextCodec * | textCodec () |
const QString & | textEncoding () |
virtual void | toggleButtonContainer () |
Type | type () const |
Returns the type of the window. More... | |
virtual const char * | typeString () |
Returns a descriptive name of the window type. More... | |
void | unhighlight () |
void | updateBackgrounds (QObject *pObj=0) |
virtual void | updateCaption () |
virtual void | updateIcon () |
KviIrcView * | view () const |
Returns the KviIrcView of this window. More... | |
KviWindowListItem * | windowListItem () |
Returns the windowList item. More... | |
const QString & | windowName () |
Returns the name of this window. More... | |
virtual | ~KviWindow () |
Destroys the window object. More... | |
Protected Slots | |
void | childDestroyed () |
void | cryptControllerFinished () |
void | cryptSessionInfoDestroyed () |
void | systemTextEncodingPopupActivated (QAction *pAction) |
void | textEncodingButtonClicked () |
void | toggleCryptController () |
Protected Member Functions | |
virtual void | childEvent (QChildEvent *pEvent) |
void | childInserted (QWidget *pObject) |
void | childRemoved (QWidget *pObject) |
virtual void | childrenTreeChanged (QWidget *pAdded) |
virtual void | closeEvent (QCloseEvent *pEvent) |
void | createCryptControllerButton (QWidget *pPar) |
void | createSystemTextEncodingPopup () |
void | createTextEncodingButton (QWidget *pPar) |
QToolButton * | createToolButton (QWidget *pPar, const char *pcName, KviIconManager::SmallIcon eIcon, const QString &szToolTip, bool bOn) |
virtual void | createWindowListItem () |
virtual void | destroyWindowListItem () |
bool | eventFilter (QObject *pObject, QEvent *pEvent) |
virtual void | fillCaptionBuffers () |
void | fillSingleColorCaptionBuffers (const QString &szName) |
virtual void | focusInEvent (QFocusEvent *) |
virtual bool | focusNextPrevChild (bool bNext) |
virtual void | inputMethodEvent (QInputMethodEvent *e) |
virtual void | loadProperties (KviConfigurationFile *pCfg) |
virtual void | lostUserFocus () |
virtual void | moveEvent (QMoveEvent *pEvent) |
virtual QPixmap * | myIconPtr () |
virtual void | preprocessMessage (QString &szMessage) |
virtual void | saveProperties (KviConfigurationFile *pCfg) |
void | setType (Type eType) |
virtual void | triggerCreationEvents () |
virtual void | triggerDestructionEvents () |
virtual void | youAreDocked () |
virtual void | youAreUndocked () |
Protected Attributes | |
bool | m_bIsDocked |
bool | m_bProcessingInputEvent |
Type | m_eType |
KviTalHBox * | m_pButtonBox |
KviConsoleWindow * | m_pConsole |
QWidget * | m_pFocusHandler |
QToolButton * | m_pHideToolsButton |
KviInput * | m_pInput |
KviIrcView * | m_pIrcView |
QWidget * | m_pLastFocusedChild |
KviTalSplitter * | m_pSplitter |
QTextCodec * | m_pTextCodec |
QToolButton * | m_pTextEncodingButton |
KviWindowListItem * | m_pWindowListItem |
QString | m_szName |
QString | m_szPlainTextCaption |
QString | m_szTextEncoding |
unsigned long int | m_uId |
Static Protected Attributes | |
static const char * | m_typeTable [TypeCount] |
Properties | |
int | KviProperty_ChildFocusOwner |
Friends | |
class | KviInput |
class | KviMainWindow |
class | KviTreeWindowList |
class | KviTreeWindowListItem |
class | KviTreeWindowListItemDelegate |
class | KviWindowListButton |
class | KviWindowListItem |
class | KviWindowStack |
Base class for all windows in KVIrc.
attention levels usable in hasAttention()
Enumerator | |
---|---|
VisibleAndActive |
The window is visible and active (aka: has user focus) |
MainWindowIsVisible |
The kvirc frame is visible but the window is not the active one |
enum KviWindow::Type |
Holds the types of a window; these are used by the KVIrc core and distributed modules.
KviWindow::KviWindow | ( | Type | eType, |
const QString & | szName, | ||
KviConsoleWindow * | pConsole = 0 |
||
) |
Constructs the window object.
eType | The type of the window |
lpFrm | The main window |
szName | The name of the window |
pConsole | The parent console |
References connect(), g_pApp, g_uUniqueWindowId, KVI_WINDOW_MIN_HEIGHT, KVI_WINDOW_MIN_WIDTH, m_bIsDocked, m_bProcessingInputEvent, m_eType, m_pButtonBox, m_pConsole, m_pFocusHandler, m_pHideToolsButton, m_pInput, m_pIrcView, m_pLastFocusedChild, m_pSplitter, m_pTextCodec, m_pTextEncodingButton, m_pWindowListItem, m_szName, m_uId, KviApplication::registerWindow(), and reloadImages().
|
virtual |
Destroys the window object.
References destroyWindowListItem(), g_pApp, g_pMdiWindowSystemMainPopup, g_pMdiWindowSystemTextEncodingPopup, g_pMdiWindowSystemTextEncodingPopupSmart, g_pMdiWindowSystemTextEncodingPopupSmartUtf8, g_pMdiWindowSystemTextEncodingPopupStandard, KviApplication::unregisterWindow(), and KviApplication::windowCount().
|
virtual |
Reimplemented in KviChannelWindow.
Referenced by KviWindowListButton::drawButtonLabel(), and KviTreeWindowListItemDelegate::paint().
|
virtual |
Reimplemented in KviChannelWindow, KviQueryWindow, ListWindow, FileTransferWindow, KviConsoleWindow, LinksWindow, and SocketSpyWindow.
References KviInput::applyOptions(), KviIrcView::applyOptions(), m_pInput, m_pIrcView, and updateCaption().
Referenced by SocketSpyWindow::applyOptions(), LinksWindow::applyOptions(), KviConsoleWindow::applyOptions(), FileTransferWindow::applyOptions(), ListWindow::applyOptions(), KviQueryWindow::applyOptions(), and KviChannelWindow::applyOptions().
|
slot |
References g_pMainWindow, isDocked(), m_pFocusHandler, and KviMainWindow::setActiveWindow().
Referenced by delayedAutoRaise().
|
inlinevirtual |
Reimplemented in KviChannelWindow, KviQueryWindow, and DccChatWindow.
Referenced by createCryptControllerButton(), and toggleButtonContainer().
|
protectedslot |
References childRemoved().
Referenced by childInserted().
|
protectedvirtual |
References childInserted(), and childRemoved().
|
protected |
References childDestroyed(), connect(), and m_pFocusHandler.
Referenced by childEvent(), and eventFilter().
|
protected |
References m_pFocusHandler, and m_pLastFocusedChild.
Referenced by childDestroyed(), childEvent(), and eventFilter().
|
protectedvirtual |
Referenced by KviInput::multiLineEditorButtonToggled().
|
protectedvirtual |
Reimplemented in KviChannelWindow, and KviConsoleWindow.
References KviMainWindow::childWindowCloseRequest(), and g_pMainWindow.
Referenced by KviConsoleWindow::closeEvent(), and KviChannelWindow::closeEvent().
KviIrcConnection * KviWindow::connection | ( | ) |
Returns the current IRC connection (if any)
References KviIrcContext::connection(), console(), KviConsoleWindow::context(), and context().
Referenced by KviMaskInputDialog::accept(), KviMaskEditor::addClicked(), KviConsoleWindow::applyHighlighting(), avatar_kvs_cmd_notify(), avatar_kvs_cmd_query(), avatar_kvs_cmd_set(), avatar_kvs_cmd_unset(), avatar_kvs_fnc_name(), avatar_kvs_fnc_path(), KviConsoleWindow::avatarChanged(), KviConsoleWindow::avatarChangedUpdateWindows(), chan_kvs_fnc_common(), chan_kvs_fnc_getUrl(), KviChannelWindow::checkChannelSync(), KviConsoleWindow::checkDefaultAvatar(), KviChannelWindow::closeEvent(), KviUserListEntry::color(), KviConsoleWindow::connectionAttached(), KviApplication::connectionExists(), DccChatWindow::connectionInProgress(), DccVoiceWindow::connectionInProgress(), DccVideoWindow::connectionInProgress(), DccFileTransfer::connectionInProgress(), LinksWindow::connectionStateChange(), ListWindow::connectionStateChange(), context_kvs_cmd_clearQueue(), KviConsoleWindow::currentAvatar(), KviConsoleWindow::currentNetworkName(), dcc_fill_local_nick_user_host(), dcc_kvs_cmd_chat(), dcc_kvs_cmd_get(), dcc_kvs_get_listen_ip_address(), dcc_kvs_parse_default_parameters(), dcc_module_reply_errmsg(), dccModuleParseDccGet(), defaultTextCodec(), KviTrayIconWidget::doAway(), KviIrcView::doLinkToolTip(), DccFileTransfer::doResume(), KviIrcContextDisplay::drawContents(), KviKvsTreeNodeAliasSimpleCommand::execute(), ListWindow::exportList(), KviQueryWindow::fillCaptionBuffers(), KviChannelWindow::fillCaptionBuffers(), KviTrayIconWidget::fillContextPopup(), KviApplication::fillRecentChannelsPopup(), KviApplication::fillRecentNicknamesPopup(), KviConsoleWindow::fillStatusString(), KviApplication::findConsole(), KviQueryWindow::getBaseLogFileName(), KviChannelWindow::getBaseLogFileName(), KviChannelWindow::getConfigGroupName(), KviQueryWindow::getInfoLabelText(), KviWindowListBase::getTextForConsole(), KviIrcView::getTextLine(), KviUserListView::getUserFlag(), KviConsoleWindow::getUserTipText(), KviConsoleWindow::getWindowListTipText(), KviQueryWindow::getWindowListTipText(), KviIsOnNotifyListManager::handleIsOn(), DccBroker::handleResumeRequest(), LinksWindow::hostPopupClicked(), KviUserListView::insertUserEntry(), KviConsoleWindow::isIPv6Connection(), KviMaskEditor::itemDoubleClicked(), ListWindow::itemDoubleClicked(), KviChannelWindow::KviChannelWindow(), KviMaskEditor::KviMaskEditor(), KviModeEditor::KviModeEditor(), KviQueryWindow::KviQueryWindow(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), KviModeWidget::mouseDoubleClickEvent(), KviConsoleWindow::outputPrivmsg(), KviQueryWindow::ownAction(), KviChannelWindow::ownAction(), KviQueryWindow::ownMessage(), KviChannelWindow::ownMessage(), KviUserListViewArea::paintEvent(), KviIrcServerParser::parseCtcpReplyLagcheck(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralChghost(), KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPart(), KviIrcServerParser::parseLiteralPing(), KviIrcServerParser::parseLiteralPong(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseLiteralQuit(), KviUserInput::parseNonCommand(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumericWhoReply(), KviChangeUserModeAction::popupAboutToShow(), KviChangeUserModeAction::popupActivated(), preprocessMessage(), KviChannelWindow::removeMasks(), LinksWindow::requestLinks(), ListWindow::requestList(), KviConsoleWindow::resetAvatarForMatchingUsers(), KviApplication::restartLagMeters(), KviApplication::restartNotifyLists(), DccBroker::rsendExecute(), KviIrcUrl::run(), KviChannelWindow::serverInfo(), KviChannelWindow::setAliveChan(), KviQueryWindow::setAliveQuery(), KviConsoleWindow::setAvatar(), KviConsoleWindow::setAvatarFromOptions(), KviChannelWindow::setDeadChan(), KviQueryWindow::setDeadQuery(), KviChannelWindow::setMode(), KviChannelWindow::setModeInList(), KviQueryWindow::setTarget(), DccFileTransfer::startConnection(), ListWindow::stoplistdownload(), KviTopicWidget::switchMode(), KviIrcConnectionRequestQueue::timerSlot(), KviIrcContextDisplay::tipRequest(), KviChannelWindow::toggleListModeEditor(), KviChannelWindow::topicSelected(), KviConsoleWindow::triggerOnHighlight(), KviChannelWindow::updateModeLabel(), KviModeEditor::updateOpStatus(), KviMaskEditor::updateOpStatus(), KviConsoleWindow::updateUri(), KviChannelWindow::~KviChannelWindow(), and KviQueryWindow::~KviQueryWindow().
|
inline |
Returns the console that this window belongs to.
May be null for windows that aren't bound to irc contexts
Referenced by KviApplication::activeConsole(), KviConsoleWindow::activeWindow(), KviTreeWindowList::addItem(), avatar_kvs_cmd_set(), avatar_kvs_cmd_unset(), chan_kvs_fnc_common(), channelsjoin_kvs_cmd_open(), ChannelsJoinDialog::clearClicked(), KviInputEditor::completion(), connection(), KviKvsRunTimeContext::console(), KviIrcView::console(), context(), context_kvs_fnc_getSSLCertInfo(), dcc_kvs_cmd_chat(), dcc_kvs_cmd_get(), dcc_kvs_cmd_recv(), dcc_kvs_cmd_rsend(), dcc_kvs_cmd_send(), dcc_kvs_cmd_video(), dcc_kvs_cmd_voice(), KviWindowListButton::drawButtonLabel(), KviIrcContextDisplay::drawContents(), KviQueryWindow::getBaseLogFileName(), KviQueryWindow::getWindowListTipText(), SocketSpyWindow::incomingMessage(), KviClassicWindowList::insertButton(), ChannelsJoinDialog::joinClicked(), KviKvsCallbackObject::KviKvsCallbackObject(), KviKvsCoreSimpleCommands::KVSCSC(), links_kvs_cmd_open(), list_kvs_cmd_open(), KviUserListView::maybeTip(), SocketSpyWindow::outgoingMessage(), KviTreeWindowListItemDelegate::paint(), KviUserInput::parseNonCommand(), KviIrcServerParser::parseNumericWhoReply(), KviQueryWindow::pasteLastLog(), KviChannelWindow::pasteLastLog(), KviJoinChannelAction::popupAboutToShow(), KviChangeNickAction::popupAboutToShow(), KviChangeUserModeAction::popupAboutToShow(), KviJoinChannelAction::popupActivated(), KviChangeNickAction::popupActivated(), KviConnectToServerAction::popupActivated(), KviChangeUserModeAction::popupActivated(), OptionsWidget_servers::recentServersPopupClicked(), ChannelsJoinDialog::regClicked(), socketspy_kvs_cmd_open(), KviWindowListBase::switchWindow(), KviIrcContextDisplay::tipRequest(), tmphighlight_kvs_cmd_addchannel(), tmphighlight_kvs_cmd_addnick(), tmphighlight_kvs_cmd_removechannel(), tmphighlight_kvs_cmd_removenick(), tmphighlight_kvs_fnc_ischannelhighlighted(), tmphighlight_kvs_fnc_isnickhighlighted(), and window_kvs_fnc_list().
KviIrcContext * KviWindow::context | ( | ) |
References console(), and KviConsoleWindow::context().
Referenced by KviMainWindow::addWindow(), KviChannelWindow::closeEvent(), connection(), KviKvsTreeNodeAliasSimpleCommand::execute(), KviApplication::findWindowByCaption(), SocketSpyWindow::getBaseLogFileName(), LinksWindow::getBaseLogFileName(), ListWindow::getBaseLogFileName(), KviQueryWindow::getBaseLogFileName(), KviChannelWindow::getBaseLogFileName(), KviConsoleWindow::isConnected(), KviKvsCoreSimpleCommands::KVSCSC(), links_kvs_cmd_open(), list_kvs_cmd_open(), KviChannelWindow::setAliveChan(), KviQueryWindow::setAliveQuery(), KviChannelWindow::setDeadChan(), KviQueryWindow::setDeadQuery(), KviConsoleWindow::state(), KviStatusBarConnectionTimer::timerEvent(), UserWindow::UserWindow(), window_kvs_fnc_list(), KviMainWindow::windowActivated(), KviChannelWindow::~KviChannelWindow(), KviQueryWindow::~KviQueryWindow(), and UserWindow::~UserWindow().
void KviWindow::contextPopup | ( | ) |
References KviEvent_OnWindowPopupRequest, and KVS_TRIGGER_EVENT_0.
Referenced by KviWindowListButton::contextMenuEvent(), and KviTreeWindowListTreeWidget::mousePressEvent().
|
protected |
|
protected |
References __tr2qs, KviLocale::_EncodingDescription::bSendUtf8, KviLocale::_EncodingDescription::bSmart, connect(), defaultTextCodec(), KviLocale::encodingDescription(), KviLocale::encodingGroup(), KviQString::equalCI(), g_pMdiWindowSystemTextEncodingActionGroup, g_pMdiWindowSystemTextEncodingCurrentAction, g_pMdiWindowSystemTextEncodingDefaultAction, g_pMdiWindowSystemTextEncodingPopup, g_pMdiWindowSystemTextEncodingPopupSmart, g_pMdiWindowSystemTextEncodingPopupSmartUtf8, g_pMdiWindowSystemTextEncodingPopupStandard, i, KviLocale::instance(), KVI_NUM_ENCODING_GROUPS, m_szTextEncoding, KviLocale::_EncodingDescription::pcDescription, KviLocale::_EncodingDescription::pcName, systemTextEncodingPopupActivated(), u, and KviLocale::_EncodingDescription::uGroup.
Referenced by textEncodingButtonClicked().
|
protected |
References __tr2qs, connect(), createToolButton(), m_pTextEncodingButton, KviIconManager::TextEncoding, and textEncodingButtonClicked().
Referenced by DccChatWindow::DccChatWindow(), DccVideoWindow::DccVideoWindow(), DccWindow::DccWindow(), KviChannelWindow::KviChannelWindow(), and KviQueryWindow::KviQueryWindow().
|
protected |
References KviTalToolTip::add(), g_pIconManager, and KviIconManager::getSmallIcon().
Referenced by createTextEncodingButton().
|
protectedvirtual |
References KviWindowListBase::addItem(), g_pMainWindow, KviMainWindow::m_pWindowList, and m_pWindowListItem.
Referenced by KviMainWindow::addWindow(), and KviMainWindow::recreateWindowList().
|
protectedslot |
Referenced by toggleCryptController().
|
protectedslot |
References __tr2qs, KVI_OUT_SYSTEMERROR, and output().
|
inline |
References defaultTextCodec(), and m_pTextCodec.
Referenced by dccModuleParseDccGet(), dccModuleParseDccRSend(), dccModuleParseDccSend(), DccChatWindow::event(), DccVideoWindow::event(), SocketSpyWindow::incomingMessage(), SocketSpyWindow::outgoingMessage(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviQueryWindow::ownMessage(), KviChannelWindow::ownMessage(), KviIrcServerParser::parseCtcpReplyAvatar(), KviIrcServerParser::parseCtcpReplyUserinfo(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseCtcpRequestDcc(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPart(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseLiteralQuit(), KviIrcServerParser::parseLiteralTopic(), KviIrcServerParser::parseMessage(), KviIrcServerParser::parseNumeric020(), KviIrcServerParser::parseNumericChanUrl(), KviIrcServerParser::parseNumericCodePageScheme(), KviIrcServerParser::parseNumericNoSuchNick(), KviIrcServerParser::parseNumericTopic(), KviIrcServerParser::parseNumericWhoisServer(), KviIrcSocket::proxyHandleHttpFinalReply(), and KviIrcSocket::readHttpProxyErrorData().
|
virtual |
References connection(), KviApplication::defaultTextCodec(), and KviIrcConnection::textCodec().
Referenced by createSystemTextEncodingPopup(), decodeText(), encodeText(), forceTextCodec(), makeEncoder(), and saveProperties().
void KviWindow::delayedAutoRaise | ( | ) |
References autoRaise().
Referenced by filetransferwindow_alloc(), iograph_module_cmd_open(), logview_kvs_cmd_open(), KviIrcServerParser::parseLiteralNick(), and sharedfileswindow_kvs_cmd_open().
void KviWindow::delayedClose | ( | ) |
void KviWindow::demandAttention | ( | ) |
Notify the window manager that this window demands attention.
Depending on the os/window manager, this method uses different approaches to trigger a notification that typically makes the application entry flash on the application bar.
References g_pMainWindow, and isDocked().
Referenced by DccChatWindow::event(), DccVideoWindow::event(), KviNotifyListManager::notifyOnLine(), KviConsoleWindow::outputPrivmsg(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralNotice(), and KviIrcServerParser::parseLiteralPrivmsg().
|
protectedvirtual |
References g_pMainWindow, KviMainWindow::m_pWindowList, m_pWindowListItem, and KviWindowListBase::removeItem().
Referenced by KviMainWindow::recreateWindowList(), and ~KviWindow().
|
slot |
References KviMainWindow::dockWindow(), g_pMainWindow, and KviMainWindow::setActiveWindow().
|
inline |
References defaultTextCodec(), and m_pTextCodec.
Referenced by KviChannelWindow::closeEvent(), KviKvsCoreSimpleCommands::KVSCSC(), DccChatWindow::ownAction(), DccVideoWindow::ownAction(), KviQueryWindow::ownAction(), KviChannelWindow::ownAction(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviQueryWindow::ownMessage(), KviChannelWindow::ownMessage(), and KviChannelWindow::topicSelected().
|
protected |
References childInserted(), childRemoved(), g_pActiveWindow, g_pMainWindow, m_pLastFocusedChild, and KviMainWindow::windowActivated().
Referenced by FileTransferWindow::eventFilter(), and KviChannelWindow::eventFilter().
|
protectedvirtual |
Reimplemented in KviChannelWindow, KviQueryWindow, PopupEditorWindow, RawEditorWindow, DccVideoWindow, EventEditorWindow, DccVoiceWindow, LogViewWindow, ListWindow, FileTransferWindow, KviConsoleWindow, SharedFilesWindow, DccChatWindow, LinksWindow, HelpWindow, KviIOGraphWindow, CodeTesterWindow, KviDebugWindow, UserWindow, and SocketSpyWindow.
References fillSingleColorCaptionBuffers(), m_szName, and m_szPlainTextCaption.
Referenced by KviKvsScriptWindowWindow::setWindowTitleString(), and updateCaption().
|
inlineprotected |
Referenced by fillCaptionBuffers(), and UserWindow::UserWindow().
|
protectedvirtual |
Reimplemented in DccVoiceWindow.
References g_pActiveWindow, g_pMainWindow, m_pFocusHandler, m_pIrcView, m_pLastFocusedChild, updateCaption(), and KviMainWindow::windowActivated().
Referenced by DccVoiceWindow::focusInEvent().
|
protectedvirtual |
void KviWindow::forceTextCodec | ( | QTextCodec * | pCodec | ) |
References defaultTextCodec(), m_pTextCodec, and m_szTextEncoding.
|
virtual |
Reimplemented in KviChannelWindow, KviQueryWindow, DccVideoWindow, DccVoiceWindow, ListWindow, FileTransferWindow, KviConsoleWindow, SharedFilesWindow, DccChatWindow, LinksWindow, KviDebugWindow, and SocketSpyWindow.
References m_szName.
Referenced by getDefaultLogFileName().
|
virtual |
Reimplemented in KviChannelWindow, PopupEditorWindow, ActionEditorWindow, AliasEditorWindow, RawEditorWindow, EventEditorWindow, and CodeTesterWindow.
References typeString().
Referenced by KviMainWindow::addWindow(), KviMainWindow::closeWindow(), and savePropertiesAsDefault().
void KviWindow::getDefaultLogFileName | ( | QString & | szBuffer | ) |
References KviKvsVariant::asString(), KviFileUtils::cleanFileName(), KviFileUtils::encodeFileName(), KviQString::ensureLastCharIs(), KviQString::escapeKvs(), KviKvsScript::evaluate(), g_pApp, getBaseLogFileName(), KviApplication::getLocalKvircDirectory(), KVI_OPTION_BOOL, KVI_OPTION_STRING, KVI_OPTION_UINT, KVI_PATH_SEPARATOR_CHAR, KviOption_boolGzipLogs, KviOption_stringLogsDynamicPath, KviOption_uintOutputDatetimeFormat, KviApplication::Log, KviFileUtils::makeDir(), KviQString::PermitFunctions, KviQString::PermitVariables, and typeString().
Referenced by log_kvs_cmd_start(), and KviIrcView::startLogging().
|
inlinevirtual |
Reimplemented in KviChannelWindow, KviQueryWindow, and KviConsoleWindow.
Referenced by KviWindowListButton::tipRequest().
bool KviWindow::hasAttention | ( | AttentionLevel | eLevel = VisibleAndActive | ) |
Returns whether this window is the active one.
This method is useful because it takes in consideration that this window can be either docked or undocked, and takes a parameter that defines the strictness of the checks used. Level MainWindowIsVisible is fine to check if we needs to trigger the notifier Level VisibleAndActive is useful to trigger highlights
eLevel | the level of checks to be done |
References g_pActiveWindow, g_pMainWindow, isDocked(), MainWindowIsVisible, and VisibleAndActive.
Referenced by NotifierWindow::addMessage(), DccChatWindow::event(), DccVideoWindow::event(), KviApplication::fileDownloadTerminated(), internalOutput(), KviNotifyListManager::notifyOnLine(), KviConsoleWindow::outputPrivmsg(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), NotifierWindow::shouldHideIfMainWindowGotAttention(), and KviConsoleWindow::triggerOnHighlight().
|
virtual |
References KviWindowListItem::highlight(), and m_pWindowListItem.
Referenced by window_kvs_cmd_highlight().
|
virtual |
References KviWindowListItem::highlightLevel(), and m_pWindowListItem.
|
inline |
Returns the global ID of this window.
This is unique in the application
Referenced by KviKvsCoreFunctions::KVSCF(), KviInputEditor::pasteClipboardWithConfirmation(), KviInputEditor::pasteSelectionWithConfirmation(), KviApplication::registerWindow(), spaste_kvs_cmd_list(), spaste_kvs_cmd_stop(), KviApplication::unregisterWindow(), and window_kvs_fnc_open().
|
inline |
|
protectedvirtual |
References m_bProcessingInputEvent, m_pFocusHandler, and m_pLastFocusedChild.
void KviWindow::internalOutput | ( | KviIrcView * | pView, |
int | iMsgType, | ||
const kvi_wchar_t * | pwText, | ||
int | iFlags = 0 , |
||
const QDateTime & | datetime = QDateTime() |
||
) |
References KviIrcView::appendText(), hasAttention(), KviIrcView::hasLineMark(), KviWindowListItem::highlight(), KVI_OPTION_BOOL, KVI_OPTION_MSGTYPE, KVI_OPTION_UINT, KVI_OUT_CHANPRIVMSG, KVI_OUT_CHANPRIVMSGCRYPTED, KVI_OUT_HIGHLIGHT, KVI_OUT_QUERYNOTICE, KVI_OUT_QUERYNOTICECRYPTED, KVI_OUT_QUERYPRIVMSG, KVI_OUT_QUERYPRIVMSGCRYPTED, KVI_OUT_QUERYTRACE, KviOption_boolHighlightOnlyAtCostumHighlightLevel, KviOption_boolHighlightOnlyNormalMsg, KviOption_boolHighlightOnlyNormalMsgHighlightInChanToo, KviOption_boolHighlightOnlyNormalMsgQueryToo, KviOption_uintMinHighlightLevel, m_pWindowListItem, outputNoFmt(), outputProxy(), KviIrcView::SetLineMark, and KviIrcView::TriggersNotification.
Referenced by output(), KviChannelWindow::outputMessage(), and outputNoFmt().
|
inline |
Returns true if the window is a channel
References Channel.
Referenced by KviInputEditor::checkWordSpelling().
|
inline |
Returns true if the window is a console
|
inline |
Referenced by autoRaise(), KviMainWindow::closeWindow(), demandAttention(), hasAttention(), NotifierWindowTab::mouseDoubleClickEvent(), KviThemedComboBox::paintEvent(), KviThemedLabel::paintEvent(), KviThemedLineEdit::paintEvent(), KviThemedTreeWidget::paintEvent(), FileTransferWidget::paintEvent(), KviIOGraphWindow::paintEvent(), KviIrcView::paintEvent(), KviUserListViewArea::paintEvent(), KviInputEditor::paintEvent(), and KviMainWindow::saveWindowProperties().
|
inline |
Returns true if the window is a query
const QString & KviWindow::lastLineOfText | ( | ) |
References KviQString::Empty, KviIrcView::lastLineOfText(), and m_pIrcView.
const QString & KviWindow::lastMessageText | ( | ) |
References KviQString::Empty, KviIrcView::lastMessageText(), and m_pIrcView.
void KviWindow::listWindowTypes | ( | ) |
References __tr2qs, i, KVI_OUT_SYSTEMMESSAGE, m_typeTable, and outputNoFmt().
Referenced by window_kvs_cmd_listtypes().
|
protectedvirtual |
Reimplemented in KviChannelWindow, ClassEditorWindow, KviQueryWindow, PopupEditorWindow, ActionEditorWindow, AliasEditorWindow, RawEditorWindow, EventEditorWindow, KviConsoleWindow, HelpWindow, CodeTesterWindow, and KviDebugWindow.
References KviQString::Empty, KVI_OPTION_BOOL, KviOption_boolCommandlineInUserFriendlyModeByDefault, KviOption_boolHideInputToolButtons, m_pInput, m_szName, KviConfigurationFile::readBoolEntry(), KviConfigurationFile::readEntry(), KviInput::setButtonsHidden(), setTextEncoding(), and KviInput::setUserFriendly().
Referenced by KviMainWindow::addWindow(), KviDebugWindow::loadProperties(), HelpWindow::loadProperties(), KviConsoleWindow::loadProperties(), ActionEditorWindow::loadProperties(), KviQueryWindow::loadProperties(), and KviChannelWindow::loadProperties().
|
inlinevirtual |
Reimplemented in DccVideoWindow, and DccChatWindow.
References KviQString::Empty.
|
protectedvirtual |
Reimplemented in KviChannelWindow.
References KviIrcView::clearLineMark(), KviIrcView::hasLineMark(), and m_pIrcView.
Referenced by KviMainWindow::changeEvent(), KviChannelWindow::lostUserFocus(), and KviMainWindow::windowActivated().
QTextEncoder * KviWindow::makeEncoder | ( | ) |
References defaultTextCodec(), and m_pTextCodec.
Referenced by KviChannelWindow::ownAction(), KviQueryWindow::ownMessage(), and KviChannelWindow::ownMessage().
|
protectedvirtual |
Reimplemented in KviIOGraphWindow.
References updateBackgrounds().
|
protectedvirtual |
Reimplemented in KviChannelWindow, ClassEditorWindow, KviQueryWindow, PopupEditorWindow, ActionEditorWindow, AliasEditorWindow, RawEditorWindow, DccVideoWindow, EventEditorWindow, DccVoiceWindow, ListWindow, LogViewWindow, FileTransferWindow, KviConsoleWindow, SharedFilesWindow, DccChatWindow, LinksWindow, UrlDialog, HelpWindow, KviIOGraphWindow, CodeTesterWindow, KviDebugWindow, UserWindow, KviKvsScriptWindowWindow, and SocketSpyWindow.
References KviIconManager::DefaultIcon, g_pIconManager, and KviIconManager::getSmallIcon().
Referenced by KviWindowListButton::drawButtonLabel(), KviWindowStack::fillWindowPopup(), KviTreeWindowListItemDelegate::paint(), updateIcon(), and youAreUndocked().
|
inline |
Returns the global ID of this window.
This is unique in the application
Referenced by KviKvsCoreFunctions::KVSCF(), and KviKvsReport::report().
|
virtual |
References internalOutput(), kvi_va_end, kvi_va_list, kvi_va_start, l, m_pIrcView, preprocessMessage(), and KviQString::vsprintf().
Referenced by action_kvs_cmd_list(), UPnP::RootService::addDeviceServices(), addon_kvs_cmd_installfiles(), addon_kvs_cmd_list(), addon_kvs_cmd_register(), addon_kvs_cmd_uninstall(), KviIrcConnectionTargetResolver::asyncStartResolve(), avatar_kvs_cmd_notify(), KviChannelWindow::checkChannelSync(), DccBroker::chooseSaveFileName(), KviInputEditor::completion(), DccChatWindow::connected(), DccVoiceWindow::connected(), DccVideoWindow::connected(), KviIrcContext::connectionEstablished(), KviIrcContext::connectionFailed(), SocketSpyWindow::connectionInitiated(), DccChatWindow::connectionInProgress(), DccVoiceWindow::connectionInProgress(), DccVideoWindow::connectionInProgress(), SocketSpyWindow::connectionTerminated(), KviIrcContext::connectionTerminated(), LogViewWindow::createLog(), KviIrcLink::createSocket(), cryptSessionInfoDestroyed(), dcc_module_request_error(), dccModuleParseDccChat(), dccModuleParseDccGet(), dccModuleParseDccRecv(), dccModuleParseDccRSend(), dccModuleParseDccSend(), dccModuleParseDccVideo(), dccModuleParseDccVoice(), KviIsOnNotifyListManager::delayedIsOnSession(), KviIsOnNotifyListManager::delayedNotifySession(), KviIsOnNotifyListManager::delayedUserhostSession(), KviKvsDnsManager::dnsLookupTerminated(), KviIsOnNotifyListManager::doMatchUser(), KviWatchNotifyListManager::doMatchUser(), dumpChildObjects(), KviIrcServerParser::echoCtcpReply(), KviIrcServerParser::echoCtcpRequest(), LinksWindow::endOfLinks(), KviKvsPopupMenuItem::evaluateCondition(), KviKvsPopupMenuItemWithTextAndIcon::evaluateIcon(), KviKvsPopupMenuItemWithTextAndIcon::evaluateText(), KviIdentSentinel::event(), DccChatWindow::event(), DccVoiceWindow::event(), DccVideoWindow::event(), DccFileTransfer::event(), KviKvsTreeNodeAliasSimpleCommand::execute(), KviKvsPopupMenu::executeEpilogues(), KviKvsPopupMenu::executePrologues(), KviApplication::fileDownloadTerminated(), KviKvsPopupMenuItemExtMenu::fill(), KviKvsObject::function_listProperties(), KviIrcConnection::handleFailedInitialCapLs(), KviIsOnNotifyListManager::handleIsOn(), KviStupidNotifyListManager::handleIsOn(), DccChatWindow::handleMarshalError(), DccVoiceWindow::handleMarshalError(), DccVideoWindow::handleMarshalError(), KviIsOnNotifyListManager::handleUserhost(), KviWatchNotifyListManager::handleWatchReply(), KviIrcConnectionTargetResolver::haveServerIp(), HttpFileTransfer::headersReceived(), KviIrcConnection::heartbeat(), KviIrcConnection::hostNameLookupTerminated(), LinksWindow::hostPopupClicked(), KviApplication::ipcMessage(), KviKvsCoreSimpleCommands::KVSCSC(), KviLagMeter::lagCheckAbort(), KviLagMeter::lagCheckComplete(), KviLagMeter::lagCheckRegister(), KviIrcLink::linkFilterDestroyed(), KviModuleManager::loadModule(), KviIrcConnection::loginComplete(), KviIrcConnection::loginToIrcServer(), KviIrcConnectionTargetResolver::lookupProxyHostname(), KviIrcConnectionTargetResolver::lookupServerHostname(), KviKvsAsyncDnsOperation::lookupTerminated(), KviIrcView::mouseDoubleClickEvent(), KviIsOnNotifyListManager::newNotifySession(), KviIsOnNotifyListManager::newUserhostSession(), KviQueryWindow::notifyCommonChannels(), KviQueryWindow::notifyTargetChange(), objects_kvs_fnc_listObjects(), options_kvs_module_print_pages(), KviIrcServerParser::otherChannelError(), DccFileTransfer::outputAndLog(), KviIrcSocket::outputProxyError(), KviIrcSocket::outputProxyMessage(), KviIrcSocket::outputSocketError(), KviIrcSocket::outputSocketMessage(), KviIrcSocket::outputSocketWarning(), KviIrcSocket::outputSSLError(), KviIrcSocket::outputSSLMessage(), DccChatWindow::ownAction(), DccVideoWindow::ownAction(), KviQueryWindow::ownAction(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviQueryWindow::ownMessage(), KviChannelWindow::ownMessage(), KviIrcServerParser::parseChannelHelp(), KviIrcServerParser::parseChannelMode(), KviIrcServerParser::parseCommandEndOfHelp(), KviIrcServerParser::parseCommandSyntaxHelp(), KviIrcServerParser::parseCtcpReplyPing(), KviIrcServerParser::parseCtcpRequest(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseCtcpRequestAvatar(), KviIrcServerParser::parseCtcpRequestDcc(), KviIrcServerParser::parseLiteralCap(), KviIrcServerParser::parseLiteralChghost(), KviIrcServerParser::parseLiteralError(), KviIrcServerParser::parseLiteralInvite(), KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralMode(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPart(), KviIrcServerParser::parseLiteralPing(), KviIrcServerParser::parseLiteralPong(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseLiteralQuit(), KviIrcServerParser::parseLiteralTopic(), KviIrcServerParser::parseLiteralWallops(), KviIrcServerParser::parseLoginNicknameProblem(), KviIrcServerParser::parseMessage(), KviUserInput::parseNonCommand(), KviIrcServerParser::parseNumeric004(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumeric020(), KviIrcServerParser::parseNumeric367(), KviIrcServerParser::parseNumeric368(), KviIrcServerParser::parseNumeric486(), KviIrcServerParser::parseNumeric742(), KviIrcServerParser::parseNumericAlreadyRegistered(), KviIrcServerParser::parseNumericAway(), KviIrcServerParser::parseNumericBackFromAway(), KviIrcServerParser::parseNumericBanOnChan(), KviIrcServerParser::parseNumericCannotSend(), KviIrcServerParser::parseNumericCannotSendColor(), KviIrcServerParser::parseNumericCantJoinChannel(), KviIrcServerParser::parseNumericChannelModeIs(), KviIrcServerParser::parseNumericChanUrl(), KviIrcServerParser::parseNumericCodePageScheme(), KviIrcServerParser::parseNumericCodePageSet(), KviIrcServerParser::parseNumericCreationTime(), KviIrcServerParser::parseNumericEndOfLinks(), KviIrcServerParser::parseNumericEndOfNames(), KviIrcServerParser::parseNumericEndOfQuietList(), KviIrcServerParser::parseNumericEndOfWho(), KviIrcServerParser::parseNumericEndOfWhois(), KviIrcServerParser::parseNumericEndOfWhowas(), KviIrcServerParser::parseNumericForward(), KviIrcServerParser::parseNumericHiddenHost(), KviIrcServerParser::parseNumericInfoEnd(), KviIrcServerParser::parseNumericInfoStart(), KviIrcServerParser::parseNumericInvited(), KviIrcServerParser::parseNumericInviting(), KviIrcServerParser::parseNumericIsOn(), KviIrcServerParser::parseNumericLinks(), KviIrcServerParser::parseNumericList(), KviIrcServerParser::parseNumericListEnd(), KviIrcServerParser::parseNumericListStart(), KviIrcServerParser::parseNumericMotdMissing(), KviIrcServerParser::parseNumericNames(), KviIrcServerParser::parseNumericNeedSSL(), KviIrcServerParser::parseNumericNicknameProblem(), KviIrcServerParser::parseNumericNoPrivs(), KviIrcServerParser::parseNumericNoSuchChannel(), KviIrcServerParser::parseNumericNoSuchNick(), KviIrcServerParser::parseNumericNoSuchServer(), KviIrcServerParser::parseNumericNotEnoughParams(), KviIrcServerParser::parseNumericNotifyGeneric(), KviIrcServerParser::parseNumericNoTopic(), KviIrcServerParser::parseNumericNotRegistered(), KviIrcServerParser::parseNumericOftcEndOfQuietList(), KviIrcServerParser::parseNumericOftcQuietList(), KviIrcServerParser::parseNumericPasswordIncorrect(), KviIrcServerParser::parseNumericQuietList(), KviIrcServerParser::parseNumericSaslFail(), KviIrcServerParser::parseNumericSaslLogin(), KviIrcServerParser::parseNumericServerAdminInfoAdminContact(), KviIrcServerParser::parseNumericServerAdminInfoAdminName(), KviIrcServerParser::parseNumericServerAdminInfoServerName(), KviIrcServerParser::parseNumericSnomask(), KviIrcServerParser::parseNumericStartTls(), KviIrcServerParser::parseNumericTime(), KviIrcServerParser::parseNumericTopic(), KviIrcServerParser::parseNumericTopicWhoTime(), KviIrcServerParser::parseNumericTryAgain(), KviIrcServerParser::parseNumericUnavailResource(), KviIrcServerParser::parseNumericUnknownCommand(), KviIrcServerParser::parseNumericUserhost(), KviIrcServerParser::parseNumericUserInChan(), KviIrcServerParser::parseNumericUserMode(), KviIrcServerParser::parseNumericUsersDontMatch(), KviIrcServerParser::parseNumericWatch(), KviIrcServerParser::parseNumericWhoisActually(), KviIrcServerParser::parseNumericWhoisAuth(), KviIrcServerParser::parseNumericWhoisAway(), KviIrcServerParser::parseNumericWhoisChannels(), KviIrcServerParser::parseNumericWhoisIdle(), KviIrcServerParser::parseNumericWhoisOther(), KviIrcServerParser::parseNumericWhoisRegistered(), KviIrcServerParser::parseNumericWhoisServer(), KviIrcServerParser::parseNumericWhoisUser(), KviIrcServerParser::parseNumericWhoReply(), KviIrcServerParser::parseNumericWhospcrpl(), KviIrcServerParser::parseNumericWhowasUser(), KviIrcServerParser::parseNumericYouHaveCallerID(), KviIrcServerParser::parseNumericYoureOper(), KviIrcServerParser::parseNumericYourUID(), KviQueryWindow::pasteLastLog(), LinksWindow::processData(), ListWindow::processData(), KviIrcConnectionTargetResolver::proxyLookupTerminated(), DccBroker::recvFileManage(), regchan_kvs_cmd_showlist(), reguser_kvs_cmd_showlist(), DccBroker::renameDccSendFile(), DccBroker::renameOverwriteResume(), KviKvsReport::report(), HttpFileTransfer::requestSent(), KviIrcConnection::resolveLocalHost(), KviIrcLink::resolverTerminated(), KviIrcConnection::restartNotifyList(), DccBroker::rsendExecute(), DccBroker::sendFileExecute(), KviIsOnNotifyListManager::sendIsOn(), KviStupidNotifyListManager::sendIsOn(), KviIsOnNotifyListManager::sendUserhost(), KviIrcConnectionTargetResolver::serverLookupTerminated(), KviConsoleWindow::setAvatar(), KviIrcConnection::setEncoding(), sharedfile_kvs_cmd_list(), snd_kvs_cmd_autodetect(), KviIrcLink::socketStateChange(), spaste_kvs_cmd_list(), DccChatWindow::sslError(), KviIsOnNotifyListManager::start(), KviWatchNotifyListManager::start(), DccChatWindow::startConnection(), DccVoiceWindow::startConnection(), DccVideoWindow::startConnection(), HttpFileTransfer::statusMessage(), KviLagMeter::timerEvent(), KviKvsTimerManager::timerEvent(), KviChannelWindow::topicSelected(), HttpFileTransfer::transferTerminated(), KviKvsProcessAsyncOperation::trigger(), KviKvsEventManager::triggerHandlers(), KviModuleManager::unloadModule(), and KviIrcConnection::userInfoReceived().
|
virtual |
References internalOutput(), kvi_va_end, kvi_va_list, kvi_va_start, l, m_pIrcView, preprocessMessage(), and KviQString::vsprintf().
|
virtual |
References internalOutput(), kvi_va_end, kvi_va_list, kvi_va_start, l, m_pIrcView, preprocessMessage(), and KviQString::vsprintf().
void KviWindow::output | ( | int | iMsgType, |
const QDateTime & | datetime, | ||
const char * | pcFormat, | ||
... | |||
) |
References internalOutput(), kvi_va_end, kvi_va_list, kvi_va_start, l, m_pIrcView, preprocessMessage(), and KviQString::vsprintf().
void KviWindow::output | ( | int | iMsgType, |
const QDateTime & | datetime, | ||
const kvi_wchar_t * | pwFormat, | ||
... | |||
) |
References internalOutput(), kvi_va_end, kvi_va_list, kvi_va_start, l, m_pIrcView, preprocessMessage(), and KviQString::vsprintf().
void KviWindow::output | ( | int | iMsgType, |
const QDateTime & | datetime, | ||
QString | szFmt, | ||
... | |||
) |
References internalOutput(), kvi_va_end, kvi_va_list, kvi_va_start, l, m_pIrcView, preprocessMessage(), and KviQString::vsprintf().
|
virtual |
References internalOutput(), m_pIrcView, and preprocessMessage().
Referenced by KviIrcConnectionTargetResolver::abort(), KviInputEditor::completion(), KviIrcContext::connectButtonClicked(), KviIrcContext::connectionFailed(), KviIrcContext::connectToCurrentServer(), dccModuleParseDccRecv(), LinksWindow::endOfLinks(), ListWindow::endOfList(), KviIdentSentinel::event(), DccVoiceWindow::event(), DccVideoWindow::event(), KviKvsScript::execute(), KviKvsObject::function_listProperties(), SocketSpyWindow::incomingMessage(), internalOutput(), LogViewWindow::itemSelected(), KviKvsCoreSimpleCommands::KVSCSC(), listWindowTypes(), KviIrcConnection::loginComplete(), KviIrcConnection::loginToIrcServer(), KviIrcConnectionTargetResolver::lookupProxyHostname(), KviIrcConnectionTargetResolver::lookupServerHostname(), KviNotifyListManager::notifyOffLine(), KviNotifyListManager::notifyOnLine(), SocketSpyWindow::outgoingMessage(), KviQueryWindow::ownAction(), KviQueryWindow::ownMessage(), KviIrcServerParser::parseCommandHelp(), KviIrcServerParser::parseCtcpReplyAvatar(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseCtcpRequestDcc(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLoginNicknameProblem(), KviIrcServerParser::parseNumeric001(), KviIrcServerParser::parseNumeric002(), KviIrcServerParser::parseNumeric003(), KviIrcServerParser::parseNumeric004(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumericCommandSyntax(), KviIrcServerParser::parseNumericEndOfStats(), KviIrcServerParser::parseNumericInfo(), KviIrcServerParser::parseNumericMotd(), KviIrcServerParser::parseNumericNoTopic(), KviIrcServerParser::parseNumericSaslSuccess(), KviIrcServerParser::parseNumericServerAdminInfoTitle(), KviIrcServerParser::parseNumericStats(), KviChannelWindow::partMessageSent(), LinksWindow::processData(), regchan_kvs_cmd_showlist(), reguser_kvs_cmd_showlist(), KviKvsReport::report(), LinksWindow::requestLinks(), ListWindow::requestList(), LinksWindow::reset(), ListWindow::reset(), KviIrcConnection::sendData(), KviIrcConnection::sendFmtData(), sharedfile_kvs_cmd_list(), snd_kvs_cmd_autodetect(), KviIrcLink::socketStateChange(), KviStupidNotifyListManager::start(), DccChatWindow::startingSSLHandshake(), ListWindow::stoplistdownload(), KviIrcContext::terminateConnectionRequest(), and KviIrcConnection::userInfoReceived().
|
inlinevirtual |
|
virtual |
References internalOutput(), m_pIrcView, and preprocessMessage().
|
virtual |
Referenced by internalOutput().
|
inlinevirtual |
Reimplemented in KviChannelWindow, KviQueryWindow, DccVideoWindow, and DccChatWindow.
|
inlinevirtual |
Reimplemented in KviChannelWindow, KviQueryWindow, DccVideoWindow, and DccChatWindow.
Referenced by KviUserInput::parseNonCommand(), SlowPasteController::pasteClipboard(), and SlowPasteController::pasteFile().
|
inlinevirtual |
|
protectedvirtual |
Reimplemented in KviChannelWindow.
References connection(), m_pConsole, KviIrcConnection::serverInfo(), KviControlCodes::stripControlBytes(), and KviIrcConnectionServerInfo::supportedChannelTypes().
Referenced by output(), and outputNoFmt().
|
slot |
References updateIcon().
Referenced by KviWindow().
|
protectedvirtual |
Reimplemented in KviChannelWindow, ClassEditorWindow, KviQueryWindow, PopupEditorWindow, ActionEditorWindow, AliasEditorWindow, RawEditorWindow, EventEditorWindow, KviConsoleWindow, HelpWindow, CodeTesterWindow, and KviDebugWindow.
References defaultTextCodec(), KviQString::Empty, KviQString::equalCI(), KviInput::isButtonsHidden(), KviInput::isUserFriendly(), m_pInput, m_pTextCodec, m_szTextEncoding, and KviConfigurationFile::writeEntry().
Referenced by KviDebugWindow::saveProperties(), HelpWindow::saveProperties(), KviConsoleWindow::saveProperties(), ActionEditorWindow::saveProperties(), KviQueryWindow::saveProperties(), KviChannelWindow::saveProperties(), and KviMainWindow::saveWindowProperties().
|
slot |
|
inline |
void KviWindow::setProgress | ( | int | iProgress | ) |
Sets the progress for the WindowList item.
If "progress" makes sense in your window, well, use this
iProgress | The progress to set |
References m_pWindowListItem, and KviWindowListItem::setProgress().
bool KviWindow::setTextEncoding | ( | const QString & | szTextEncoding | ) |
|
inlineprotected |
void KviWindow::setWindowName | ( | const QString & | szName | ) |
Sets the name of the window.
szName | The name of the window |
References m_szName, and windowNameChanged().
Referenced by KviQueryWindow::nickChange(), and KviQueryWindow::setTarget().
void KviWindow::setWindowTitle | ( | QString & | szTitle | ) |
References g_pMainWindow, and KviMainWindow::updateWindowTitle().
Referenced by updateCaption().
|
inline |
Returns the splitter of this window.
It shouldn't be null... but... well... who knows ? :D ...better check it
|
protectedslot |
|
inlinevirtual |
Reimplemented in KviChannelWindow, DccVideoWindow, DccVoiceWindow, KviQueryWindow, and DccChatWindow.
References KviQString::Empty.
Referenced by KviIrcContext::connectionEstablished(), KviIrcContext::connectionFailed(), KviIrcContext::connectionTerminated(), and KviApplication::notifierMessage().
|
inline |
|
inline |
|
protectedslot |
References createSystemTextEncodingPopup(), g_pMdiWindowSystemTextEncodingPopup, and m_pTextEncodingButton.
Referenced by createTextEncodingButton().
|
virtual |
References buttonContainer().
Referenced by KviChannelWindow::toggleToolButtons().
|
protectedslot |
References connect(), cryptControllerFinished(), KviKvs::done(), m_pInput, and m_pSplitter.
Referenced by createCryptControllerButton().
|
inlineprotectedvirtual |
Reimplemented in KviChannelWindow, KviQueryWindow, DccVideoWindow, KviConsoleWindow, and DccChatWindow.
Referenced by KviMainWindow::addWindow().
|
inlineprotectedvirtual |
Reimplemented in DccVideoWindow, and DccChatWindow.
Referenced by KviMainWindow::closeWindow().
|
inline |
Returns the type of the window.
Referenced by KviAction::activeWindowChanged(), KviAction::activeWindowSelectionStateChanged(), KviTreeWindowList::addItem(), KviMainWindow::addWindow(), KviConsoleWindow::applyHighlighting(), KviTreeWindowListItem::captionChanged(), chan_kvs_find_channel(), chan_kvs_fnc_isdead(), KviIrcView::doLinkToolTip(), KviWindowListButton::drawButtonLabel(), KviUserListView::emitDoubleClick(), KviUserListView::emitRightClick(), KviApplication::findConsole(), KviIrcView::getTextLine(), KviClassicWindowList::insertButton(), KviTreeWindowListItem::key(), KviKvsCoreSimpleCommands::KVSCSC(), KviIrcView::mouseDoubleClickEvent(), KviApplication::notifierMessage(), KviConsoleWindow::outputPrivmsg(), KviTreeWindowListItemDelegate::paint(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), KviUserInput::parseNonCommand(), KviApplication::resetAvatarForMatchingUsers(), KviApplication::restartLagMeters(), KviApplication::restartNotifyLists(), KviInputEditor::showContextPopup(), spaste_kvs_cmd_stop(), spaste_kvs_find_window(), tmphighlight_kvs_cmd_addchannel(), tmphighlight_kvs_cmd_addnick(), tmphighlight_kvs_cmd_removechannel(), tmphighlight_kvs_cmd_removenick(), tmphighlight_kvs_fnc_ischannelhighlighted(), tmphighlight_kvs_fnc_isnickhighlighted(), KviApplication::topmostConnectedConsole(), KviIrcView::triggerMouseRelatedKvsEvents(), window_kvs_cmd_setWindowTitle(), KviChannelWindow::~KviChannelWindow(), KviMainWindow::~KviMainWindow(), and KviQueryWindow::~KviQueryWindow().
|
virtual |
Returns a descriptive name of the window type.
References m_eType, m_typeTable, TypeCount, and Unknown.
Referenced by KviMainWindow::addWindow(), getConfigGroupName(), getDefaultLogFileName(), and savePropertiesAsDefault().
|
slot |
References g_pMainWindow, and KviMainWindow::undockWindow().
void KviWindow::unhighlight | ( | ) |
References m_pWindowListItem, and KviWindowListItem::unhighlight().
Referenced by window_kvs_cmd_highlight().
void KviWindow::updateBackgrounds | ( | QObject * | pObj = 0 | ) |
Referenced by moveEvent().
|
virtual |
References KviWindowListItem::captionChanged(), fillCaptionBuffers(), KviEvent_OnWindowTitleRequest, KVS_TRIGGER_EVENT_2_HALTED, m_pWindowListItem, m_szPlainTextCaption, and setWindowTitle().
Referenced by applyOptions(), KviIrcConnection::changeAwayState(), KviIrcConnection::changeUserMode(), DccChatWindow::connected(), DccVoiceWindow::connected(), DccVideoWindow::connected(), LinksWindow::endOfLinks(), focusInEvent(), KviDebugWindow::KviDebugWindow(), KviQueryWindow::KviQueryWindow(), KviQueryWindow::nickChange(), KviIrcConnection::nickChange(), KviIrcServerParser::parseChannelMode(), KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseNumericNames(), KviIrcConnection::serverInfoReceived(), KviChannelWindow::setAliveChan(), KviChannelWindow::setChannelMode(), KviChannelWindow::setChannelModeWithParam(), KviChannelWindow::setDeadChan(), KviQueryWindow::setDeadQuery(), KviIrcContext::setState(), KviQueryWindow::setTarget(), UserWindow::setWindowTitleStrings(), youAreDocked(), and youAreUndocked().
|
virtual |
References myIconPtr().
Referenced by reloadImages(), KviChannelWindow::setAliveChan(), KviQueryWindow::setAliveQuery(), KviChannelWindow::setDeadChan(), and KviQueryWindow::setDeadQuery().
|
inline |
Returns the KviIrcView of this window.
May be NULL if the window has no KviIrcView (and thus supports no direct output)
Referenced by KviApplication::heartbeat(), log_kvs_cmd_flush(), log_kvs_cmd_start(), log_kvs_cmd_stop(), log_kvs_fnc_file(), KviInputEditor::nextLine(), KviInputEditor::nextPage(), KviInputEditor::previousLine(), KviInputEditor::previousPage(), KviInputEditor::scrollToLastReadLine(), KviInputEditor::search(), KviMainWindow::windowActivated(), KviInputEditor::zoomDefault(), KviInputEditor::zoomIn(), and KviInputEditor::zoomOut().
|
inline |
Returns the windowList item.
The window has ALWAYS a WindowList item
Referenced by KviMainWindow::recreateWindowList(), KviWindowListBase::switchWindow(), and KviMainWindow::windowActivated().
|
inline |
Returns the name of this window.
Referenced by KviMainWindow::addWindow(), KviConsoleWindow::applyHighlighting(), KviTreeWindowListItem::captionChanged(), chan_kvs_fnc_getUrl(), chan_kvs_fnc_name(), KviInputEditor::completion(), KviIrcView::doLinkToolTip(), KviWindowListButton::drawButtonLabel(), KviDebugWindow::fillCaptionBuffers(), KviConsoleWindow::fillCaptionBuffers(), KviQueryWindow::fillCaptionBuffers(), KviQueryWindow::getBaseLogFileName(), KviChannelWindow::getBaseLogFileName(), KviChannelWindow::getConfigGroupName(), KviIrcConnection::heartbeat(), KviClassicWindowList::insertButton(), KviTreeWindowListItem::key(), NotifierWindowTab::labelChanged(), NotifierWindowTab::NotifierWindowTab(), KviQueryWindow::ownAction(), KviChannelWindow::ownAction(), KviQueryWindow::ownMessage(), KviChannelWindow::ownMessage(), KviIrcConnection::registerChannel(), KviKvsReport::report(), UrlDialog::sayToWin(), KviQueryWindow::target(), KviChannelWindow::target(), tmphighlight_kvs_cmd_addchannel(), tmphighlight_kvs_cmd_removechannel(), and tmphighlight_kvs_fnc_ischannelhighlighted().
|
signal |
Referenced by setWindowName().
|
protectedvirtual |
References m_bIsDocked, and updateCaption().
Referenced by KviMainWindow::dockWindow().
|
protectedvirtual |
References g_pMainWindow, m_bIsDocked, KviMemory::move(), myIconPtr(), and updateCaption().
Referenced by KviMainWindow::addWindow(), and KviMainWindow::undockWindow().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Referenced by KviWindow(), youAreDocked(), and youAreUndocked().
|
protected |
Referenced by inputMethodEvent(), and KviWindow().
|
protected |
Referenced by KviWindow(), and typeString().
|
protected |
Referenced by DccVideoWindow::DccVideoWindow(), DccWindow::DccWindow(), KviChannelWindow::KviChannelWindow(), KviQueryWindow::KviQueryWindow(), KviWindow(), KviConsoleWindow::resizeEvent(), DccVideoWindow::resizeEvent(), KviQueryWindow::resizeEvent(), KviChannelWindow::resizeEvent(), DccVideoWindow::sizeHint(), and KviChannelWindow::sizeHint().
|
protected |
Referenced by KviChannelWindow::closeEvent(), LinksWindow::connectionStateChange(), ListWindow::connectionStateChange(), SocketSpyWindow::fillCaptionBuffers(), LinksWindow::fillCaptionBuffers(), ListWindow::fillCaptionBuffers(), LinksWindow::hostPopupClicked(), ListWindow::itemDoubleClicked(), KviWindow(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), KviQueryWindow::ownMessage(), KviChannelWindow::ownMessage(), preprocessMessage(), LinksWindow::requestLinks(), ListWindow::requestList(), KviQueryWindow::setTarget(), ListWindow::stoplistdownload(), KviChannelWindow::updateModeLabel(), LinksWindow::~LinksWindow(), and ListWindow::~ListWindow().
|
protected |
Referenced by autoRaise(), childInserted(), childRemoved(), focusInEvent(), inputMethodEvent(), and KviWindow().
|
protected |
Referenced by KviChannelWindow::KviChannelWindow(), KviWindow(), and KviChannelWindow::toggleToolButtons().
|
protected |
Referenced by KviConsoleWindow::applyOptions(), applyOptions(), DccChatWindow::DccChatWindow(), DccVideoWindow::DccVideoWindow(), KviConsoleWindow::ircUriChanged(), KviChannelWindow::KviChannelWindow(), KviDebugWindow::KviDebugWindow(), KviQueryWindow::KviQueryWindow(), KviWindow(), loadProperties(), UserWindow::resizeEvent(), KviDebugWindow::resizeEvent(), DccChatWindow::resizeEvent(), KviConsoleWindow::resizeEvent(), DccVideoWindow::resizeEvent(), KviQueryWindow::resizeEvent(), KviChannelWindow::resizeEvent(), saveProperties(), KviDebugWindow::sizeHint(), DccChatWindow::sizeHint(), KviConsoleWindow::sizeHint(), KviQueryWindow::sizeHint(), KviChannelWindow::sizeHint(), toggleCryptController(), and UserWindow::UserWindow().
|
protected |
Referenced by SocketSpyWindow::applyOptions(), LinksWindow::applyOptions(), KviConsoleWindow::applyOptions(), FileTransferWindow::applyOptions(), ListWindow::applyOptions(), applyOptions(), DccChatWindow::DccChatWindow(), DccVideoWindow::DccVideoWindow(), DccVoiceWindow::DccVoiceWindow(), LogViewWindow::deleteCurrent(), FileTransferWindow::FileTransferWindow(), focusInEvent(), LogViewWindow::itemSelected(), LogViewWindow::keyPressEvent(), KviChannelWindow::KviChannelWindow(), KviDebugWindow::KviDebugWindow(), KviQueryWindow::KviQueryWindow(), KviWindow(), lastLineOfText(), lastMessageText(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), KviChannelWindow::loadProperties(), LogViewWindow::LogViewWindow(), lostUserFocus(), KviQueryWindow::mergeQuery(), output(), KviChannelWindow::outputMessage(), outputNoFmt(), UserWindow::resizeEvent(), KviChannelWindow::setAliveChan(), KviQueryWindow::setAliveQuery(), KviChannelWindow::showDoubleView(), SocketSpyWindow::sizeHint(), KviDebugWindow::sizeHint(), DccChatWindow::sizeHint(), KviConsoleWindow::sizeHint(), KviQueryWindow::sizeHint(), LogViewWindow::sizeHint(), DccVoiceWindow::sizeHint(), KviChannelWindow::sizeHint(), SocketSpyWindow::SocketSpyWindow(), and UserWindow::UserWindow().
|
protected |
Referenced by childRemoved(), eventFilter(), focusInEvent(), inputMethodEvent(), and KviWindow().
|
protected |
Referenced by DccChatWindow::DccChatWindow(), DccVideoWindow::DccVideoWindow(), DccVoiceWindow::DccVoiceWindow(), FileTransferWindow::FileTransferWindow(), HelpWindow::HelpWindow(), KviChannelWindow::KviChannelWindow(), KviDebugWindow::KviDebugWindow(), KviQueryWindow::KviQueryWindow(), KviWindow(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), KviDebugWindow::loadProperties(), HelpWindow::loadProperties(), KviConsoleWindow::loadProperties(), KviQueryWindow::loadProperties(), KviChannelWindow::loadProperties(), LogViewWindow::LogViewWindow(), SocketSpyWindow::resizeEvent(), KviDebugWindow::resizeEvent(), HelpWindow::resizeEvent(), LinksWindow::resizeEvent(), DccChatWindow::resizeEvent(), SharedFilesWindow::resizeEvent(), KviConsoleWindow::resizeEvent(), FileTransferWindow::resizeEvent(), LogViewWindow::resizeEvent(), ListWindow::resizeEvent(), DccVoiceWindow::resizeEvent(), DccVideoWindow::resizeEvent(), KviQueryWindow::resizeEvent(), KviChannelWindow::resizeEvent(), KviDebugWindow::saveProperties(), HelpWindow::saveProperties(), KviConsoleWindow::saveProperties(), KviQueryWindow::saveProperties(), KviChannelWindow::saveProperties(), SharedFilesWindow::SharedFilesWindow(), KviQueryWindow::showListView(), KviConsoleWindow::showNotifyList(), KviDebugWindow::sizeHint(), LinksWindow::sizeHint(), SharedFilesWindow::sizeHint(), KviQueryWindow::sizeHint(), ListWindow::sizeHint(), LogViewWindow::sizeHint(), FileTransferWindow::sizeHint(), DccVideoWindow::sizeHint(), KviChannelWindow::sizeHint(), SocketSpyWindow::SocketSpyWindow(), toggleCryptController(), KviChannelWindow::toggleListModeEditor(), KviChannelWindow::toggleListView(), and KviChannelWindow::toggleModeEditor().
|
protected |
Referenced by decodeText(), encodeText(), forceTextCodec(), KviWindow(), makeEncoder(), saveProperties(), and setTextEncoding().
|
protected |
Referenced by createTextEncodingButton(), KviWindow(), and textEncodingButtonClicked().
|
protected |
|
protected |
Referenced by KviChannelWindow::closeEvent(), fillCaptionBuffers(), KviChannelWindow::fillCaptionBuffers(), getBaseLogFileName(), KviQueryWindow::getInfoLabelText(), KviQueryWindow::getWindowListTipText(), KviWindow(), loadProperties(), KviChannelWindow::ownAction(), KviChannelWindow::removeMasks(), KviChannelWindow::setAliveChan(), KviChannelWindow::setMode(), setWindowName(), KviChannelWindow::toggleListModeEditor(), and KviChannelWindow::topicSelected().
|
protected |
Referenced by SocketSpyWindow::fillCaptionBuffers(), KviDebugWindow::fillCaptionBuffers(), CodeTesterWindow::fillCaptionBuffers(), KviIOGraphWindow::fillCaptionBuffers(), HelpWindow::fillCaptionBuffers(), LinksWindow::fillCaptionBuffers(), DccChatWindow::fillCaptionBuffers(), SharedFilesWindow::fillCaptionBuffers(), KviConsoleWindow::fillCaptionBuffers(), FileTransferWindow::fillCaptionBuffers(), ListWindow::fillCaptionBuffers(), LogViewWindow::fillCaptionBuffers(), DccVoiceWindow::fillCaptionBuffers(), EventEditorWindow::fillCaptionBuffers(), DccVideoWindow::fillCaptionBuffers(), RawEditorWindow::fillCaptionBuffers(), PopupEditorWindow::fillCaptionBuffers(), KviQueryWindow::fillCaptionBuffers(), fillCaptionBuffers(), KviChannelWindow::fillCaptionBuffers(), KviChannelWindow::getWindowListTipText(), UserWindow::setWindowTitleStrings(), updateCaption(), and UserWindow::UserWindow().
|
protected |
Referenced by createSystemTextEncodingPopup(), forceTextCodec(), saveProperties(), and setTextEncoding().
|
staticprotected |
Referenced by listWindowTypes(), and typeString().
|
protected |
Referenced by KviWindow().
|
read |