KVIrc 5.2.6
Developer APIs
LogViewWindow Class Reference

#include <LogViewWindow.h>

+ Inheritance diagram for LogViewWindow:

Public Member Functions

 LogViewWindow ()
 
 ~LogViewWindow ()
 
- Public Member Functions inherited from KviWindow
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 abortFilter ()
 
void applyFilter ()
 
void cacheFileList ()
 
void deleteCurrent ()
 
void exportLog (QAction *pAction)
 
void filterNext ()
 
void itemSelected (QTreeWidgetItem *pItem, QTreeWidgetItem *)
 
void rightButtonClicked (QTreeWidgetItem *, const QPoint &)
 
- Protected Slots inherited from KviWindow
void childDestroyed ()
 
void cryptControllerFinished ()
 
void cryptSessionInfoDestroyed ()
 
void systemTextEncodingPopupActivated (QAction *pAction)
 
void textEncodingButtonClicked ()
 
void toggleCryptController ()
 

Protected Member Functions

virtual void die ()
 
void exportLog (LogFile::ExportType exportType)
 
void fillCaptionBuffers () override
 
void keyPressEvent (QKeyEvent *pEvent) override
 
QPixmap * myIconPtr () override
 
void recurseDirectory (const QString &szDir)
 
void resizeEvent (QResizeEvent *pEvent) override
 
void setupItemList ()
 
QSize sizeHint () const override
 
- Protected Member Functions inherited from KviWindow
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 loadProperties (KviConfigurationFile *pCfg)
 
virtual void lostUserFocus ()
 
void moveEvent (QMoveEvent *pEvent) override
 
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_bAborted = false
 
std::vector< std::shared_ptr< LogFile > >::const_iterator m_currentLog
 
std::vector< std::shared_ptr< LogFile > > m_logList
 
KviTalHBoxm_pBottomLayout
 
QPushButton * m_pCancelButton
 
QLineEdit * m_pContentsMask
 
QCheckBox * m_pEnableFromFilter
 
QCheckBox * m_pEnableToFilter
 
QMenu * m_pExportLogPopup
 
QLineEdit * m_pFileNameMask
 
QPushButton * m_pFilterButton
 
QDateEdit * m_pFromDateEdit
 
KviTalVBoxm_pIndexTab
 
LogListViewItemm_pLastCategory = nullptr
 
LogListViewItemFolderm_pLastGroupItem = nullptr
 
KviTalVBoxm_pLeftLayout
 
LogViewListViewm_pListView
 
QProgressBar * m_pProgressBar
 
QWidget * m_pSearchTab
 
QCheckBox * m_pShowChannelsCheck
 
QCheckBox * m_pShowConsolesCheck
 
QCheckBox * m_pShowDccChatCheck
 
QCheckBox * m_pShowOtherCheck
 
QCheckBox * m_pShowQueryesCheck
 
QTabWidget * m_pTabWidget
 
QTimer * m_pTimer
 
QDateEdit * m_pToDateEdit
 
QString m_szLastGroup
 
- Protected Attributes inherited from KviWindow
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
 

Additional Inherited Members

- Public Types inherited from KviWindow
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 inherited from KviWindow
void autoRaise ()
 
void dock ()
 
void reloadImages ()
 
void savePropertiesAsDefault ()
 
void undock ()
 
- Signals inherited from KviWindow
void windowNameChanged ()
 
- Static Protected Attributes inherited from KviWindow
static const char * m_typeTable [TypeCount]
 
- Properties inherited from KviWindow
int KviProperty_ChildFocusOwner
 

Constructor & Destructor Documentation

◆ LogViewWindow()

◆ ~LogViewWindow()

LogViewWindow::~LogViewWindow ( )

References g_pLogViewWindow.

Member Function Documentation

◆ abortFilter

void LogViewWindow::abortFilter ( )
protectedslot

References m_bAborted.

Referenced by LogViewWindow().

◆ applyFilter

void LogViewWindow::applyFilter ( )
protectedslot

References setupItemList().

Referenced by LogViewWindow().

◆ cacheFileList

void LogViewWindow::cacheFileList ( )
protectedslot

◆ deleteCurrent

◆ die()

void LogViewWindow::die ( )
protectedvirtual

◆ exportLog() [1/2]

◆ exportLog [2/2]

void LogViewWindow::exportLog ( QAction * pAction)
protectedslot

References exportLog().

◆ fillCaptionBuffers()

void LogViewWindow::fillCaptionBuffers ( )
overrideprotectedvirtual

