KVIrc 5.2.0
Developer APIs
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | Private Member Functions | Friends | List of all members
KviWindow Class Reference

Base class for all windows in KVIrc. More...

#include <KviWindow.h>

+ Inheritance diagram for KviWindow:

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 ()
 
KviIrcConnectionconnection ()
 Returns the current IRC connection (if any)
 
KviConsoleWindowconsole () const
 Returns the console that this window belongs to.
 
KviIrcContextcontext ()
 
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.
 
KviInputinput () 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 KviIrcViewlastClickedView () 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 KviWindowoutputProxy ()
 
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)
 
KviTalSplittersplitter () 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 ()
 
KviIrcViewview () const
 Returns the KviIrcView of this window.
 
KviWindowListItemwindowListItem () 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
 
KviTalHBoxm_pButtonBox
 
KviConsoleWindowm_pConsole
 
QWidget * m_pFocusHandler
 
QToolButton * m_pHideToolsButton
 
KviInputm_pInput
 
KviIrcViewm_pIrcView
 
QWidget * m_pLastFocusedChild
 
KviTalSplitterm_pSplitter
 
QTextCodec * m_pTextCodec
 
QToolButton * m_pTextEncodingButton
 
KviWindowListItemm_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
 

Detailed Description

Base class for all windows in KVIrc.

Member Enumeration Documentation

◆ ActivityTemperature

Holds the activity meter in temperature scale.

Enumerator
Ice 

Ice

VeryCold 

Very cold

Cold 

Cold

Undefined 

Undefined

Hot 

Hot

VeryHot 

Very hot

Fire 

Fire

◆ ActivityValue

Holds the activity meter in value scale.

Enumerator
None 

None

VeryLow 

Very low

Low 

Low

Medium 

Medium

High 

High

VeryHigh 

Very high

◆ AttentionLevel

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

◆ Type

Holds the types of a window; these are used by the KVIrc core and distributed modules.

Note
If you add a new type, insert it just before Unknown
Enumerator
Console 
Channel 
Query 
DeadChannel 
DeadQuery 
Editor 
Help 
Terminal 
SocketSpy 
Links 
List 
DccChat 
DccTransfer 
DccCanvas 
DccVoice 
DccVideo 
UserWindow 
Tool 
IOGraph 
DirBrowser 
ScriptEditor 

\ no longer exists please reuse entry

ScriptObject 
LogView 
Offer 
Debug 
Unknown 
TypeCount 

Constructor & Destructor Documentation

◆ KviWindow()

KviWindow::KviWindow ( Type  eType,
const QString &  szName,
KviConsoleWindow pConsole = nullptr 
)

◆ ~KviWindow()

KviWindow::~KviWindow ( )

Member Function Documentation

◆ activityMeter()

bool KviWindow::activityMeter ( unsigned int *  puActivityValue,
unsigned int *  puActivityTemperature 
)
virtual

◆ applyOptions()

void KviWindow::applyOptions ( )
virtual

◆ autoRaise

void KviWindow::autoRaise ( )
slot

◆ buttonContainer()

virtual QFrame * KviWindow::buttonContainer ( )
inlinevirtual

◆ childDestroyed

void KviWindow::childDestroyed ( )
protectedslot

References childRemoved().

Referenced by childInserted().

◆ childEvent()

void KviWindow::childEvent ( QChildEvent *  pEvent)
overrideprotected

References childInserted(), and childRemoved().

◆ childInserted()

void KviWindow::childInserted ( QWidget *  pObject)
protected

◆ childRemoved()

void KviWindow::childRemoved ( QWidget *  pObject)
protected

◆ childrenTreeChanged()

void KviWindow::childrenTreeChanged ( QWidget *  pAdded)
protectedvirtual

◆ closeEvent()

void KviWindow::closeEvent ( QCloseEvent *  pEvent)
overrideprotected

◆ connection()

KviIrcConnection * KviWindow::connection ( )

Returns the current IRC connection (if any)

Returns
KviIrcConnection *

References KviIrcContext::connection(), console(), KviConsoleWindow::context(), and context().

