![]() |
KVIrc 5.2.6
Developer APIs
|
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) | |
KviConsoleWindow * | console () const |
Returns the console that this window belongs to. | |
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. | |
QByteArray | encodeText (const QString &szText) |
void | forceTextCodec (QTextCodec *pCodec) |
virtual void | getBaseLogFileName (QString &szBuffer) |
virtual void | getConfigGroupName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer, QDate date, bool bGzip, unsigned int uDatetimeFormat) |
virtual void | getWindowListTipText (QString &szBuffer) |
bool | hasAttention (AttentionLevel eLevel=VisibleAndActive) |
Returns whether this window is the active one. | |
virtual bool | highlightMe (unsigned int uValue) |
virtual bool | highlightMeter (unsigned int *puValue) |
QString | id () const |
Returns the global ID of this window. | |
KviInput * | input () const |
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 () const |
bool | isQuery () const |
KviWindow (Type eType, const QString &szName, KviConsoleWindow *pConsole=nullptr) | |
Constructs the window object. | |
virtual KviIrcView * | lastClickedView () const |
Returns the KviIrcView that was last clicked in this window. | |
const QString & | lastLineOfText () |
const QString & | lastMessageText () |
void | listWindowTypes () |
virtual const QString & | localNick () |
QTextEncoder * | makeEncoder () |
unsigned long int | numericId () const |
Returns the global ID of this window. | |
virtual void | output (int iMsgType, const char *pcFormat,...) |
virtual void | output (int iMsgType, const kvi_wchar_t *pwFormat,...) |
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 | output (int iMsgType, 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) |
void | pasteLastLog () |
Pastes the most recent channel log into the buffer. | |
virtual const QString & | plainTextCaption () |
void | setFixedCaption (const QString &szCaption) |
void | setProgress (int iProgress) |
Sets the progress for the WindowList item. | |
bool | setTextEncoding (const QString &szTextEncoding) |
void | setWindowName (const QString &szName) |
Sets the name of the window. | |
void | setWindowTitle (QString &szTitle) |
KviTalSplitter * | splitter () const |
Returns the splitter of this window. | |
virtual const QString & | target () |
QTextCodec * | textCodec () |
const QString & | textEncoding () const |
virtual void | toggleButtonContainer () |
Type | type () const |
Returns the type of the window. | |
virtual const char * | typeString () |
Returns a descriptive name of the window type. | |
void | unhighlight () |
void | updateBackgrounds (QObject *pObj=nullptr) |
virtual void | updateCaption () |
virtual void | updateIcon () |
KviIrcView * | view () const |
Returns the KviIrcView of this window. | |
KviWindowListItem * | windowListItem () const |
Returns the windowList item. | |
const QString & | windowName () const |
Returns the name of this window. | |
~KviWindow () | |
Destroys the window object. | |
Protected Slots | |
void | childDestroyed () |
void | cryptControllerFinished () |
void | cryptSessionInfoDestroyed () |
void | systemTextEncodingPopupActivated (QAction *pAction) |
void | textEncodingButtonClicked () |
void | toggleCryptController () |
Protected Member Functions | |
void | childEvent (QChildEvent *pEvent) override |
void | childInserted (QWidget *pObject) |
void | childRemoved (QWidget *pObject) |
virtual void | childrenTreeChanged (QWidget *pAdded) |
void | closeEvent (QCloseEvent *pEvent) override |
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) override |
virtual void | fillCaptionBuffers () |
void | fillSingleColorCaptionBuffers (const QString &szName) |
void | focusInEvent (QFocusEvent *) override |
bool | focusNextPrevChild (bool bNext) override |
void | inputMethodEvent (QInputMethodEvent *e) override |
virtual void | loadProperties (KviConfigurationFile *pCfg) |
virtual void | lostUserFocus () |
void | moveEvent (QMoveEvent *pEvent) override |
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 |
Private Member Functions | |
QByteArray | loadLogFile (const QString &szFileName, bool bGzip) |
Loads a log file. | |
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 = nullptr ) |
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, nullptr, and reloadImages().
Referenced by ActionEditorWindow::ActionEditorWindow(), KviConsoleWindow::activeWindow(), AliasEditorWindow::AliasEditorWindow(), KviConsoleWindow::applyHighlighting(), ClassEditorWindow::ClassEditorWindow(), CodeTesterWindow::CodeTesterWindow(), DccChatWindow::DccChatWindow(), DccWindow::dccMarshalOutputWindow(), DccVideoWindow::DccVideoWindow(), DccVoiceWindow::DccVoiceWindow(), DccWindow::DccWindow(), KviConsoleWindow::destroyConnection(), EventEditorWindow::EventEditorWindow(), FileTransferWindow::FileTransferWindow(), HelpWindow::HelpWindow(), internalOutput(), KviChannelWindow::KviChannelWindow(), KviConsoleWindow::KviConsoleWindow(), KviDebugWindow::KviDebugWindow(), KviIOGraphWindow::KviIOGraphWindow(), KviKvsScriptWindowWindow::KviKvsScriptWindowWindow(), KviQueryWindow::KviQueryWindow(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), LogViewWindow::LogViewWindow(), KviConsoleWindow::outputPrivmsg(), outputProxy(), PopupEditorWindow::PopupEditorWindow(), RawEditorWindow::RawEditorWindow(), UrlDialog::sayToWin(), SharedFilesWindow::SharedFilesWindow(), SocketSpyWindow::SocketSpyWindow(), KviConsoleWindow::triggerOnHighlight(), UrlDialog::UrlDialog(), and UserWindow::UserWindow().
KviWindow::~KviWindow | ( | ) |
Destroys the window object.
References destroyWindowListItem(), g_pApp, g_pMdiWindowSystemMainPopup, g_pMdiWindowSystemTextEncodingPopup, g_pMdiWindowSystemTextEncodingPopupSmart, g_pMdiWindowSystemTextEncodingPopupSmartUtf8, and g_pMdiWindowSystemTextEncodingPopupStandard.
|
virtual |
Reimplemented in KviChannelWindow.
Referenced by KviTreeWindowListItemDelegate::paint().
|
virtual |
Reimplemented in FileTransferWindow, KviChannelWindow, KviConsoleWindow, KviQueryWindow, LinksWindow, ListWindow, and SocketSpyWindow.
References m_pInput, m_pIrcView, and updateCaption().
Referenced by FileTransferWindow::applyOptions(), KviChannelWindow::applyOptions(), KviConsoleWindow::applyOptions(), KviQueryWindow::applyOptions(), LinksWindow::applyOptions(), ListWindow::applyOptions(), and SocketSpyWindow::applyOptions().
|
slot |
References g_pMainWindow, isDocked(), and m_pFocusHandler.
Referenced by delayedAutoRaise().
|
inlinevirtual |
Reimplemented in DccChatWindow, KviChannelWindow, and KviQueryWindow.
References m_pButtonBox.
Referenced by createCryptControllerButton(), KviConsoleWindow::KviConsoleWindow(), and toggleButtonContainer().
|
protectedslot |
References childRemoved().
Referenced by childInserted().
|
overrideprotected |
References childInserted(), and childRemoved().
|
protected |
References childDestroyed(), childInserted(), connect(), and m_pFocusHandler.
Referenced by childEvent(), childInserted(), and eventFilter().
|
protected |
References childRemoved(), m_pFocusHandler, and m_pLastFocusedChild.
Referenced by childDestroyed(), childEvent(), childRemoved(), and eventFilter().
|
protectedvirtual |
|
overrideprotected |
References g_pMainWindow.
Referenced by KviChannelWindow::closeEvent(), and KviConsoleWindow::closeEvent().
KviIrcConnection * KviWindow::connection | ( | ) |
Returns the current IRC connection (if any)
References KviIrcContext::connection(), console(), KviConsoleWindow::context(), and context().
Referenced by 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(), KviConsoleWindow::connectionAttached(), KviConsoleWindow::currentAvatar(), KviConsoleWindow::currentNetworkName(), dcc_fill_local_nick_user_host(), dcc_kvs_cmd_get(), dcc_kvs_get_listen_ip_address(), dcc_module_reply_errmsg(), dccModuleParseDccGet(), defaultTextCodec(), KviTrayIconWidget::doAway(), KviIrcContextDisplay::drawContents(), KviKvsTreeNodeAliasSimpleCommand::execute(), ListWindow::exportList(), KviChannelWindow::fillCaptionBuffers(), KviQueryWindow::fillCaptionBuffers(), KviTrayIconWidget::fillContextPopup(), KviApplication::fillRecentChannelsPopup(), KviApplication::fillRecentNicknamesPopup(), KviConsoleWindow::fillStatusString(), KviApplication::findConsole(), KviChannelWindow::getBaseLogFileName(), KviConsoleWindow::getBaseLogFileName(), KviQueryWindow::getBaseLogFileName(), KviChannelWindow::getConfigGroupName(), KviQueryWindow::getInfoLabelText(), KviWindowListBase::getTextForConsole(), KviConsoleWindow::getUserTipText(), KviConsoleWindow::getWindowListTipText(), KviQueryWindow::getWindowListTipText(), KviIsOnNotifyListManager::handleIsOn(), DccBroker::handleResumeRequest(), LinksWindow::hostPopupClicked(), KviConsoleWindow::isIPv6Connection(), ListWindow::itemDoubleClicked(), KviChannelWindow::KviChannelWindow(), KviQueryWindow::KviQueryWindow(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), KviChannelWindow::myFlags(), KviConsoleWindow::outputPrivmsg(), KviChannelWindow::ownAction(), KviQueryWindow::ownAction(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), 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(), KviChannelWindow::removeMasks(), 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(), KviTopicWidget::switchMode(), KviIrcConnectionRequestQueue::timerSlot(), KviIrcContextDisplay::tipRequest(), KviChannelWindow::toggleListModeEditor(), KviChannelWindow::topicSelected(), KviConsoleWindow::triggerOnHighlight(), 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
References m_pConsole.
Referenced by KviTreeWindowList::addItem(), avatar_kvs_cmd_set(), avatar_kvs_cmd_unset(), chan_kvs_fnc_common(), channelsjoin_kvs_cmd_open(), connection(), 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(), DccWindow::DccWindow(), KviIrcContextDisplay::drawContents(), KviQueryWindow::getBaseLogFileName(), KviQueryWindow::getWindowListTipText(), SocketSpyWindow::incomingMessage(), KviClassicWindowList::insertButton(), KviKvsCallbackObject::KviKvsCallbackObject(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), links_kvs_cmd_open(), list_kvs_cmd_open(), SocketSpyWindow::outgoingMessage(), KviTreeWindowListItemDelegate::paint(), KviUserInput::parseNonCommand(), socketspy_kvs_cmd_open(), KviWindowListBase::switchWindow(), 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(), KviChannelWindow::getBaseLogFileName(), KviQueryWindow::getBaseLogFileName(), LinksWindow::getBaseLogFileName(), ListWindow::getBaseLogFileName(), SocketSpyWindow::getBaseLogFileName(), KviConsoleWindow::isConnected(), KviKvsCoreSimpleCommands::KVSCSC(), links_kvs_cmd_open(), list_kvs_cmd_open(), KviChannelWindow::setAliveChan(), KviQueryWindow::setAliveQuery(), KviChannelWindow::setDeadChan(), KviQueryWindow::setDeadQuery(), SocketSpyWindow::SocketSpyWindow(), KviConsoleWindow::state(), 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 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(), 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(), and g_pIconManager.
Referenced by createTextEncodingButton().
|
protectedvirtual |
References g_pMainWindow, and m_pWindowListItem.
Referenced by KviMainWindow::addWindow().
|
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(), KviChannelWindow::ownAction(), KviQueryWindow::ownAction(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), KviIrcServerParser::parseCtcpReplyAvatar(), KviIrcServerParser::parseCtcpReplyUserinfo(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseCtcpRequestDcc(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPart(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseLiteralTopic(), KviIrcServerParser::parseMessage(), KviIrcServerParser::parseNumeric020(), KviIrcServerParser::parseNumericChanUrl(), KviIrcServerParser::parseNumericCodePageScheme(), KviIrcServerParser::parseNumericNoSuchNick(), KviIrcServerParser::parseNumericTopic(), and KviIrcServerParser::parseNumericWhoisServer().
|
virtual |
References connection(), KviApplication::defaultTextCodec(), and KviIrcConnection::textCodec().
Referenced by createSystemTextEncodingPopup(), decodeText(), encodeText(), forceTextCodec(), makeEncoder(), saveProperties(), and textCodec().
void KviWindow::delayedAutoRaise | ( | ) |
References autoRaise().
Referenced by help_kvs_cmd_open(), KviIrcServerParser::parseLiteralNick(), and url_kvs_cmd_list().
void KviWindow::delayedClose | ( | ) |
Referenced by dcc_kvs_cmd_abort(), and KviTreeWindowListTreeWidget::mousePressEvent().
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_pApp, 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, and m_pWindowListItem.
Referenced by ~KviWindow().
|
slot |
References g_pMainWindow.
|
inline |
References defaultTextCodec(), and m_pTextCodec.
Referenced by KviChannelWindow::closeEvent(), KviKvsCoreSimpleCommands::KVSCSC(), DccChatWindow::ownAction(), DccVideoWindow::ownAction(), KviChannelWindow::ownAction(), KviQueryWindow::ownAction(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), KviChannelWindow::removeMasks(), and KviChannelWindow::topicSelected().
|
overrideprotected |
References childInserted(), childRemoved(), g_pActiveWindow, g_pMainWindow, and m_pLastFocusedChild.
Referenced by FileTransferWindow::eventFilter(), and KviChannelWindow::eventFilter().
|
protectedvirtual |
Reimplemented in CodeTesterWindow, DccChatWindow, DccVideoWindow, DccVoiceWindow, EventEditorWindow, FileTransferWindow, HelpWindow, KviChannelWindow, KviConsoleWindow, KviDebugWindow, KviIOGraphWindow, KviQueryWindow, LinksWindow, ListWindow, LogViewWindow, PopupEditorWindow, RawEditorWindow, SharedFilesWindow, SocketSpyWindow, and UserWindow.
References fillSingleColorCaptionBuffers(), m_szName, and m_szPlainTextCaption.
Referenced by KviKvsScriptWindowWindow::setWindowTitleString(), and updateCaption().
|
inlineprotected |
References m_szPlainTextCaption.
Referenced by fillCaptionBuffers(), and UserWindow::UserWindow().
|
overrideprotected |
References g_pActiveWindow, g_pMainWindow, m_pFocusHandler, m_pIrcView, m_pLastFocusedChild, and updateCaption().
Referenced by DccVoiceWindow::focusInEvent().
|
overrideprotected |
void KviWindow::forceTextCodec | ( | QTextCodec * | pCodec | ) |
References defaultTextCodec(), m_pTextCodec, and m_szTextEncoding.
|
virtual |
Reimplemented in DccChatWindow, DccVideoWindow, DccVoiceWindow, FileTransferWindow, KviChannelWindow, KviConsoleWindow, KviDebugWindow, KviQueryWindow, LinksWindow, ListWindow, SharedFilesWindow, and SocketSpyWindow.
References m_szName, and szBuffer.
Referenced by getDefaultLogFileName().
|
virtual |
Reimplemented in ActionEditorWindow, AliasEditorWindow, CodeTesterWindow, EventEditorWindow, KviChannelWindow, PopupEditorWindow, and RawEditorWindow.
References szBuffer, and typeString().
Referenced by KviMainWindow::addWindow(), KviMainWindow::closeWindow(), and savePropertiesAsDefault().
void KviWindow::getDefaultLogFileName | ( | QString & | szBuffer | ) |
References getDefaultLogFileName(), KVI_OPTION_BOOL, KVI_OPTION_UINT, KviOption_boolGzipLogs, KviOption_uintOutputDatetimeFormat, and szBuffer.
Referenced by getDefaultLogFileName(), log_kvs_cmd_start(), and pasteLastLog().
void KviWindow::getDefaultLogFileName | ( | QString & | szBuffer, |
QDate | date, | ||
bool | bGzip, | ||
unsigned int | uDatetimeFormat ) |
References KviKvsVariant::asString(), KviFileUtils::cleanFileName(), KviFileUtils::encodeFileName(), KviQString::ensureLastCharIs(), KviQString::escapeKvs(), KviKvsScript::evaluate(), g_pApp, getBaseLogFileName(), KVI_OPTION_STRING, KVI_PATH_SEPARATOR_CHAR, KviOption_stringLogsDynamicPath, KviApplication::Log, KviFileUtils::makeDir(), KviQString::PermitFunctions, KviQString::PermitVariables, szBuffer, and typeString().
|
inlinevirtual |
Reimplemented in KviChannelWindow, KviConsoleWindow, and KviQueryWindow.
References m_szPlainTextCaption, and szBuffer.
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(), internalOutput(), KviNotifyListManager::notifyOnLine(), KviConsoleWindow::outputPrivmsg(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), NotifierWindow::shouldHideIfMainWindowGotAttention(), and KviConsoleWindow::triggerOnHighlight().
|
virtual |
References m_pWindowListItem.
Referenced by window_kvs_cmd_highlight().
|
virtual |
References m_pWindowListItem.
|
inline |
Returns the global ID of this window.
This is unique in the application
References m_uId.
Referenced by KviApplication::registerWindow(), spaste_kvs_cmd_list(), spaste_kvs_cmd_stop(), KviApplication::unregisterWindow(), and window_kvs_fnc_open().
|
inline |
References KviInput, and m_pInput.
Referenced by window_kvs_cmd_insertInInputText(), and window_kvs_cmd_setInputText().
|
overrideprotected |
References e, 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(), 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, KviWindow(), m_pWindowListItem, outputNoFmt(), outputProxy(), KviIrcView::SetLineMark, and KviIrcView::TriggersNotification.
Referenced by output(), output(), output(), output(), output(), output(), KviChannelWindow::outputMessage(), outputNoFmt(), outputNoFmt(), and outputNoFmt().
|
inline |
Returns true if the window is a channel
References Channel, and m_eType.
Referenced by KviMainWindow::addWindow(), and window_kvs_cmd_setBackground().
|
inline |
Returns true if the window is a console
References Console, and m_eType.
Referenced by KviMainWindow::closeWindow(), and KviMainWindow::~KviMainWindow().
|
inline |
|
inline |
|
inlinevirtual |
Returns the KviIrcView that was last clicked in this window.
Acts as view() except for split view windows See also: view()
Reimplemented in KviChannelWindow.
References m_pIrcView.
const QString & KviWindow::lastLineOfText | ( | ) |
References KviQString::Empty, and m_pIrcView.
const QString & KviWindow::lastMessageText | ( | ) |
References KviQString::Empty, and m_pIrcView.
void KviWindow::listWindowTypes | ( | ) |
References __tr2qs, i, KVI_OUT_SYSTEMMESSAGE, m_typeTable, and outputNoFmt().
Referenced by window_kvs_cmd_listtypes().
|
private |
Loads a log file.
It opens a logfile, gzipped or not, and returns the content in a buffer
szFileName | The filename of the log file |
bGzip | Whether the log file is gzipped |
Referenced by pasteLastLog().
|
protectedvirtual |
Reimplemented in ActionEditorWindow, AliasEditorWindow, ClassEditorWindow, CodeTesterWindow, EventEditorWindow, HelpWindow, KviChannelWindow, KviConsoleWindow, KviDebugWindow, KviQueryWindow, PopupEditorWindow, and RawEditorWindow.
References KviQString::Empty, KVI_OPTION_BOOL, KviOption_boolCommandlineInUserFriendlyModeByDefault, KviOption_boolHideInputToolButtons, m_pInput, m_szName, KviConfigurationFile::readBoolEntry(), KviConfigurationFile::readEntry(), and setTextEncoding().
Referenced by KviMainWindow::addWindow(), ActionEditorWindow::loadProperties(), HelpWindow::loadProperties(), KviChannelWindow::loadProperties(), KviConsoleWindow::loadProperties(), KviDebugWindow::loadProperties(), and KviQueryWindow::loadProperties().
|
inlinevirtual |
Reimplemented in DccChatWindow, and DccVideoWindow.
References KviQString::Empty.
|
protectedvirtual |
Reimplemented in KviChannelWindow.
References m_pIrcView.
Referenced by KviChannelWindow::lostUserFocus().
QTextEncoder * KviWindow::makeEncoder | ( | ) |
References defaultTextCodec(), and m_pTextCodec.
Referenced by KviChannelWindow::ownAction(), KviChannelWindow::ownMessage(), and KviQueryWindow::ownMessage().
|
overrideprotected |
References updateBackgrounds().
|
protectedvirtual |
Reimplemented in ActionEditorWindow, AliasEditorWindow, ClassEditorWindow, CodeTesterWindow, DccChatWindow, DccVideoWindow, DccVoiceWindow, EventEditorWindow, FileTransferWindow, HelpWindow, KviChannelWindow, KviConsoleWindow, KviDebugWindow, KviIOGraphWindow, KviKvsScriptWindowWindow, KviQueryWindow, LinksWindow, ListWindow, LogViewWindow, PopupEditorWindow, RawEditorWindow, SharedFilesWindow, SocketSpyWindow, UrlDialog, and UserWindow.
References KviIconManager::DefaultIcon, and g_pIconManager.
Referenced by KviWindowStack::fillWindowPopup(), KviTreeWindowListItemDelegate::paint(), updateIcon(), and youAreUndocked().
|
inline |
Returns the global ID of this window.
This is unique in the application
References m_uId.
Referenced by KviKvsCoreFunctions::KVSCF().
|
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(), addon_kvs_cmd_installfiles(), addon_kvs_cmd_list(), addon_kvs_cmd_register(), addon_kvs_cmd_uninstall(), avatar_kvs_cmd_notify(), KviChannelWindow::checkChannelSync(), DccBroker::chooseSaveFileName(), DccChatWindow::connected(), DccVideoWindow::connected(), DccVoiceWindow::connected(), SocketSpyWindow::connectionInitiated(), DccChatWindow::connectionInProgress(), DccVideoWindow::connectionInProgress(), DccVoiceWindow::connectionInProgress(), SocketSpyWindow::connectionTerminated(), cryptSessionInfoDestroyed(), dcc_module_request_error(), dccModuleParseDccChat(), dccModuleParseDccGet(), dccModuleParseDccRecv(), dccModuleParseDccRSend(), dccModuleParseDccSend(), dccModuleParseDccVideo(), dccModuleParseDccVoice(), dumpChildObjects(), KviIrcServerParser::echoCtcpReply(), KviIrcServerParser::echoCtcpRequest(), LinksWindow::endOfLinks(), KviKvsPopupMenuItem::evaluateCondition(), KviKvsPopupMenuItemWithTextAndIcon::evaluateIcon(), KviKvsPopupMenuItemWithTextAndIcon::evaluateText(), DccChatWindow::event(), DccFileTransfer::event(), DccVideoWindow::event(), DccVoiceWindow::event(), KviIdentSentinel::event(), KviKvsTreeNodeAliasSimpleCommand::execute(), KviKvsPopupMenu::executeEpilogues(), KviKvsPopupMenu::executePrologues(), KviApplication::fileDownloadTerminated(), KviKvsPopupMenuItemExtMenu::fill(), DccChatWindow::handleMarshalError(), DccVideoWindow::handleMarshalError(), DccVoiceWindow::handleMarshalError(), HttpFileTransfer::headersReceived(), KviIrcConnection::heartbeat(), LinksWindow::hostPopupClicked(), KviApplication::ipcMessage(), KviKvsCoreSimpleCommands::KVSCSC(), KviModuleManager::loadModule(), KviKvsAsyncDnsOperation::lookupTerminated(), KviQueryWindow::notifyCommonChannels(), KviQueryWindow::notifyTargetChange(), objects_kvs_fnc_listObjects(), options_kvs_module_print_pages(), KviIrcServerParser::otherChannelError(), DccFileTransfer::outputAndLog(), DccFileTransfer::outputAndLog(), DccChatWindow::ownAction(), DccVideoWindow::ownAction(), KviChannelWindow::ownAction(), KviQueryWindow::ownAction(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), KviIrcServerParser::parseChannelHelp(), KviIrcServerParser::parseChannelMode(), KviIrcServerParser::parseCommandEndOfHelp(), KviIrcServerParser::parseCommandSyntaxHelp(), KviIrcServerParser::parseCtcpReplyPing(), KviIrcServerParser::parseCtcpRequest(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseCtcpRequestAvatar(), KviIrcServerParser::parseCtcpRequestDcc(), KviIrcServerParser::parseLiteralCap(), 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::parseNumericWhospcrpl(), KviIrcServerParser::parseNumericWhowasUser(), KviIrcServerParser::parseNumericYouHaveCallerID(), KviIrcServerParser::parseNumericYoureOper(), KviIrcServerParser::parseNumericYourUID(), pasteLastLog(), LinksWindow::processData(), ListWindow::processData(), DccBroker::recvFileManage(), regchan_kvs_cmd_showlist(), reguser_kvs_cmd_showlist(), DccBroker::renameDccSendFile(), DccBroker::renameOverwriteResume(), KviKvsReport::report(), HttpFileTransfer::requestSent(), DccBroker::rsendExecute(), DccBroker::sendFileExecute(), KviConsoleWindow::setAvatar(), sharedfile_kvs_cmd_list(), snd_kvs_cmd_autodetect(), spaste_kvs_cmd_list(), DccChatWindow::sslError(), DccChatWindow::startConnection(), DccVideoWindow::startConnection(), DccVoiceWindow::startConnection(), HttpFileTransfer::statusMessage(), KviChannelWindow::topicSelected(), HttpFileTransfer::transferTerminated(), and KviKvsEventManager::triggerHandlers().
|
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(), 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 dccModuleParseDccRecv(), LinksWindow::endOfLinks(), ListWindow::endOfList(), DccVideoWindow::event(), DccVoiceWindow::event(), KviIdentSentinel::event(), KviKvsScript::execute(), SocketSpyWindow::incomingMessage(), internalOutput(), LogViewWindow::itemSelected(), KviIrcConnection::keepChannelsOpenAfterDisconnect(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), listWindowTypes(), KviNotifyListManager::notifyOffLine(), KviNotifyListManager::notifyOnLine(), SocketSpyWindow::outgoingMessage(), KviConsoleWindow::outputPrivmsg(), 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(), sharedfile_kvs_cmd_list(), snd_kvs_cmd_autodetect(), DccChatWindow::startingSSLHandshake(), and ListWindow::stoplistdownload().
|
inlinevirtual |
References internalOutput(), and m_pIrcView.
|
virtual |
References internalOutput(), m_pIrcView, and preprocessMessage().
|
virtual |
References KviWindow().
Referenced by internalOutput().
|
inlinevirtual |
Reimplemented in DccChatWindow, DccVideoWindow, KviChannelWindow, and KviQueryWindow.
|
inlinevirtual |
Reimplemented in DccChatWindow, DccVideoWindow, KviChannelWindow, and KviQueryWindow.
Referenced by KviUserInput::parseNonCommand().
void KviWindow::pasteLastLog | ( | ) |
Pastes the most recent channel log into the buffer.
It searches for the most recent channel log of the channel we have just joined, and pastes into the buffer the last N lines, where N is get from the options
References __tr2qs, Channel, DeadChannel, getDefaultLogFileName(), KVI_OPTION_UINT, KVI_OUT_LOG, KviOption_uintDaysIntervalToPasteOnChannelJoin, KviOption_uintDaysIntervalToPasteOnQueryJoin, KviOption_uintLinesToPasteOnChannelJoin, KviOption_uintLinesToPasteOnQueryJoin, loadLogFile(), output(), and type().
Referenced by KviChannelWindow::KviChannelWindow(), and KviQueryWindow::KviQueryWindow().
|
inlinevirtual |
References m_szPlainTextCaption.
Referenced by NotifierWindow::paintEvent(), and urllist_module_event_onUrl().
|
protectedvirtual |
Reimplemented in KviChannelWindow.
References m_pConsole, and KviControlCodes::stripControlBytes().
Referenced by output(), output(), output(), output(), output(), output(), outputNoFmt(), and outputNoFmt().
|
slot |
References updateIcon().
Referenced by KviWindow().
|
protectedvirtual |
Reimplemented in ActionEditorWindow, AliasEditorWindow, ClassEditorWindow, CodeTesterWindow, EventEditorWindow, HelpWindow, KviChannelWindow, KviConsoleWindow, KviDebugWindow, KviQueryWindow, PopupEditorWindow, and RawEditorWindow.
References defaultTextCodec(), KviQString::Empty, KviQString::equalCI(), m_pInput, m_pTextCodec, m_szTextEncoding, and KviConfigurationFile::writeEntry().
Referenced by ActionEditorWindow::saveProperties(), HelpWindow::saveProperties(), KviChannelWindow::saveProperties(), KviConsoleWindow::saveProperties(), KviDebugWindow::saveProperties(), KviQueryWindow::saveProperties(), and KviMainWindow::saveWindowProperties().
|
slot |
References KviQString::equalCI(), g_pMainWindow, getConfigGroupName(), and typeString().
|
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.
bool KviWindow::setTextEncoding | ( | const QString & | szTextEncoding | ) |
References KviLocale::codecForName(), KviLocale::instance(), m_pTextCodec, and m_szTextEncoding.
Referenced by loadProperties(), KviIrcServerParser::parseNumericCodePageSet(), and systemTextEncodingPopupActivated().
|
inlineprotected |
References m_eType.
Referenced by KviChannelWindow::setAliveChan(), KviQueryWindow::setAliveQuery(), KviChannelWindow::setDeadChan(), and KviQueryWindow::setDeadQuery().
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.
Referenced by updateCaption().
|
inline |
Returns the splitter of this window.
It shouldn't be null... but... well... who knows ? :D ...better check it
References KviTalSplitter, and m_pSplitter.
|
protectedslot |
|
inlinevirtual |
Reimplemented in DccChatWindow, DccVideoWindow, DccVoiceWindow, KviChannelWindow, and KviQueryWindow.
References KviQString::Empty.
Referenced by KviKvsCoreFunctions::KVSCF(), and KviApplication::notifierMessage().
|
inline |
References defaultTextCodec(), and m_pTextCodec.
|
inline |
References m_szTextEncoding.
|
protectedslot |
References createSystemTextEncodingPopup(), g_pMdiWindowSystemTextEncodingPopup, and m_pTextEncodingButton.
Referenced by createTextEncodingButton().
|
virtual |
References buttonContainer().
Referenced by KviChannelWindow::toggleToolButtons().
|
protectedslot |
References connect(), cryptControllerFinished(), m_pInput, and m_pSplitter.
Referenced by createCryptControllerButton().
|
inlineprotectedvirtual |
Reimplemented in DccChatWindow, DccVideoWindow, KviChannelWindow, KviConsoleWindow, and KviQueryWindow.
Referenced by KviMainWindow::addWindow().
|
inlineprotectedvirtual |
Reimplemented in DccChatWindow, and DccVideoWindow.
Referenced by KviMainWindow::closeWindow().
|
inline |
Returns the type of the window.
References m_eType.
Referenced by KviTreeWindowList::addItem(), KviConsoleWindow::applyHighlighting(), chan_kvs_find_channel(), chan_kvs_fnc_isdead(), KviConsoleWindow::destroyConnection(), KviApplication::findConsole(), KviClassicWindowList::insertButton(), KviKvsCoreSimpleCommands::KVSCSC(), KviApplication::notifierMessage(), KviConsoleWindow::outputPrivmsg(), KviTreeWindowListItemDelegate::paint(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), KviUserInput::parseNonCommand(), pasteLastLog(), KviApplication::resetAvatarForMatchingUsers(), KviApplication::restartLagMeters(), KviApplication::restartNotifyLists(), spaste_kvs_cmd_stop(), 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(), window_kvs_cmd_setWindowTitle(), KviChannelWindow::~KviChannelWindow(), 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.
void KviWindow::unhighlight | ( | ) |
References m_pWindowListItem.
Referenced by window_kvs_cmd_highlight().
void KviWindow::updateBackgrounds | ( | QObject * | pObj = nullptr | ) |
References updateBackgrounds().
Referenced by moveEvent(), and updateBackgrounds().
|
virtual |
References fillCaptionBuffers(), KviEvent_OnWindowTitleRequest, KVS_TRIGGER_EVENT_2_HALTED, m_pWindowListItem, m_szPlainTextCaption, and setWindowTitle().
Referenced by applyOptions(), DccChatWindow::connected(), DccVideoWindow::connected(), DccVoiceWindow::connected(), LinksWindow::endOfLinks(), focusInEvent(), KviDebugWindow::KviDebugWindow(), KviQueryWindow::KviQueryWindow(), KviQueryWindow::nickChange(), KviIrcServerParser::parseChannelMode(), KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseNumericNames(), KviChannelWindow::setAliveChan(), KviChannelWindow::setChannelMode(), KviChannelWindow::setChannelModeWithParam(), KviChannelWindow::setDeadChan(), KviQueryWindow::setDeadQuery(), 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 nullptr if the window has no KviIrcView (and thus supports no direct output)
References m_pIrcView.
Referenced by log_kvs_cmd_flush(), log_kvs_cmd_start(), log_kvs_cmd_stop(), log_kvs_fnc_file(), and window_kvs_cmd_setBackground().
|
inline |
Returns the windowList item.
The window has ALWAYS a WindowList item
References KviWindowListItem, and m_pWindowListItem.
Referenced by KviMainWindow::windowActivated().
|
inline |
Returns the name of this window.
References m_szName.
Referenced by KviMainWindow::addWindow(), KviConsoleWindow::applyHighlighting(), chan_kvs_fnc_getUrl(), chan_kvs_fnc_name(), KviConsoleWindow::fillCaptionBuffers(), KviDebugWindow::fillCaptionBuffers(), KviQueryWindow::fillCaptionBuffers(), KviChannelWindow::getBaseLogFileName(), KviQueryWindow::getBaseLogFileName(), KviChannelWindow::getConfigGroupName(), KviIrcConnection::heartbeat(), KviClassicWindowList::insertButton(), KviChannelWindow::ownAction(), KviQueryWindow::ownAction(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), KviIrcConnection::registerChannel(), UrlDialog::sayToWin(), KviChannelWindow::target(), KviQueryWindow::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, myIconPtr(), and updateCaption().
Referenced by KviMainWindow::addWindow(), and KviMainWindow::undockWindow().
|
friend |
|
friend |
References KviMainWindow.
Referenced by KviMainWindow.
|
friend |
References KviTreeWindowList.
Referenced by KviTreeWindowList.
|
friend |
References KviTreeWindowListItem.
Referenced by KviTreeWindowListItem.
|
friend |
References KviTreeWindowListItemDelegate.
Referenced by KviTreeWindowListItemDelegate.
|
friend |
References KviWindowListButton.
Referenced by KviWindowListButton.
|
friend |
References KviWindowListItem.
Referenced by KviWindowListItem, and windowListItem().
|
friend |
References KviWindowStack.
Referenced by KviWindowStack.
|
protected |
Referenced by isDocked(), KviWindow(), youAreDocked(), and youAreUndocked().
|
protected |
Referenced by inputMethodEvent(), and KviWindow().
|
protected |
Referenced by isChannel(), isConsole(), isQuery(), KviWindow(), setType(), type(), and typeString().
|
protected |
Referenced by buttonContainer(), DccVideoWindow::DccVideoWindow(), DccWindow::DccWindow(), KviChannelWindow::KviChannelWindow(), KviConsoleWindow::KviConsoleWindow(), KviQueryWindow::KviQueryWindow(), KviWindow(), DccVideoWindow::resizeEvent(), KviChannelWindow::resizeEvent(), KviConsoleWindow::resizeEvent(), KviQueryWindow::resizeEvent(), DccVideoWindow::sizeHint(), and KviChannelWindow::sizeHint().
|
protected |
Referenced by KviChannelWindow::closeEvent(), LinksWindow::connectionStateChange(), ListWindow::connectionStateChange(), console(), LinksWindow::fillCaptionBuffers(), ListWindow::fillCaptionBuffers(), SocketSpyWindow::fillCaptionBuffers(), LinksWindow::hostPopupClicked(), ListWindow::itemDoubleClicked(), KviWindow(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), KviChannelWindow::ownMessage(), KviQueryWindow::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(), input(), KviConsoleWindow::ircUriChanged(), KviChannelWindow::KviChannelWindow(), KviConsoleWindow::KviConsoleWindow(), KviDebugWindow::KviDebugWindow(), KviQueryWindow::KviQueryWindow(), KviWindow(), loadProperties(), DccChatWindow::resizeEvent(), DccVideoWindow::resizeEvent(), KviChannelWindow::resizeEvent(), KviConsoleWindow::resizeEvent(), KviDebugWindow::resizeEvent(), KviQueryWindow::resizeEvent(), UserWindow::resizeEvent(), saveProperties(), DccChatWindow::sizeHint(), KviChannelWindow::sizeHint(), KviConsoleWindow::sizeHint(), KviDebugWindow::sizeHint(), KviQueryWindow::sizeHint(), toggleCryptController(), and UserWindow::UserWindow().
|
protected |
Referenced by FileTransferWindow::applyOptions(), KviConsoleWindow::applyOptions(), applyOptions(), LinksWindow::applyOptions(), ListWindow::applyOptions(), SocketSpyWindow::applyOptions(), CodeTesterWindow::CodeTesterWindow(), KviConsoleWindow::connectionAttached(), DccChatWindow::DccChatWindow(), DccVideoWindow::DccVideoWindow(), DccVoiceWindow::DccVoiceWindow(), LogViewWindow::deleteCurrent(), FileTransferWindow::FileTransferWindow(), focusInEvent(), LogViewWindow::itemSelected(), LogViewWindow::keyPressEvent(), KviChannelWindow::KviChannelWindow(), KviConsoleWindow::KviConsoleWindow(), KviDebugWindow::KviDebugWindow(), KviQueryWindow::KviQueryWindow(), KviWindow(), KviChannelWindow::lastClickedView(), lastClickedView(), lastLineOfText(), lastMessageText(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), KviChannelWindow::loadProperties(), LogViewWindow::LogViewWindow(), lostUserFocus(), KviQueryWindow::mergeQuery(), output(), output(), output(), output(), output(), output(), KviChannelWindow::outputMessage(), outputNoFmt(), outputNoFmt(), outputNoFmt(), UserWindow::resizeEvent(), KviChannelWindow::setAliveChan(), KviQueryWindow::setAliveQuery(), KviChannelWindow::showDoubleView(), DccChatWindow::sizeHint(), DccVoiceWindow::sizeHint(), KviChannelWindow::sizeHint(), KviConsoleWindow::sizeHint(), KviDebugWindow::sizeHint(), KviQueryWindow::sizeHint(), LogViewWindow::sizeHint(), SocketSpyWindow::sizeHint(), SocketSpyWindow::SocketSpyWindow(), UserWindow::UserWindow(), and view().
|
protected |
Referenced by childRemoved(), eventFilter(), focusInEvent(), inputMethodEvent(), and KviWindow().
|
protected |
Referenced by DccChatWindow::DccChatWindow(), DccVideoWindow::DccVideoWindow(), DccVoiceWindow::DccVoiceWindow(), FileTransferWindow::FileTransferWindow(), HelpWindow::HelpWindow(), KviChannelWindow::KviChannelWindow(), KviConsoleWindow::KviConsoleWindow(), KviDebugWindow::KviDebugWindow(), KviQueryWindow::KviQueryWindow(), KviWindow(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), HelpWindow::loadProperties(), KviChannelWindow::loadProperties(), KviConsoleWindow::loadProperties(), KviDebugWindow::loadProperties(), KviQueryWindow::loadProperties(), LogViewWindow::LogViewWindow(), DccChatWindow::resizeEvent(), DccVideoWindow::resizeEvent(), DccVoiceWindow::resizeEvent(), FileTransferWindow::resizeEvent(), HelpWindow::resizeEvent(), KviChannelWindow::resizeEvent(), KviConsoleWindow::resizeEvent(), KviDebugWindow::resizeEvent(), KviQueryWindow::resizeEvent(), LinksWindow::resizeEvent(), ListWindow::resizeEvent(), LogViewWindow::resizeEvent(), SharedFilesWindow::resizeEvent(), SocketSpyWindow::resizeEvent(), HelpWindow::saveProperties(), KviChannelWindow::saveProperties(), KviConsoleWindow::saveProperties(), KviDebugWindow::saveProperties(), KviQueryWindow::saveProperties(), SharedFilesWindow::SharedFilesWindow(), KviQueryWindow::showListView(), KviConsoleWindow::showNotifyList(), DccVideoWindow::sizeHint(), FileTransferWindow::sizeHint(), KviChannelWindow::sizeHint(), KviDebugWindow::sizeHint(), KviQueryWindow::sizeHint(), LinksWindow::sizeHint(), ListWindow::sizeHint(), LogViewWindow::sizeHint(), SharedFilesWindow::sizeHint(), SocketSpyWindow::SocketSpyWindow(), splitter(), toggleCryptController(), KviChannelWindow::toggleListModeEditor(), KviChannelWindow::toggleListView(), and KviChannelWindow::toggleModeEditor().
|
protected |
Referenced by decodeText(), encodeText(), forceTextCodec(), KviWindow(), makeEncoder(), saveProperties(), setTextEncoding(), and textCodec().
|
protected |
Referenced by createTextEncodingButton(), KviWindow(), and textEncodingButtonClicked().
|
protected |
|
protected |
Referenced by KviChannelWindow::closeEvent(), KviChannelWindow::fillCaptionBuffers(), fillCaptionBuffers(), getBaseLogFileName(), KviQueryWindow::getInfoLabelText(), KviQueryWindow::getWindowListTipText(), KviWindow(), loadProperties(), KviChannelWindow::removeMasks(), KviChannelWindow::setAliveChan(), KviChannelWindow::setMode(), setWindowName(), KviChannelWindow::toggleListModeEditor(), KviChannelWindow::topicSelected(), and windowName().
|
protected |
Referenced by CodeTesterWindow::fillCaptionBuffers(), DccChatWindow::fillCaptionBuffers(), DccVideoWindow::fillCaptionBuffers(), DccVoiceWindow::fillCaptionBuffers(), EventEditorWindow::fillCaptionBuffers(), FileTransferWindow::fillCaptionBuffers(), HelpWindow::fillCaptionBuffers(), KviChannelWindow::fillCaptionBuffers(), KviConsoleWindow::fillCaptionBuffers(), KviDebugWindow::fillCaptionBuffers(), KviIOGraphWindow::fillCaptionBuffers(), KviQueryWindow::fillCaptionBuffers(), fillCaptionBuffers(), LinksWindow::fillCaptionBuffers(), ListWindow::fillCaptionBuffers(), LogViewWindow::fillCaptionBuffers(), PopupEditorWindow::fillCaptionBuffers(), RawEditorWindow::fillCaptionBuffers(), SharedFilesWindow::fillCaptionBuffers(), SocketSpyWindow::fillCaptionBuffers(), fillSingleColorCaptionBuffers(), KviChannelWindow::getWindowListTipText(), getWindowListTipText(), plainTextCaption(), setFixedCaption(), UserWindow::setWindowTitleStrings(), updateCaption(), and UserWindow::UserWindow().
|
protected |
Referenced by createSystemTextEncodingPopup(), forceTextCodec(), saveProperties(), setTextEncoding(), and textEncoding().
|
staticprotected |
Referenced by listWindowTypes(), and typeString().
|
protected |
Referenced by id(), KviWindow(), and numericId().
|
read |