Reimplemented from KviWindow.

References __tr2qs_ctx, and KviWindow::m_szPlainTextCaption.

◆ filterNext

◆ itemSelected

void LogViewWindow::itemSelected ( QTreeWidgetItem * pItem,
QTreeWidgetItem *  )
protectedslot

◆ keyPressEvent()

void LogViewWindow::keyPressEvent ( QKeyEvent * pEvent)
overrideprotected

References KviWindow::m_pIrcView.

◆ myIconPtr()

QPixmap * LogViewWindow::myIconPtr ( )
overrideprotectedvirtual

Reimplemented from KviWindow.

References g_pIconManager, and KviIconManager::Log.

◆ recurseDirectory()

void LogViewWindow::recurseDirectory ( const QString & szDir)
protected

References i, m_logList, and recurseDirectory().

Referenced by cacheFileList(), and recurseDirectory().

◆ resizeEvent()

void LogViewWindow::resizeEvent ( QResizeEvent * pEvent)
overrideprotected

◆ rightButtonClicked

void LogViewWindow::rightButtonClicked ( QTreeWidgetItem * pItem,
const QPoint &  )
protectedslot

◆ setupItemList()

void LogViewWindow::setupItemList ( )
protected

◆ sizeHint()

QSize LogViewWindow::sizeHint ( ) const
overrideprotected

Member Data Documentation

◆ m_bAborted

bool LogViewWindow::m_bAborted = false
protected

◆ m_currentLog

std::vector<std::shared_ptr<LogFile>>::const_iterator LogViewWindow::m_currentLog
protected

Referenced by filterNext(), and setupItemList().

◆ m_logList

std::vector<std::shared_ptr<LogFile> > LogViewWindow::m_logList
protected

◆ m_pBottomLayout

KviTalHBox* LogViewWindow::m_pBottomLayout
protected

◆ m_pCancelButton

QPushButton* LogViewWindow::m_pCancelButton
protected

Referenced by LogViewWindow().

◆ m_pContentsMask

QLineEdit* LogViewWindow::m_pContentsMask
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pEnableFromFilter

QCheckBox* LogViewWindow::m_pEnableFromFilter
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pEnableToFilter

QCheckBox* LogViewWindow::m_pEnableToFilter
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pExportLogPopup

QMenu* LogViewWindow::m_pExportLogPopup
protected

◆ m_pFileNameMask

QLineEdit* LogViewWindow::m_pFileNameMask
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pFilterButton

QPushButton* LogViewWindow::m_pFilterButton
protected

◆ m_pFromDateEdit

QDateEdit* LogViewWindow::m_pFromDateEdit
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pIndexTab

KviTalVBox* LogViewWindow::m_pIndexTab
protected

Referenced by LogViewWindow().

◆ m_pLastCategory

LogListViewItem* LogViewWindow::m_pLastCategory = nullptr
protected

Referenced by filterNext(), and setupItemList().

◆ m_pLastGroupItem

LogListViewItemFolder* LogViewWindow::m_pLastGroupItem = nullptr
protected

Referenced by filterNext(), and setupItemList().

◆ m_pLeftLayout

KviTalVBox* LogViewWindow::m_pLeftLayout
protected

Referenced by LogViewWindow().

◆ m_pListView

LogViewListView* LogViewWindow::m_pListView
protected

◆ m_pProgressBar

QProgressBar* LogViewWindow::m_pProgressBar
protected

◆ m_pSearchTab

QWidget* LogViewWindow::m_pSearchTab
protected

Referenced by LogViewWindow().

◆ m_pShowChannelsCheck

QCheckBox* LogViewWindow::m_pShowChannelsCheck
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pShowConsolesCheck

QCheckBox* LogViewWindow::m_pShowConsolesCheck
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pShowDccChatCheck

QCheckBox* LogViewWindow::m_pShowDccChatCheck
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pShowOtherCheck

QCheckBox* LogViewWindow::m_pShowOtherCheck
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pShowQueryesCheck

QCheckBox* LogViewWindow::m_pShowQueryesCheck
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_pTabWidget

QTabWidget* LogViewWindow::m_pTabWidget
protected

Referenced by LogViewWindow().

◆ m_pTimer

QTimer* LogViewWindow::m_pTimer
protected

◆ m_pToDateEdit

QDateEdit* LogViewWindow::m_pToDateEdit
protected

Referenced by filterNext(), and LogViewWindow().

◆ m_szLastGroup

QString LogViewWindow::m_szLastGroup
protected

Referenced by filterNext().


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