Referenced by KviMaskInputDialog::accept(), KviMaskEditor::addClicked(), KviConsoleWindow::applyHighlighting(), avatar_kvs_cmd_notify(), avatar_kvs_cmd_query(), avatar_kvs_cmd_set(), avatar_kvs_cmd_unset(), avatar_kvs_fnc_name(), avatar_kvs_fnc_path(), KviConsoleWindow::avatarChanged(), KviConsoleWindow::avatarChangedUpdateWindows(), chan_kvs_fnc_common(), chan_kvs_fnc_getUrl(), KviChannelWindow::checkChannelSync(), KviConsoleWindow::checkDefaultAvatar(), KviChannelWindow::closeEvent(), KviUserListEntry::color(), KviKvsRunTimeContext::connection(), KviIrcMessage::connection(), KviConsoleWindow::connectionAttached(), DccChatWindow::connectionInProgress(), DccFileTransfer::connectionInProgress(), DccVideoWindow::connectionInProgress(), DccVoiceWindow::connectionInProgress(), LinksWindow::connectionStateChange(), ListWindow::connectionStateChange(), context_kvs_cmd_clearQueue(), 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(), DccFileTransfer::doResume(), KviIrcContextDisplay::drawContents(), KviKvsTreeNodeAliasSimpleCommand::execute(), ListWindow::exportList(), KviChannelWindow::fillCaptionBuffers(), KviQueryWindow::fillCaptionBuffers(), KviTrayIconWidget::fillContextPopup(), KviApplication::fillRecentChannelsPopup(), KviApplication::fillRecentNicknamesPopup(), KviConsoleWindow::fillStatusString(), KviApplication::findConsole(), KviConsoleWindow::getBaseLogFileName(), KviChannelWindow::getBaseLogFileName(), KviQueryWindow::getBaseLogFileName(), KviChannelWindow::getConfigGroupName(), KviQueryWindow::getInfoLabelText(), KviWindowListBase::getTextForConsole(), KviIrcView::getTextLine(), KviUserListView::getUserFlag(), KviConsoleWindow::getUserTipText(), KviConsoleWindow::getWindowListTipText(), KviQueryWindow::getWindowListTipText(), KviIsOnNotifyListManager::handleIsOn(), DccBroker::handleResumeRequest(), LinksWindow::hostPopupClicked(), KviUserListView::insertUserEntry(), KviConsoleWindow::isIPv6Connection(), KviMaskEditor::itemDoubleClicked(), ListWindow::itemDoubleClicked(), KviChannelWindow::KviChannelWindow(), KviMaskEditor::KviMaskEditor(), KviModeEditor::KviModeEditor(), KviQueryWindow::KviQueryWindow(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), KviModeWidget::mouseDoubleClickEvent(), KviConsoleWindow::outputPrivmsg(), KviChannelWindow::ownAction(), KviQueryWindow::ownAction(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), KviUserListViewArea::paintEvent(), KviIrcServerParser::parseCtcpReplyLagcheck(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralChghost(), KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPart(), KviIrcServerParser::parseLiteralPing(), KviIrcServerParser::parseLiteralPong(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseLiteralQuit(), KviUserInput::parseNonCommand(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumericWhoReply(), preprocessMessage(), KviChannelWindow::removeMasks(), LinksWindow::requestLinks(), ListWindow::requestList(), KviConsoleWindow::resetAvatarForMatchingUsers(), KviApplication::restartLagMeters(), KviApplication::restartNotifyLists(), DccBroker::rsendExecute(), KviIrcUrl::run(), KviChannelWindow::serverInfo(), KviChannelWindow::setAliveChan(), KviQueryWindow::setAliveQuery(), KviConsoleWindow::setAvatar(), KviConsoleWindow::setAvatarFromOptions(), KviChannelWindow::setDeadChan(), KviQueryWindow::setDeadQuery(), KviChannelWindow::setMode(), KviChannelWindow::setModeInList(), KviQueryWindow::setTarget(), DccFileTransfer::startConnection(), ListWindow::stoplistdownload(), KviTopicWidget::switchMode(), KviIrcConnectionRequestQueue::timerSlot(), KviIrcContextDisplay::tipRequest(), KviChannelWindow::toggleListModeEditor(), KviChannelWindow::topicSelected(), KviConsoleWindow::triggerOnHighlight(), KviChannelWindow::updateModeLabel(), KviMaskEditor::updateOpStatus(), KviModeEditor::updateOpStatus(), KviConsoleWindow::updateUri(), KviChannelWindow::~KviChannelWindow(), and KviQueryWindow::~KviQueryWindow().

◆ console()

KviConsoleWindow * KviWindow::console ( ) const
inline

Returns the console that this window belongs to.

May be null for windows that aren't bound to irc contexts

Returns
KviConsoleWindow *

Referenced by KviApplication::activeConsole(), KviConsoleWindow::activeWindow(), KviTreeWindowList::addItem(), avatar_kvs_cmd_set(), avatar_kvs_cmd_unset(), chan_kvs_fnc_common(), channelsjoin_kvs_cmd_open(), KviInputEditor::completion(), connection(), KviKvsRunTimeContext::console(), KviIrcView::console(), context(), context_kvs_fnc_getSSLCertInfo(), dcc_kvs_cmd_chat(), dcc_kvs_cmd_get(), dcc_kvs_cmd_recv(), dcc_kvs_cmd_rsend(), dcc_kvs_cmd_send(), dcc_kvs_cmd_video(), dcc_kvs_cmd_voice(), KviWindowListButton::drawButtonLabel(), KviIrcContextDisplay::drawContents(), KviQueryWindow::getBaseLogFileName(), KviQueryWindow::getWindowListTipText(), SocketSpyWindow::incomingMessage(), KviClassicWindowList::insertButton(), KviKvsCallbackObject::KviKvsCallbackObject(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreFunctions::KVSCF(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), links_kvs_cmd_open(), list_kvs_cmd_open(), KviUserListView::maybeTip(), SocketSpyWindow::outgoingMessage(), KviTreeWindowListItemDelegate::paint(), KviUserInput::parseNonCommand(), KviIrcServerParser::parseNumericWhoReply(), KviJoinChannelAction::popupAboutToShow(), KviJoinChannelAction::popupActivated(), OptionsWidget_servers::recentServersPopupClicked(), socketspy_kvs_cmd_open(), KviWindowListBase::switchWindow(), KviIrcContextDisplay::tipRequest(), tmphighlight_kvs_cmd_addchannel(), tmphighlight_kvs_cmd_addnick(), tmphighlight_kvs_cmd_removechannel(), tmphighlight_kvs_cmd_removenick(), tmphighlight_kvs_fnc_ischannelhighlighted(), tmphighlight_kvs_fnc_isnickhighlighted(), and window_kvs_fnc_list().

◆ context()

KviIrcContext * KviWindow::context ( )

◆ contextPopup()

void KviWindow::contextPopup ( )

◆ createCryptControllerButton()

void KviWindow::createCryptControllerButton ( QWidget *  pPar)
protected

◆ createSystemTextEncodingPopup()

void KviWindow::createSystemTextEncodingPopup ( )
protected

◆ createTextEncodingButton()

void KviWindow::createTextEncodingButton ( QWidget *  pPar)
protected

◆ createToolButton()

QToolButton * KviWindow::createToolButton ( QWidget *  pPar,
const char *  pcName,
KviIconManager::SmallIcon  eIcon,
const QString &  szToolTip,
bool  bOn 
)
protected

◆ createWindowListItem()

void KviWindow::createWindowListItem ( )
protectedvirtual

◆ cryptControllerFinished

void KviWindow::cryptControllerFinished ( )
protectedslot

Referenced by toggleCryptController().

◆ cryptSessionInfoDestroyed

void KviWindow::cryptSessionInfoDestroyed ( )
protectedslot

◆ decodeText()

QString KviWindow::decodeText ( const char *  pcText)
inline

◆ defaultTextCodec()

QTextCodec * KviWindow::defaultTextCodec ( )
virtual

◆ delayedAutoRaise()

void KviWindow::delayedAutoRaise ( )

◆ delayedClose()

void KviWindow::delayedClose ( )

◆ demandAttention()

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.

Returns
void

References g_pApp, g_pMainWindow, and isDocked().

Referenced by DccChatWindow::event(), DccVideoWindow::event(), KviNotifyListManager::notifyOnLine(), KviConsoleWindow::outputPrivmsg(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralNotice(), and KviIrcServerParser::parseLiteralPrivmsg().

◆ destroyWindowListItem()

void KviWindow::destroyWindowListItem ( )
protectedvirtual

◆ dock

void KviWindow::dock ( )
slot

◆ encodeText()

QByteArray KviWindow::encodeText ( const QString &  szText)
inline

◆ eventFilter()

bool KviWindow::eventFilter ( QObject *  pObject,
QEvent *  pEvent 
)
overrideprotected

◆ fillCaptionBuffers()

void KviWindow::fillCaptionBuffers ( )
protectedvirtual

◆ fillSingleColorCaptionBuffers()

void KviWindow::fillSingleColorCaptionBuffers ( const QString &  szName)
inlineprotected

◆ focusInEvent()

void KviWindow::focusInEvent ( QFocusEvent *  )
overrideprotected

◆ focusNextPrevChild()

bool KviWindow::focusNextPrevChild ( bool  bNext)
overrideprotected

◆ forceTextCodec()

void KviWindow::forceTextCodec ( QTextCodec *  pCodec)

◆ getBaseLogFileName()

void KviWindow::getBaseLogFileName ( QString &  szBuffer)
virtual

◆ getConfigGroupName()

void KviWindow::getConfigGroupName ( QString &  szBuffer)
virtual

◆ getDefaultLogFileName() [1/2]

void KviWindow::getDefaultLogFileName ( QString &  szBuffer)

◆ getDefaultLogFileName() [2/2]

void KviWindow::getDefaultLogFileName ( QString &  szBuffer,
QDate  date,
bool  bGzip,
unsigned int  uDatetimeFormat 
)

◆ getWindowListTipText()

virtual void KviWindow::getWindowListTipText ( QString &  szBuffer)
inlinevirtual

◆ hasAttention()

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

Parameters
eLevelthe level of checks to be done
Returns
bool

References g_pActiveWindow, g_pMainWindow, isDocked(), MainWindowIsVisible, and VisibleAndActive.

Referenced by NotifierWindow::addMessage(), DccChatWindow::event(), DccVideoWindow::event(), KviApplication::fileDownloadTerminated(), internalOutput(), KviNotifyListManager::notifyOnLine(), KviConsoleWindow::outputPrivmsg(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPrivmsg(), NotifierWindow::shouldHideIfMainWindowGotAttention(), and KviConsoleWindow::triggerOnHighlight().

◆ highlightMe()

bool KviWindow::highlightMe ( unsigned int  uValue)
virtual

◆ highlightMeter()

bool KviWindow::highlightMeter ( unsigned int *  puValue)
virtual

◆ id()

QString KviWindow::id ( ) const
inline

◆ input()

KviInput * KviWindow::input ( ) const
inline

◆ inputMethodEvent()

void KviWindow::inputMethodEvent ( QInputMethodEvent *  e)
overrideprotected

◆ internalOutput()

void KviWindow::internalOutput ( KviIrcView pView,
int  iMsgType,
const kvi_wchar_t pwText,
int  iFlags = 0,
const QDateTime &  datetime = QDateTime() 
)

◆ isChannel()

bool KviWindow::isChannel ( ) const
inline

◆ isConsole()

bool KviWindow::isConsole ( ) const
inline

Returns true if the window is a console

Referenced by KviMainWindow::closeWindow(), and KviMainWindow::~KviMainWindow().

◆ isDocked()

bool KviWindow::isDocked ( ) const
inline

◆ isQuery()

bool KviWindow::isQuery ( ) const
inline

Returns true if the window is a query

◆ lastClickedView()

virtual KviIrcView * KviWindow::lastClickedView ( ) const
inlinevirtual

◆ lastLineOfText()

const QString & KviWindow::lastLineOfText ( )

◆ lastMessageText()

const QString & KviWindow::lastMessageText ( )

◆ listWindowTypes()

void KviWindow::listWindowTypes ( )

◆ loadLogFile()

QByteArray KviWindow::loadLogFile ( const QString &  szFileName,
bool  bGzip 
)
private

Loads a log file.

It opens a logfile, gzipped or not, and returns the content in a buffer

Parameters
szFileNameThe filename of the log file
bGzipWhether the log file is gzipped
Returns
QByteArray

Referenced by pasteLastLog().

◆ loadProperties()

void KviWindow::loadProperties ( KviConfigurationFile pCfg)
protectedvirtual

◆ localNick()

virtual const QString & KviWindow::localNick ( )
inlinevirtual

Reimplemented in DccChatWindow, and DccVideoWindow.

References KviQString::Empty.

◆ lostUserFocus()

void KviWindow::lostUserFocus ( )
protectedvirtual

◆ makeEncoder()

QTextEncoder * KviWindow::makeEncoder ( )

◆ moveEvent()

void KviWindow::moveEvent ( QMoveEvent *  pEvent)
overrideprotected

References updateBackgrounds().

◆ myIconPtr()

QPixmap * KviWindow::myIconPtr ( )
protectedvirtual

◆ numericId()

unsigned long int KviWindow::numericId ( ) const
inline

Returns the global ID of this window.

This is unique in the application

Returns
QString

Referenced by KviKvsCoreFunctions::KVSCF().

◆ output() [1/6]

void KviWindow::output ( int  iMsgType,
const char *  pcFormat,
  ... 
)
virtual

References internalOutput(), kvi_va_end, kvi_va_list, kvi_va_start, l, m_pIrcView, preprocessMessage(), and KviQString::vsprintf().

Referenced by action_kvs_cmd_list(), UPnP::RootService::addDeviceServices(), addon_kvs_cmd_installfiles(), addon_kvs_cmd_list(), addon_kvs_cmd_register(), addon_kvs_cmd_uninstall(), KviIrcConnectionTargetResolver::asyncStartResolve(), avatar_kvs_cmd_notify(), KviChannelWindow::checkChannelSync(), DccBroker::chooseSaveFileName(), KviInputEditor::completion(), DccChatWindow::connected(), DccVideoWindow::connected(), DccVoiceWindow::connected(), KviIrcContext::connectionEstablished(), KviIrcContext::connectionFailed(), SocketSpyWindow::connectionInitiated(), DccChatWindow::connectionInProgress(), DccVideoWindow::connectionInProgress(), DccVoiceWindow::connectionInProgress(), KviIrcContext::connectionTerminated(), SocketSpyWindow::connectionTerminated(), KviIrcLink::createSocket(), cryptSessionInfoDestroyed(), dcc_module_request_error(), dccModuleParseDccChat(), dccModuleParseDccGet(), dccModuleParseDccRecv(), dccModuleParseDccRSend(), dccModuleParseDccSend(), dccModuleParseDccVideo(), dccModuleParseDccVoice(), KviIsOnNotifyListManager::delayedIsOnSession(), KviIsOnNotifyListManager::delayedNotifySession(), KviIsOnNotifyListManager::delayedUserhostSession(), KviIsOnNotifyListManager::doMatchUser(), KviWatchNotifyListManager::doMatchUser(), 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(), KviKvsObject::function_listProperties(), KviIrcConnection::handleFailedInitialCapLs(), KviIsOnNotifyListManager::handleIsOn(), KviStupidNotifyListManager::handleIsOn(), DccChatWindow::handleMarshalError(), DccVideoWindow::handleMarshalError(), DccVoiceWindow::handleMarshalError(), KviIsOnNotifyListManager::handleUserhost(), KviWatchNotifyListManager::handleWatchReply(), KviIrcConnectionTargetResolver::haveServerIp(), HttpFileTransfer::headersReceived(), KviIrcConnection::heartbeat(), KviIrcConnection::hostNameLookupTerminated(), LinksWindow::hostPopupClicked(), KviApplication::ipcMessage(), KviKvsCoreSimpleCommands::KVSCSC(), KviLagMeter::lagCheckAbort(), KviLagMeter::lagCheckComplete(), KviLagMeter::lagCheckRegister(), KviIrcLink::linkFilterDestroyed(), KviModuleManager::loadModule(), KviIrcConnection::loginComplete(), KviIrcConnection::loginToIrcServer(), KviIrcConnectionTargetResolver::lookupProxyHostname(), KviIrcConnectionTargetResolver::lookupServerHostname(), KviKvsAsyncDnsOperation::lookupTerminated(), KviIrcView::mouseDoubleClickEvent(), KviIsOnNotifyListManager::newNotifySession(), KviIsOnNotifyListManager::newUserhostSession(), KviQueryWindow::notifyCommonChannels(), KviQueryWindow::notifyTargetChange(), objects_kvs_fnc_listObjects(), options_kvs_module_print_pages(), KviIrcServerParser::otherChannelError(), DccFileTransfer::outputAndLog(), DccFileTransfer::outputAndLog(), KviIrcSocket::outputProxyError(), KviIrcSocket::outputProxyMessage(), KviIrcSocket::outputSocketError(), KviIrcSocket::outputSocketMessage(), KviIrcSocket::outputSocketWarning(), KviIrcSocket::outputSSLError(), KviIrcSocket::outputSSLMessage(), KviChannelWindow::ownAction(), KviQueryWindow::ownAction(), DccChatWindow::ownAction(), DccVideoWindow::ownAction(), KviChannelWindow::ownMessage(), KviQueryWindow::ownMessage(), DccChatWindow::ownMessage(), DccVideoWindow::ownMessage(), KviIrcServerParser::parseChannelHelp(), KviIrcServerParser::parseChannelMode(), KviIrcServerParser::parseCommandEndOfHelp(), KviIrcServerParser::parseCommandSyntaxHelp(), KviIrcServerParser::parseCtcpReplyPing(), KviIrcServerParser::parseCtcpRequest(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseCtcpRequestAvatar(), KviIrcServerParser::parseCtcpRequestDcc(), KviIrcServerParser::parseLiteralCap(), KviIrcServerParser::parseLiteralChghost(), KviIrcServerParser::parseLiteralError(), KviIrcServerParser::parseLiteralInvite(), KviIrcServerParser::parseLiteralJoin(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralMode(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPart(), KviIrcServerParser::parseLiteralPing(), KviIrcServerParser::parseLiteralPong(), KviIrcServerParser::parseLiteralPrivmsg(), KviIrcServerParser::parseLiteralQuit(), KviIrcServerParser::parseLiteralTopic(), KviIrcServerParser::parseLiteralWallops(), KviIrcServerParser::parseLoginNicknameProblem(), KviIrcServerParser::parseMessage(), KviUserInput::parseNonCommand(), KviIrcServerParser::parseNumeric004(), KviIrcServerParser::parseNumeric005(), KviIrcServerParser::parseNumeric020(), KviIrcServerParser::parseNumeric367(), KviIrcServerParser::parseNumeric368(), KviIrcServerParser::parseNumeric486(), KviIrcServerParser::parseNumeric742(), KviIrcServerParser::parseNumericAlreadyRegistered(), KviIrcServerParser::parseNumericAway(), KviIrcServerParser::parseNumericBackFromAway(), KviIrcServerParser::parseNumericBanOnChan(), KviIrcServerParser::parseNumericCannotSend(), KviIrcServerParser::parseNumericCannotSendColor(), KviIrcServerParser::parseNumericCantJoinChannel(), KviIrcServerParser::parseNumericChannelModeIs(), KviIrcServerParser::parseNumericChanUrl(), KviIrcServerParser::parseNumericCodePageScheme(), KviIrcServerParser::parseNumericCodePageSet(), KviIrcServerParser::parseNumericCreationTime(), KviIrcServerParser::parseNumericEndOfLinks(), KviIrcServerParser::parseNumericEndOfNames(), KviIrcServerParser::parseNumericEndOfQuietList(), KviIrcServerParser::parseNumericEndOfWho(), KviIrcServerParser::parseNumericEndOfWhois(), KviIrcServerParser::parseNumericEndOfWhowas(), KviIrcServerParser::parseNumericForward(), KviIrcServerParser::parseNumericHiddenHost(), KviIrcServerParser::parseNumericInfoEnd(), KviIrcServerParser::parseNumericInfoStart(), KviIrcServerParser::parseNumericInvited(), KviIrcServerParser::parseNumericInviting(), KviIrcServerParser::parseNumericIsOn(), KviIrcServerParser::parseNumericLinks(), KviIrcServerParser::parseNumericList(), KviIrcServerParser::parseNumericListEnd(), KviIrcServerParser::parseNumericListStart(), KviIrcServerParser::parseNumericMotdMissing(), KviIrcServerParser::parseNumericNames(), KviIrcServerParser::parseNumericNeedSSL(), KviIrcServerParser::parseNumericNicknameProblem(), KviIrcServerParser::parseNumericNoPrivs(), KviIrcServerParser::parseNumericNoSuchChannel(), KviIrcServerParser::parseNumericNoSuchNick(), KviIrcServerParser::parseNumericNoSuchServer(), KviIrcServerParser::parseNumericNotEnoughParams(), KviIrcServerParser::parseNumericNotifyGeneric(), KviIrcServerParser::parseNumericNoTopic(), KviIrcServerParser::parseNumericNotRegistered(), KviIrcServerParser::parseNumericOftcEndOfQuietList(), KviIrcServerParser::parseNumericOftcQuietList(), KviIrcServerParser::parseNumericPasswordIncorrect(), KviIrcServerParser::parseNumericQuietList(), KviIrcServerParser::parseNumericSaslFail(), KviIrcServerParser::parseNumericSaslLogin(), KviIrcServerParser::parseNumericServerAdminInfoAdminContact(), KviIrcServerParser::parseNumericServerAdminInfoAdminName(), KviIrcServerParser::parseNumericServerAdminInfoServerName(), KviIrcServerParser::parseNumericSnomask(), KviIrcServerParser::parseNumericStartTls(), KviIrcServerParser::parseNumericTime(), KviIrcServerParser::parseNumericTopic(), KviIrcServerParser::parseNumericTopicWhoTime(), KviIrcServerParser::parseNumericTryAgain(), KviIrcServerParser::parseNumericUnavailResource(), KviIrcServerParser::parseNumericUnknownCommand(), KviIrcServerParser::parseNumericUserhost(), KviIrcServerParser::parseNumericUserInChan(), KviIrcServerParser::parseNumericUserMode(), KviIrcServerParser::parseNumericUsersDontMatch(), KviIrcServerParser::parseNumericWatch(), KviIrcServerParser::parseNumericWhoisActually(), KviIrcServerParser::parseNumericWhoisAuth(), KviIrcServerParser::parseNumericWhoisAway(), KviIrcServerParser::parseNumericWhoisChannels(), KviIrcServerParser::parseNumericWhoisIdle(), KviIrcServerParser::parseNumericWhoisOther(), KviIrcServerParser::parseNumericWhoisRegistered(), KviIrcServerParser::parseNumericWhoisServer(), KviIrcServerParser::parseNumericWhoisUser(), KviIrcServerParser::parseNumericWhoReply(), KviIrcServerParser::parseNumericWhospcrpl(), KviIrcServerParser::parseNumericWhowasUser(), KviIrcServerParser::parseNumericYouHaveCallerID(), KviIrcServerParser::parseNumericYoureOper(), KviIrcServerParser::parseNumericYourUID(), pasteLastLog(), LinksWindow::processData(), ListWindow::processData(), KviIrcConnectionTargetResolver::proxyLookupTerminated(), DccBroker::recvFileManage(), regchan_kvs_cmd_showlist(), reguser_kvs_cmd_showlist(), DccBroker::renameDccSendFile(), DccBroker::renameOverwriteResume(), KviKvsReport::report(), HttpFileTransfer::requestSent(), KviIrcConnection::resolveLocalHost(), KviIrcLink::resolverTerminated(), KviIrcConnection::restartNotifyList(), DccBroker::rsendExecute(), DccBroker::sendFileExecute(), KviIsOnNotifyListManager::sendIsOn(), KviStupidNotifyListManager::sendIsOn(), KviIsOnNotifyListManager::sendUserhost(), KviIrcConnectionTargetResolver::serverLookupTerminated(), KviConsoleWindow::setAvatar(), KviIrcConnection::setEncoding(), sharedfile_kvs_cmd_list(), snd_kvs_cmd_autodetect(), KviIrcLink::socketStateChange(), spaste_kvs_cmd_list(), DccChatWindow::sslError(), KviIsOnNotifyListManager::start(), KviWatchNotifyListManager::start(), DccChatWindow::startConnection(), DccVideoWindow::startConnection(), DccVoiceWindow::startConnection(), HttpFileTransfer::statusMessage(), KviLagMeter::timerEvent(), KviChannelWindow::topicSelected(), HttpFileTransfer::transferTerminated(), KviKvsProcessAsyncOperation::trigger(), KviKvsEventManager::triggerHandlers(), KviModuleManager::unloadModule(), and KviIrcConnection::userInfoReceived().

◆ output() [2/6]

void KviWindow::output ( int  iMsgType,
const kvi_wchar_t pwFormat,
  ... 
)
virtual

◆ output() [3/6]

void KviWindow::output ( int  iMsgType,
const QDateTime &  datetime,
const char *  pcFormat,
  ... 
)

◆ output() [4/6]

void KviWindow::output ( int  iMsgType,
const QDateTime &  datetime,
const kvi_wchar_t pwFormat,
  ... 
)

◆ output() [5/6]

void KviWindow::output ( int  iMsgType,
const QDateTime &  datetime,
QString  szFmt,
  ... 
)

◆ output() [6/6]

void KviWindow::output ( int  iMsgType,
QString  szFmt,
  ... 
)
virtual

◆ outputNoFmt() [1/3]

void KviWindow::outputNoFmt ( int  iMsgType,
const char *  pcText,
int  iFlags = 0,
const QDateTime &  datetime = QDateTime() 
)
virtual

References internalOutput(), m_pIrcView, and preprocessMessage().

Referenced by KviIrcConnectionTargetResolver::abort(), KviIrcContext::abortReconnect(), KviInputEditor::completion(), KviIrcContext::connectionFailed(), KviIrcContext::connectToCurrentServer(), dccModuleParseDccRecv(), LinksWindow::endOfLinks(), ListWindow::endOfList(), DccVideoWindow::event(), DccVoiceWindow::event(), KviIdentSentinel::event(), KviKvsScript::execute(), SocketSpyWindow::incomingMessage(), internalOutput(), LogViewWindow::itemSelected(), KviIrcConnection::keepChannelsOpenAfterDisconnect(), KviIrcConnection::keepQueriesOpenAfterDisconnect(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), KviKvsCoreSimpleCommands::KVSCSC(), listWindowTypes(), KviIrcConnection::loginComplete(), KviIrcConnection::loginToIrcServer(), KviIrcConnectionTargetResolver::lookupProxyHostname(), KviIrcConnectionTargetResolver::lookupServerHostname(), 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(), KviIrcConnection::sendData(), KviIrcConnection::sendFmtData(), sharedfile_kvs_cmd_list(), snd_kvs_cmd_autodetect(), KviIrcLink::socketStateChange(), KviStupidNotifyListManager::start(), DccChatWindow::startingSSLHandshake(), ListWindow::stoplistdownload(), KviIrcContext::terminateConnectionRequest(), and KviIrcConnection::userInfoReceived().

◆ outputNoFmt() [2/3]

virtual void KviWindow::outputNoFmt ( int  iMsgType,
const kvi_wchar_t pwText,
int  iFlags = 0,
const QDateTime &  datetime = QDateTime() 
)
inlinevirtual

◆ outputNoFmt() [3/3]

void KviWindow::outputNoFmt ( int  iMsgType,
const QString &  szText,
int  iFlags = 0,
const QDateTime &  datetime = QDateTime() 
)
virtual

◆ outputProxy()

KviWindow * KviWindow::outputProxy ( )
virtual

Referenced by internalOutput().

◆ ownAction()

virtual void KviWindow::ownAction ( const QString &  )
inlinevirtual

◆ ownMessage()

virtual void KviWindow::ownMessage ( const QString &  ,
bool  = true 
)
inlinevirtual

◆ pasteLastLog()

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

Returns
void

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().

◆ plainTextCaption()

virtual const QString & KviWindow::plainTextCaption ( )
inlinevirtual

◆ preprocessMessage()

void KviWindow::preprocessMessage ( QString &  szMessage)
protectedvirtual

◆ reloadImages

void KviWindow::reloadImages ( )
slot

References updateIcon().

Referenced by KviWindow().

◆ saveProperties()

void KviWindow::saveProperties ( KviConfigurationFile pCfg)
protectedvirtual

◆ savePropertiesAsDefault

void KviWindow::savePropertiesAsDefault ( )
slot

◆ setFixedCaption()

void KviWindow::setFixedCaption ( const QString &  szCaption)
inline

◆ setProgress()

void KviWindow::setProgress ( int  iProgress)

Sets the progress for the WindowList item.

If "progress" makes sense in your window, well, use this

Parameters
iProgressThe progress to set
Returns
void

References m_pWindowListItem, and KviWindowListItem::setProgress().

◆ setTextEncoding()

bool KviWindow::setTextEncoding ( const QString &  szTextEncoding)

◆ setType()

void KviWindow::setType ( Type  eType)
inlineprotected

◆ setWindowName()

void KviWindow::setWindowName ( const QString &  szName)

Sets the name of the window.

Parameters
szNameThe name of the window
Returns
void

References m_szName, and windowNameChanged().

Referenced by KviQueryWindow::nickChange(), and KviQueryWindow::setTarget().

◆ setWindowTitle()

void KviWindow::setWindowTitle ( QString &  szTitle)

◆ splitter()

KviTalSplitter * KviWindow::splitter ( ) const
inline

Returns the splitter of this window.

It shouldn't be null... but... well... who knows ? :D ...better check it

Returns
KviTalSplitter *

◆ systemTextEncodingPopupActivated

void KviWindow::systemTextEncodingPopupActivated ( QAction *  pAction)
protectedslot

◆ target()

virtual const QString & KviWindow::target ( )
inlinevirtual

◆ textCodec()

QTextCodec * KviWindow::textCodec ( )
inline

◆ textEncoding()

const QString & KviWindow::textEncoding ( ) const
inline

◆ textEncodingButtonClicked

void KviWindow::textEncodingButtonClicked ( )
protectedslot

◆ toggleButtonContainer()

void KviWindow::toggleButtonContainer ( )
virtual

◆ toggleCryptController

void KviWindow::toggleCryptController ( )
protectedslot

◆ triggerCreationEvents()

virtual void KviWindow::triggerCreationEvents ( )
inlineprotectedvirtual

◆ triggerDestructionEvents()

virtual void KviWindow::triggerDestructionEvents ( )
inlineprotectedvirtual

Reimplemented in DccChatWindow, and DccVideoWindow.

Referenced by KviMainWindow::closeWindow().

◆ type()

Type KviWindow::type ( ) const
inline

◆ typeString()

const char * KviWindow::typeString ( )
virtual

Returns a descriptive name of the window type.

Returns
const char *

References m_eType, m_typeTable, TypeCount, and Unknown.

Referenced by KviMainWindow::addWindow(), getConfigGroupName(), getDefaultLogFileName(), and savePropertiesAsDefault().

◆ undock

void KviWindow::undock ( )
slot

◆ unhighlight()

void KviWindow::unhighlight ( )

◆ updateBackgrounds()

void KviWindow::updateBackgrounds ( QObject *  pObj = nullptr)

References updateBackgrounds().

Referenced by moveEvent(), and updateBackgrounds().

◆ updateCaption()

void KviWindow::updateCaption ( )
virtual

◆ updateIcon()

void KviWindow::updateIcon ( )
virtual

◆ view()

KviIrcView * KviWindow::view ( ) const
inline

Returns the KviIrcView of this window.

May be nullptr if the window has no KviIrcView (and thus supports no direct output)

Returns
KviIrcView *

Referenced by log_kvs_cmd_flush(), log_kvs_cmd_start(), log_kvs_cmd_stop(), log_kvs_fnc_file(), window_kvs_cmd_setBackground(), and KviMainWindow::windowActivated().

◆ windowListItem()

KviWindowListItem * KviWindow::windowListItem ( ) const
inline

Returns the windowList item.

The window has ALWAYS a WindowList item

Returns
KviWindowListItem *

Referenced by KviMainWindow::recreateWindowList(), KviWindowListBase::switchWindow(), and KviMainWindow::windowActivated().

◆ windowName()

const QString & KviWindow::windowName ( ) const
inline

◆ windowNameChanged

void KviWindow::windowNameChanged ( )
signal

Referenced by setWindowName().

◆ youAreDocked()

void KviWindow::youAreDocked ( )
protectedvirtual

References m_bIsDocked, and updateCaption().

Referenced by KviMainWindow::dockWindow().

◆ youAreUndocked()

void KviWindow::youAreUndocked ( )
protectedvirtual

Friends And Related Symbol Documentation

◆ KviInput

friend class KviInput
friend

◆ KviMainWindow

friend class KviMainWindow
friend

◆ KviTreeWindowList

friend class KviTreeWindowList
friend

◆ KviTreeWindowListItem

friend class KviTreeWindowListItem
friend

◆ KviTreeWindowListItemDelegate

friend class KviTreeWindowListItemDelegate
friend

◆ KviWindowListButton

friend class KviWindowListButton
friend

◆ KviWindowListItem

friend class KviWindowListItem
friend

◆ KviWindowStack

friend class KviWindowStack
friend

Member Data Documentation

◆ m_bIsDocked

bool KviWindow::m_bIsDocked
protected

◆ m_bProcessingInputEvent

bool KviWindow::m_bProcessingInputEvent
protected

Referenced by inputMethodEvent(), and KviWindow().

◆ m_eType

Type KviWindow::m_eType
protected

Referenced by KviWindow(), and typeString().

◆ m_pButtonBox

KviTalHBox* KviWindow::m_pButtonBox
protected

◆ m_pConsole

KviConsoleWindow* KviWindow::m_pConsole
protected

◆ m_pFocusHandler

QWidget* KviWindow::m_pFocusHandler
protected

◆ m_pHideToolsButton

QToolButton* KviWindow::m_pHideToolsButton
protected

◆ m_pInput

KviInput* KviWindow::m_pInput
protected

◆ m_pIrcView

KviIrcView* KviWindow::m_pIrcView
protected

◆ m_pLastFocusedChild

QWidget* KviWindow::m_pLastFocusedChild
protected

◆ m_pSplitter

KviTalSplitter* KviWindow::m_pSplitter
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(), KviConsoleWindow::loadProperties(), KviDebugWindow::loadProperties(), HelpWindow::loadProperties(), KviChannelWindow::loadProperties(), KviQueryWindow::loadProperties(), LogViewWindow::LogViewWindow(), KviChannelWindow::resizeEvent(), KviQueryWindow::resizeEvent(), DccVideoWindow::resizeEvent(), KviConsoleWindow::resizeEvent(), KviDebugWindow::resizeEvent(), DccChatWindow::resizeEvent(), DccVoiceWindow::resizeEvent(), FileTransferWindow::resizeEvent(), HelpWindow::resizeEvent(), LinksWindow::resizeEvent(), ListWindow::resizeEvent(), SharedFilesWindow::resizeEvent(), SocketSpyWindow::resizeEvent(), LogViewWindow::resizeEvent(), KviConsoleWindow::saveProperties(), KviDebugWindow::saveProperties(), HelpWindow::saveProperties(), KviChannelWindow::saveProperties(), KviQueryWindow::saveProperties(), SharedFilesWindow::SharedFilesWindow(), KviQueryWindow::showListView(), KviConsoleWindow::showNotifyList(), KviChannelWindow::sizeHint(), KviDebugWindow::sizeHint(), KviQueryWindow::sizeHint(), DccVideoWindow::sizeHint(), FileTransferWindow::sizeHint(), LinksWindow::sizeHint(), ListWindow::sizeHint(), LogViewWindow::sizeHint(), SharedFilesWindow::sizeHint(), SocketSpyWindow::SocketSpyWindow(), toggleCryptController(), KviChannelWindow::toggleListModeEditor(), KviChannelWindow::toggleListView(), and KviChannelWindow::toggleModeEditor().

◆ m_pTextCodec

QTextCodec* KviWindow::m_pTextCodec
protected

◆ m_pTextEncodingButton

QToolButton* KviWindow::m_pTextEncodingButton
protected

◆ m_pWindowListItem

KviWindowListItem* KviWindow::m_pWindowListItem
protected

◆ m_szName

QString KviWindow::m_szName
protected

◆ m_szPlainTextCaption

QString KviWindow::m_szPlainTextCaption
protected

◆ m_szTextEncoding

QString KviWindow::m_szTextEncoding
protected

◆ m_typeTable

const char * KviWindow::m_typeTable
staticprotected
Initial value:
= {
"console",
"channel",
"query",
"deadchannel",
"deadquery",
"editor",
"help",
"terminal",
"socketspy",
"links",
"list",
"dccchat",
"dcctransfer",
"dcccanvas",
"dccvoice",
"dccvideo",
"userwindow",
"tool",
"iograph",
"dirbrowser",
"scripteditor",
"scriptobject",
"logview",
"offer",
"debug",
"unknown"
}

Referenced by listWindowTypes(), and typeString().

◆ m_uId

unsigned long int KviWindow::m_uId
protected

Referenced by KviWindow().

Property Documentation

◆ KviProperty_ChildFocusOwner

int KviWindow::KviProperty_ChildFocusOwner
read

The documentation for this class was generated from the following files: