![]() |
KVIrc 5.2.0
Developer APIs
|
#include <KviConsoleWindow.h>
Public Types | |
enum | OutputPrivmsgFlags { NoWindowFlashing = 1 , NoNotifier = 2 , NoHighlighting = 4 , NoNotifications = 7 } |
![]() | |
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 | executeInternalCommand (int index) |
void | recentUrlsChanged () |
void | updateUri () |
![]() | |
void | autoRaise () |
void | dock () |
void | reloadImages () |
void | savePropertiesAsDefault () |
void | undock () |
Public Member Functions | |
KviWindow * | activeWindow () |
void | addHighlightedChannel (const QString &szChan) |
Adds a channel to the highlight list. | |
int | applyHighlighting (KviWindow *wnd, int type, const QString &nick, const QString &user, const QString &host, const QString &szMsg) |
void | avatarChanged (KviAvatar *avatar, const QString &nick, const QString &user, const QString &host, const QString &textLine) |
void | avatarChangedUpdateWindows (const QString &nick, const QString &textLine) |
void | checkDefaultAvatar (KviIrcUserEntry *e, const QString &nick, const QString &user, const QString &host) |
void | completeChannel (const QString &word, std::vector< QString > &matches) |
void | completeServer (const QString &word, std::vector< QString > &matches) |
void | connectionAttached () |
void | connectionDetached () |
bool | connectionInProgress () |
KviIrcContext * | context () |
KviAvatar * | currentAvatar () |
QString | currentNetworkName () |
KviAvatar * | defaultAvatarFromOptions () |
void | getUserTipText (const QString &nick, KviIrcUserEntry *e, QString &buffer) |
bool | isConnected () |
bool | isHighlightedChannel (const QString &szChan) |
Returns true if the channel is highlighted. | |
bool | isIPv6Connection () |
bool | isNotConnected () |
KviUserListView * | notifyListView () const |
void | outputPrivmsg (KviWindow *wnd, int type, const QString &nick, const QString &user, const QString &host, const QString &msg, int iFlags=0, const QString &prefix=QString(), const QString &suffix=QString(), const QDateTime &datetime=QDateTime()) |
void | removeHighlightedChannel (const QString &szChan) |
Removes a channel from the highlight list. | |
void | resetAvatarForMatchingUsers (KviRegisteredUser *u) |
int | selectedCount () |
KviAvatar * | setAvatar (const QString &nick, const QString &user, const QString &host, const QString &szLocalPath, const QString &szName) |
void | setAvatarFromOptions () |
KviIrcContext::State | state () |
const QString & | statusString () const |
void | terminateConnectionRequest (bool bForce=false, const char *quitMsg=nullptr) |
~KviConsoleWindow () | |
![]() | |
virtual bool | activityMeter (unsigned int *puActivityValue, unsigned int *puActivityTemperature) |
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 | getConfigGroupName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer, QDate date, bool bGzip, unsigned int uDatetimeFormat) |
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 | ircUriChanged (const QString &) |
void | textViewRightClicked () |
void | toggleNotifyView () |
![]() | |
void | childDestroyed () |
void | cryptControllerFinished () |
void | cryptSessionInfoDestroyed () |
void | systemTextEncodingPopupActivated (QAction *pAction) |
void | textEncodingButtonClicked () |
void | toggleCryptController () |
Protected Member Functions | |
void | applyOptions () override |
void | closeEvent (QCloseEvent *e) override |
void | destroyConnection () |
void | fillCaptionBuffers () override |
void | fillStatusString () |
void | getBaseLogFileName (QString &buffer) override |
void | getWindowListTipText (QString &buffer) override |
KviConsoleWindow (int iFlags) | |
void | loadProperties (KviConfigurationFile *cfg) override |
QPixmap * | myIconPtr () override |
void | resizeEvent (QResizeEvent *e) override |
void | saveProperties (KviConfigurationFile *cfg) override |
void | showNotifyList (bool bShow, bool bIgnoreSizeChange=false) |
QSize | sizeHint () const override |
void | triggerCreationEvents () override |
int | triggerOnHighlight (KviWindow *wnd, int type, const QString &nick, const QString &user, const QString &host, const QString &szMsg, const QString &trigger) |
![]() | |
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 |
void | fillSingleColorCaptionBuffers (const QString &szName) |
void | focusInEvent (QFocusEvent *) override |
bool | focusNextPrevChild (bool bNext) override |
void | inputMethodEvent (QInputMethodEvent *e) override |
virtual void | lostUserFocus () |
void | moveEvent (QMoveEvent *pEvent) override |
virtual void | preprocessMessage (QString &szMessage) |
void | setType (Type eType) |
virtual void | triggerDestructionEvents () |
virtual void | youAreDocked () |
virtual void | youAreUndocked () |
Static Protected Member Functions | |
static int | getSmartColorHashForNick (QString *szNick) |
Protected Attributes | |
int | m_iFlags |
KviThemedComboBox * | m_pAddressEdit |
KviIrcContext * | m_pContext |
KviUserListView * | m_pNotifyListView |
KviWindowToolPageButton * | m_pNotifyViewButton |
QStringList * | m_pTmpHighLightedChannels |
QList< int > | m_SplitterSizesList |
QString | m_szOwnSmartColor |
QString | m_szStatusString |
![]() | |
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 |
Friends | |
class | KviChannelWindow |
class | KviIrcContext |
class | KviIrcSocket |
class | KviMainWindow |
class | KviQueryWindow |
Additional Inherited Members | |
![]() | |
void | windowNameChanged () |
![]() | |
static const char * | m_typeTable [TypeCount] |
![]() | |
int | KviProperty_ChildFocusOwner |
|
protected |
References __tr2qs, KviTalToolTip::add(), applyOptions(), KviWindow::buttonContainer(), connect(), g_pApp, g_pIconManager, KviIconManager::getSmallIcon(), KviIconManager::HideListView, KviIrcContext::id(), ircUriChanged(), KVI_CONSOLE_FLAG_FIRSTINAPP, KviWindow::KviInput, KviIrcContext, KviTalSplitter, m_iFlags, m_pAddressEdit, KviWindow::m_pButtonBox, m_pContext, KviWindow::m_pInput, KviWindow::m_pIrcView, m_pNotifyListView, m_pNotifyViewButton, KviWindow::m_pSplitter, m_pTmpHighLightedChannels, recentUrlsChanged(), KviTalHBox::setSpacing(), KviTalHBox::setStretchFactor(), KviIconManager::ShowListView, textViewRightClicked(), toggleNotifyView(), and KviIconManager::Url.
KviConsoleWindow::~KviConsoleWindow | ( | ) |
KviWindow * KviConsoleWindow::activeWindow | ( | ) |
References KviWindow::console(), and g_pActiveWindow.
Referenced by KviIrcServerParser::echoCtcpReply(), KviIrcServerParser::echoCtcpRequest(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), KviNotifyListManager::notifyOffLine(), KviNotifyListManager::notifyOnLine(), KviIrcServerParser::parseCtcpReplyPing(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralInvite(), KviIrcServerParser::parseLiteralMode(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseLiteralWallops(), KviIrcServerParser::parseNumeric367(), KviIrcServerParser::parseNumeric368(), KviIrcServerParser::parseNumeric486(), KviIrcServerParser::parseNumericAway(), KviIrcServerParser::parseNumericBackFromAway(), KviIrcServerParser::parseNumericChannelModeIs(), KviIrcServerParser::parseNumericChanUrl(), KviIrcServerParser::parseNumericCodePageScheme(), KviIrcServerParser::parseNumericCreationTime(), KviIrcServerParser::parseNumericEndOfNames(), KviIrcServerParser::parseNumericEndOfQuietList(), KviIrcServerParser::parseNumericEndOfWho(), KviIrcServerParser::parseNumericEndOfWhois(), KviIrcServerParser::parseNumericEndOfWhowas(), KviIrcServerParser::parseNumericForward(), KviIrcServerParser::parseNumericHiddenHost(), KviIrcServerParser::parseNumericIsOn(), KviIrcServerParser::parseNumericNames(), KviIrcServerParser::parseNumericNoSuchNick(), KviIrcServerParser::parseNumericNotEnoughParams(), KviIrcServerParser::parseNumericNoTopic(), KviIrcServerParser::parseNumericOftcEndOfQuietList(), KviIrcServerParser::parseNumericOftcQuietList(), KviIrcServerParser::parseNumericPasswordIncorrect(), KviIrcServerParser::parseNumericQuietList(), KviIrcServerParser::parseNumericSnomask(), KviIrcServerParser::parseNumericTopic(), KviIrcServerParser::parseNumericTopicWhoTime(), KviIrcServerParser::parseNumericTryAgain(), KviIrcServerParser::parseNumericUnknownCommand(), KviIrcServerParser::parseNumericUserhost(), 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(), KviIrcConnection::sendData(), and KviIrcConnection::sendFmtData().
void KviConsoleWindow::addHighlightedChannel | ( | const QString & | szChan | ) |
Adds a channel to the highlight list.
szChan | The channel name |
References m_pTmpHighLightedChannels.
int KviConsoleWindow::applyHighlighting | ( | KviWindow * | wnd, |
int | type, | ||
const QString & | nick, | ||
const QString & | user, | ||
const QString & | host, | ||
const QString & | szMsg | ||
) |
References KviRegExp::CaseInsensitive, KviRegExp::CaseSensitive, KviWindow::Channel, KviWindow::connection(), KviRegExp::escape(), isHighlightedChannel(), KVI_OPTION_BOOL, KVI_OPTION_STRING, KVI_OPTION_STRINGLIST, KviOption_boolAlwaysHighlightNick, KviOption_boolCaseSensitiveHighlighting, KviOption_boolUseFullWordHighlighting, KviOption_boolUseWordHighlighting, KviOption_stringlistHighlightWords, KviOption_stringWordSplitters, KviIrcUserDataBase::registeredUser(), KviRegExp::setCaseSensitivity(), KviRegExp::setPattern(), KviControlCodes::stripControlBytes(), triggerOnHighlight(), KviWindow::type(), u, KviIrcConnection::userDataBase(), and KviWindow::windowName().
Referenced by outputPrivmsg(), and KviIrcServerParser::parseCtcpRequestAction().
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References KviInput::applyOptions(), KviIrcView::applyOptions(), KviThemedComboBox::applyOptions(), KviUserListView::applyOptions(), KviWindow::applyOptions(), KVI_OPTION_BOOL, KVI_OPTION_UINT, KviOption_boolUseSpecifiedSmartColorForOwnNick, KviOption_uintUserIrcViewOwnBackground, KviOption_uintUserIrcViewOwnForeground, m_pAddressEdit, KviWindow::m_pInput, KviWindow::m_pIrcView, m_pNotifyListView, m_szOwnSmartColor, and KviControlCodes::Transparent.
Referenced by KviConsoleWindow().
void KviConsoleWindow::avatarChanged | ( | KviAvatar * | avatar, |
const QString & | nick, | ||
const QString & | user, | ||
const QString & | host, | ||
const QString & | textLine | ||
) |
References avatarChangedUpdateWindows(), KviWindow::connection(), currentNetworkName(), KviQString::equalCI(), KviAvatar::identificationString(), KviAvatarCache::instance(), KVI_OPTION_BOOL, KviOption_boolSetLastAvatarAsDefaultForRegisteredUsers, KviIrcUserDataBase::registeredUser(), KviAvatarCache::remove(), KviAvatarCache::replace(), KviRegisteredUser::setProperty(), u, and KviIrcConnection::userDataBase().
Referenced by avatar_kvs_cmd_set(), avatar_kvs_cmd_unset(), currentAvatar(), KviIrcServerParser::parseCtcpReplyAvatar(), KviIrcServerParser::parseLiteralJoin(), setAvatar(), and setAvatarFromOptions().
void KviConsoleWindow::avatarChangedUpdateWindows | ( | const QString & | nick, |
const QString & | textLine | ||
) |
void KviConsoleWindow::checkDefaultAvatar | ( | KviIrcUserEntry * | e, |
const QString & | nick, | ||
const QString & | user, | ||
const QString & | host | ||
) |
References avatarChangedUpdateWindows(), KviWindow::connection(), currentNetworkName(), e, KviFileUtils::extractFileName(), g_pIconManager, KviIconManager::getAvatar(), KviAvatarCache::instance(), KviAvatarCache::lookup(), KviIrcUserDataBase::registeredUser(), KviAvatarCache::remove(), u, and KviIrcConnection::userDataBase().
Referenced by KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseNumericWhoisUser(), KviIrcServerParser::parseNumericWhospcrpl(), and KviQueryWindow::setTarget().
|
overrideprotected |
References __tr2qs, KviWindow::closeEvent(), KviIrcContext::Connected, KviMainWindow::consoleCount(), context(), e, g_pApp, g_pMainWindow, KVI_OPTION_BOOL, KviOption_boolAlwaysDisconnectClosingConnectedConsole, KviOption_boolAlwaysQuitKVIrcClosingLastConsole, state(), and KviIrcContext::terminateConnectionRequest().
void KviConsoleWindow::completeChannel | ( | const QString & | word, |
std::vector< QString > & | matches | ||
) |
References currentNetworkName(), KviQString::equalCIN(), g_pApp, and KviApplication::recentChannelsForNetwork().
Referenced by KviInputEditor::completion().
void KviConsoleWindow::completeServer | ( | const QString & | word, |
std::vector< QString > & | matches | ||
) |
References KviQString::cutFromLast(), KviQString::cutToFirst(), KviQString::equalCIN(), KVI_OPTION_STRINGLIST, and KviOption_stringlistRecentServers.
Referenced by KviInputEditor::completion().
void KviConsoleWindow::connectionAttached | ( | ) |
References connect(), KviWindow::connection(), KviIrcContext::connection(), KviIrcView::isLogging(), KVI_OPTION_BOOL, KviOption_boolAutoLogConsole, m_pContext, KviWindow::m_pIrcView, m_pNotifyListView, KviUserListView::setUserDataBase(), KviIrcView::startLogging(), KviIrcView::stopLogging(), and updateUri().
Referenced by KviIrcContext::connectToCurrentServer().
void KviConsoleWindow::connectionDetached | ( | ) |
References m_pNotifyListView, KviUserListView::partAll(), and KviUserListView::setUserDataBase().
Referenced by KviIrcContext::destroyConnection().
bool KviConsoleWindow::connectionInProgress | ( | ) |
References context(), KviIrcContext::Idle, and state().
Referenced by KviIrcUrl::run().
|
inline |
Referenced by closeEvent(), KviWindow::connection(), connectionInProgress(), LinksWindow::connectionStateChange(), ListWindow::connectionStateChange(), KviWindow::context(), context_kvs_fnc_getSSLCertInfo(), dcc_kvs_fnc_ircContext(), KviWindowListButton::drawButtonLabel(), KviIrcContextDisplay::drawContents(), LinksWindow::fillCaptionBuffers(), ListWindow::fillCaptionBuffers(), SocketSpyWindow::fillCaptionBuffers(), KviTrayIconWidget::fillContextPopup(), fillStatusString(), KviApplication::findConsole(), getBaseLogFileName(), getWindowListTipText(), isNotConnected(), LinksWindow::LinksWindow(), ListWindow::ListWindow(), KviTreeWindowListItemDelegate::paint(), KviIrcServerParser::parseNumericEndOfLinks(), KviIrcServerParser::parseNumericLinks(), KviIrcServerParser::parseNumericList(), KviIrcServerParser::parseNumericListEnd(), KviIrcServerParser::parseNumericListStart(), KviIrcContextDisplay::tipRequest(), ~KviConsoleWindow(), LinksWindow::~LinksWindow(), and ListWindow::~ListWindow().
KviAvatar * KviConsoleWindow::currentAvatar | ( | ) |
References a, avatarChanged(), KviWindow::connection(), defaultAvatarFromOptions(), e, KviIrcUserDataBase::find(), and KviIrcConnection::userDataBase().
Referenced by KviIrcServerParser::parseCtcpRequestAvatar().
|
inline |
References KviWindow::connection(), and currentNetworkName().
Referenced by avatarChanged(), checkDefaultAvatar(), completeChannel(), LinksWindow::connectionStateChange(), ListWindow::connectionStateChange(), currentNetworkName(), KviTrayIconWidget::fillContextPopup(), ChannelsJoinDialog::fillListView(), KviApplication::fillRecentChannelsPopup(), and KviQueryWindow::getBaseLogFileName().
KviAvatar * KviConsoleWindow::defaultAvatarFromOptions | ( | ) |
|
protected |
|
slot |
References kvi_getInternalCommandBuffer(), and KviKvsScript::run().
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References fillStatusString(), KviWindow::m_szPlainTextCaption, m_szStatusString, and KviWindow::windowName().
|
protected |
References __tr2qs, KviIrcContext::Connected, KviIrcContext::Connecting, KviWindow::connection(), context(), KviIrcContext::Idle, KviIrcContext::LoggingIn, m_szStatusString, KviIrcConnectionServerInfo::name(), KviIrcConnectionUserInfo::nickName(), KviIrcContext::PendingReconnection, KviIrcConnection::serverInfo(), state(), KviIrcConnection::userInfo(), and KviIrcConnectionUserInfo::userMode().
Referenced by fillCaptionBuffers(), and getWindowListTipText().
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References KviWindow::connection(), KviIrcContext::connection(), context(), KviIrcNetwork::name(), KviIrcConnectionTarget::network(), and KviIrcConnection::target().
|
staticprotected |
void KviConsoleWindow::getUserTipText | ( | const QString & | nick, |
KviIrcUserEntry * | e, | ||
QString & | buffer | ||
) |
References __tr2qs, KviWindow::connection(), e, KviRegisteredUserDataBase::findMatchingMask(), g_pRegisteredUserDataBase, KviIrcUserEntry::Male, KviControlCodes::stripControlBytes(), KviQString::toHtmlEscaped(), u, and KviIrcUserEntry::Unknown.
Referenced by KviQueryWindow::getWindowListTipText(), and KviUserListView::maybeTip().
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References __tr2qs, KviIrcConnection::channelList(), KviIrcContext::Connected, KviWindow::connection(), context(), END_TABLE_BOLD_ROW, fillStatusString(), KviTimeUtils::formatTimeInterval(), KVI_OPTION_UINT, kvi_secondsSince, KviOption_uintOutputDatetimeFormat, m_szStatusString, KviTimeUtils::NoLeadingEmptyIntervals, KviTimeUtils::NoLeadingZeroes, KviIrcConnection::queryList(), START_TABLE_BOLD_ROW, and state().
|
protectedslot |
References __tr2qs, KviIrcUrl::CurrentContext, KviIrcUrl::InvalidProtocol, KviIrcUrl::InvalidUrl, KviWindow::m_pInput, KviIrcUrl::run(), KviInput::setFocus(), and KviMessageBox::warning().
Referenced by KviConsoleWindow().
|
inline |
References KviWindow::context(), and KviIrcContext::isConnected().
Referenced by KviChannelWindow::closeEvent(), dcc_kvs_get_listen_ip_address(), KviTrayIconWidget::doAway(), KviIrcContextDisplay::drawContents(), KviTrayIconWidget::fillContextPopup(), KviApplication::fillRecentChannelsPopup(), KviApplication::fillRecentNicknamesPopup(), KviApplication::findConsole(), KviWindowListBase::getTextForConsole(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), myIconPtr(), KviIrcServerParser::parseNumericNicknameProblem(), KviIrcServerParser::parseNumericUnavailResource(), LinksWindow::requestLinks(), ListWindow::requestList(), ListWindow::stoplistdownload(), KviIrcContextDisplay::tipRequest(), and KviApplication::topmostConnectedConsole().
|
inline |
Returns true if the channel is highlighted.
szChan | The channel name |
Referenced by applyHighlighting().
|
inline |
|
inline |
References context(), KviIrcContext::Idle, and state().
Referenced by tmphighlight_kvs_cmd_addchannel(), tmphighlight_kvs_cmd_addnick(), tmphighlight_kvs_cmd_removechannel(), tmphighlight_kvs_cmd_removenick(), tmphighlight_kvs_fnc_ischannelhighlighted(), and tmphighlight_kvs_fnc_isnickhighlighted().
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References KviWindow::loadProperties(), KviWindow::m_pSplitter, m_SplitterSizesList, KviConfigurationFile::readBoolEntry(), KviConfigurationFile::readIntListEntry(), and showNotifyList().
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References KviIconManager::Console, g_pIconManager, KviIconManager::getSmallIcon(), isConnected(), and KviIconManager::Links.
|
inline |
Referenced by KviIsOnNotifyListManager::doMatchUser(), KviWatchNotifyListManager::doMatchUser(), KviIsOnNotifyListManager::handleIsOn(), KviStupidNotifyListManager::handleIsOn(), KviWatchNotifyListManager::handleWatchReply(), KviIrcConnection::loginComplete(), KviIrcConnection::loginToIrcServer(), KviIrcConnection::nickChange(), KviNotifyListManager::notifyOffLine(), KviNotifyListManager::notifyOnLine(), KviIrcServerParser::parseLoginNicknameProblem(), KviIsOnNotifyListManager::start(), KviStupidNotifyListManager::start(), KviWatchNotifyListManager::start(), KviIsOnNotifyListManager::stop(), KviStupidNotifyListManager::stop(), and KviWatchNotifyListManager::stop().
void KviConsoleWindow::outputPrivmsg | ( | KviWindow * | wnd, |
int | type, | ||
const QString & | nick, | ||
const QString & | user, | ||
const QString & | host, | ||
const QString & | msg, | ||
int | iFlags = 0 , |
||
const QString & | prefix = QString() , |
||
const QString & | suffix = QString() , |
||
const QDateTime & | datetime = QDateTime() |
||
) |
References KviQString::appendFormatted(), applyHighlighting(), KviControlCodes::Bold, KviWindow::Channel, KviWindow::connection(), KviWindow::demandAttention(), KviIrcUserDataBase::find(), g_pApp, KviNickColors::getSmartColor(), KviNickColors::getSmartColorForNick(), KviWindow::hasAttention(), KviIrcConnectionUserInfo::hostName(), KVI_OPTION_BOOL, KVI_OPTION_MSGTYPE, KVI_OPTION_STRING, KVI_OPTION_UINT, KVI_OUT_CHANNELNOTICE, KVI_OUT_CHANNELNOTICECRYPTED, KVI_OUT_HIGHLIGHT, KVI_OUT_QUERYNOTICE, KVI_OUT_QUERYNOTICECRYPTED, KviOption_boolBoldedNicks, KviOption_boolColorNicks, KviOption_boolColorNicksWithBackground, KviOption_boolFlashWindowOnHighlightedMessages, KviOption_boolPopupNotifierOnHighlightedMessages, KviOption_boolShowChannelUserFlagInPrivmsgView, KviOption_boolShowUserAndHostInPrivmsgView, KviOption_boolStripMircColorsInUserMessages, KviOption_boolUseExtendedPrivmsgView, KviOption_boolUseSpecifiedSmartColorForOwnNick, KviOption_stringExtendedPrivmsgPostfix, KviOption_stringExtendedPrivmsgPrefix, KviOption_uintNotifierAutoHideTime, m_szOwnSmartColor, KviWindow::MainWindowIsVisible, KviIrcConnectionUserInfo::nickName(), NoHighlighting, NoNotifier, KviApplication::notifierMessage(), NoWindowFlashing, KviWindow::outputNoFmt(), KviIrcUserEntry::setSmartNickColor(), KviIrcUserEntry::smartNickColor(), KviControlCodes::stripControlBytes(), KviQString::toHtmlEscaped(), KviWindow::type(), KviIrcConnection::userDataBase(), KviIrcConnection::userInfo(), and KviIrcConnectionUserInfo::userName().
Referenced by DccChatWindow::event(), DccVideoWindow::event(), KviKvsCoreSimpleCommands::KVSCSC(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviIrcServerParser::parseLiteralNotice(), and KviIrcServerParser::parseLiteralPrivmsg().
|
slot |
References g_pIconManager, KviIconManager::getSmallIcon(), i, KVI_OPTION_STRINGLIST, KviOption_stringlistRecentIrcUrls, m_pAddressEdit, and KviIconManager::Url.
Referenced by KviConsoleWindow().
void KviConsoleWindow::removeHighlightedChannel | ( | const QString & | szChan | ) |
Removes a channel from the highlight list.
szChan | The channel name |
References m_pTmpHighLightedChannels.
void KviConsoleWindow::resetAvatarForMatchingUsers | ( | KviRegisteredUser * | u | ) |
|
overrideprotected |
References KviInput::heightHint(), KviWindow::m_pButtonBox, KviWindow::m_pInput, and KviWindow::m_pSplitter.
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References m_pNotifyViewButton, KviWindow::m_pSplitter, m_SplitterSizesList, KviWindow::saveProperties(), and KviConfigurationFile::writeEntry().
|
inline |
References m_pNotifyListView, and KviUserListView::selectedCount().
KviAvatar * KviConsoleWindow::setAvatar | ( | const QString & | nick, |
const QString & | user, | ||
const QString & | host, | ||
const QString & | szLocalPath, | ||
const QString & | szName | ||
) |
References __tr2qs, _OUTPUT_PARANOIC, avatarChanged(), KviWindow::connection(), e, KviQString::equalCI(), KviIrcUserDataBase::find(), g_pIconManager, KviIconManager::getAvatar(), KVI_OUT_VERBOSE, KviWindow::output(), and KviIrcConnection::userDataBase().
Referenced by KviApplication::fileDownloadTerminated().
void KviConsoleWindow::setAvatarFromOptions | ( | ) |
References a, avatarChanged(), KviWindow::connection(), defaultAvatarFromOptions(), e, KviIrcUserDataBase::find(), and KviIrcConnection::userDataBase().
Referenced by KviApplication::setAvatarFromOptions().
|
protected |
References m_pNotifyListView, m_pNotifyViewButton, KviWindow::m_pSplitter, and m_SplitterSizesList.
Referenced by loadProperties(), and toggleNotifyView().
|
overrideprotected |
References KviInput::heightHint(), KviWindow::m_pInput, KviWindow::m_pIrcView, and KviIrcView::sizeHint().
|
inline |
References KviWindow::context(), and KviIrcContext::state().
Referenced by closeEvent(), connectionInProgress(), fillStatusString(), getWindowListTipText(), and isNotConnected().
|
inline |
Referenced by KviWindowListBase::getTextForConsole().
void KviConsoleWindow::terminateConnectionRequest | ( | bool | bForce = false , |
const char * | quitMsg = nullptr |
||
) |
|
protectedslot |
References KviEvent_OnConsolePopupRequest, and KVS_TRIGGER_EVENT_0.
Referenced by KviConsoleWindow().
|
protectedslot |
References m_pNotifyListView, and showNotifyList().
Referenced by KviConsoleWindow().
|
overrideprotectedvirtual |
Reimplemented from KviWindow.
References KviMainWindow::executeInternalCommand(), g_pMainWindow, KVI_CONSOLE_FLAG_FIRSTINAPP, KVI_CONSOLE_FLAG_FIRSTINFRAME, KVI_INTERNALCOMMAND_TIP_OPEN, KVI_OPTION_BOOL, KviEvent_OnFrameWindowCreated, KviEvent_OnIrcContextCreated, KviEvent_OnKVIrcStartup, KviOption_boolShowTipAtStartup, KVS_TRIGGER_EVENT_0, and m_iFlags.
|
protected |
References KviWindow::connection(), KviWindow::hasAttention(), KviRegisteredUser::Highlight, KVI_OPTION_STRING, KVI_OUT_ACTION, KVI_OUT_ACTIONCRYPTED, KVI_OUT_HIGHLIGHT, KviEvent_OnHighlight, KviOption_stringOnHighlightedMessageSound, KVS_TRIGGER_EVENT_7_HALTED, KviIrcUserDataBase::registeredUser(), KviKvsScript::run(), szHost, u, and KviIrcConnection::userDataBase().
Referenced by applyHighlighting().
|
slot |
References KviIrcConnection::channelList(), KviWindow::connection(), i, KviIrcUrl::join(), m_pAddressEdit, KviIrcConnectionTarget::server(), and KviIrcConnection::target().
Referenced by connectionAttached().
|
friend |
|
friend |
Referenced by KviConsoleWindow().
|
friend |
|
friend |
|
friend |
|
protected |
Referenced by KviConsoleWindow(), and triggerCreationEvents().
|
protected |
Referenced by applyOptions(), KviConsoleWindow(), recentUrlsChanged(), and updateUri().
|
protected |
Referenced by connectionAttached(), KviConsoleWindow(), and ~KviConsoleWindow().
|
protected |
|
protected |
Referenced by KviConsoleWindow(), saveProperties(), and showNotifyList().
|
protected |
Referenced by addHighlightedChannel(), KviConsoleWindow(), removeHighlightedChannel(), and ~KviConsoleWindow().
|
protected |
Referenced by loadProperties(), saveProperties(), and showNotifyList().
|
protected |
Referenced by applyOptions(), and outputPrivmsg().
|
protected |
Referenced by fillCaptionBuffers(), fillStatusString(), and getWindowListTipText().