KVIrc
4.9.2
DeveloperAPIs
|
#include <LogViewWindow.h>
Public Member Functions | |
void | createLog (LogFile *pLog, int iId, QString *pszFile=0) |
Exports the log and creates the file in the selected format. More... | |
LogViewWindow () | |
~LogViewWindow () | |
Public Member Functions inherited from KviWindow | |
virtual bool | activityMeter (unsigned int *puActivityValue, unsigned int *puActivityTemperature) |
virtual void | applyOptions () |
virtual QFrame * | buttonContainer () |
KviIrcConnection * | connection () |
Returns the current IRC connection (if any) More... | |
KviConsoleWindow * | console () |
Returns the console that this window belongs to. More... | |
KviIrcContext * | context () |
void | contextPopup () |
QString | decodeText (const char *pcText) |
virtual QTextCodec * | defaultTextCodec () |
void | delayedAutoRaise () |
void | delayedClose () |
void | demandAttention () |
Notify the window manager that this window demands attention. More... | |
QByteArray | encodeText (const QString &szText) |
void | forceTextCodec (QTextCodec *pCodec) |
virtual void | getBaseLogFileName (QString &szBuffer) |
virtual void | getConfigGroupName (QString &szBuffer) |
void | getDefaultLogFileName (QString &szBuffer) |
virtual void | getWindowListTipText (QString &szBuffer) |
bool | hasAttention (AttentionLevel eLevel=VisibleAndActive) |
Returns whether this window is the active one. More... | |
virtual bool | highlightMe (unsigned int uValue) |
virtual bool | highlightMeter (unsigned int *puValue) |
QString | id () |
Returns the global ID of this window. More... | |
KviInput * | input () |
void | internalOutput (KviIrcView *pView, int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
bool | isChannel () const |
bool | isConsole () const |
bool | isDocked () |
bool | isQuery () const |
KviWindow (Type eType, const QString &szName, KviConsoleWindow *pConsole=0) | |
Constructs the window object. More... | |
const QString & | lastLineOfText () |
const QString & | lastMessageText () |
void | listWindowTypes () |
virtual const QString & | localNick () |
QTextEncoder * | makeEncoder () |
unsigned long int | numericId () |
Returns the global ID of this window. More... | |
virtual void | output (int iMsgType, const char *pcFormat,...) |
virtual void | output (int iMsgType, const kvi_wchar_t *pwFormat,...) |
virtual void | output (int iMsgType, QString szFmt,...) |
void | output (int iMsgType, const QDateTime &datetime, const char *pcFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, const kvi_wchar_t *pwFormat,...) |
void | output (int iMsgType, const QDateTime &datetime, QString szFmt,...) |
virtual void | outputNoFmt (int iMsgType, const char *pcText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual void | outputNoFmt (int iMsgType, const kvi_wchar_t *pwText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual void | outputNoFmt (int iMsgType, const QString &szText, int iFlags=0, const QDateTime &datetime=QDateTime()) |
virtual KviWindow * | outputProxy () |
virtual void | ownAction (const QString &) |
virtual void | ownMessage (const QString &, bool=true) |
virtual const QString & | plainTextCaption () |
void | setFixedCaption (const QString &szCaption) |
void | setProgress (int iProgress) |
Sets the progress for the WindowList item. More... | |
bool | setTextEncoding (const QString &szTextEncoding) |
void | setWindowName (const QString &szName) |
Sets the name of the window. More... | |
void | setWindowTitle (QString &szTitle) |
KviTalSplitter * | splitter () |
Returns the splitter of this window. More... | |
virtual const QString & | target () |
QTextCodec * | textCodec () |
const QString & | textEncoding () |
virtual void | toggleButtonContainer () |
Type | type () const |
Returns the type of the window. More... | |
virtual const char * | typeString () |
Returns a descriptive name of the window type. More... | |
void | unhighlight () |
void | updateBackgrounds (QObject *pObj=0) |
virtual void | updateCaption () |
virtual void | updateIcon () |
KviIrcView * | view () const |
Returns the KviIrcView of this window. More... | |
KviWindowListItem * | windowListItem () |
Returns the windowList item. More... | |
const QString & | windowName () |
Returns the name of this window. More... | |
virtual | ~KviWindow () |
Destroys the window object. More... | |
Protected Slots | |
void | 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 (int iId) |
virtual void | fillCaptionBuffers () |
virtual void | keyPressEvent (QKeyEvent *pEvent) |
virtual QPixmap * | myIconPtr () |
void | recurseDirectory (const QString &szDir) |
virtual void | resizeEvent (QResizeEvent *pEvent) |
void | setupItemList () |
virtual QSize | sizeHint () const |
Protected Member Functions inherited from KviWindow | |
virtual void | childEvent (QChildEvent *pEvent) |
void | childInserted (QWidget *pObject) |
void | childRemoved (QWidget *pObject) |
virtual void | childrenTreeChanged (QWidget *pAdded) |
virtual void | closeEvent (QCloseEvent *pEvent) |
void | createCryptControllerButton (QWidget *pPar) |
void | createSystemTextEncodingPopup () |
void | createTextEncodingButton (QWidget *pPar) |
QToolButton * | createToolButton (QWidget *pPar, const char *pcName, KviIconManager::SmallIcon eIcon, const QString &szToolTip, bool bOn) |
virtual void | createWindowListItem () |
virtual void | destroyWindowListItem () |
bool | eventFilter (QObject *pObject, QEvent *pEvent) |
void | fillSingleColorCaptionBuffers (const QString &szName) |
virtual void | focusInEvent (QFocusEvent *) |
virtual bool | focusNextPrevChild (bool bNext) |
virtual void | inputMethodEvent (QInputMethodEvent *e) |
virtual void | loadProperties (KviConfigurationFile *pCfg) |
virtual void | lostUserFocus () |
virtual void | moveEvent (QMoveEvent *pEvent) |
virtual 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 () |
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 |
LogViewWindow::LogViewWindow | ( | ) |
References __tr2qs_ctx(), abortFilter(), applyFilter(), cacheFileList(), connect(), exportLog(), filterNext(), LogFile::HTML, itemSelected(), KviTalSplitter, m_pBottomLayout, m_pCancelButton, m_pContentsMask, m_pEnableFromFilter, m_pEnableToFilter, m_pExportLogPopup, m_pFileNameMask, m_pFilterButton, m_pFromDateEdit, m_pIndexTab, KviWindow::m_pIrcView, m_pLeftLayout, m_pListView, m_pProgressBar, m_pSearchTab, m_pShowChannelsCheck, m_pShowConsolesCheck, m_pShowDccChatCheck, m_pShowOtherCheck, m_pShowQueryesCheck, KviWindow::m_pSplitter, m_pTabWidget, m_pTimer, m_pToDateEdit, LogFile::PlainText, rightButtonClicked(), and KviIrcView::setMaxBufferSize().
LogViewWindow::~LogViewWindow | ( | ) |
|
protectedslot |
References m_bAborted.
Referenced by LogViewWindow().
|
protectedslot |
References setupItemList().
Referenced by LogViewWindow().
|
protectedslot |
References g_pApp, KviApplication::getLocalKvircDirectory(), KviApplication::Log, recurseDirectory(), and setupItemList().
Referenced by LogViewWindow().
void LogViewWindow::createLog | ( | LogFile * | pLog, |
int | iId, | ||
QString * | pszFile = 0 |
||
) |
Exports the log and creates the file in the selected format.
pLog | The log file associated with the item selected in the popup |
iId | The id of the item in the popup |
pszFile | The buffer to store the exported log name |
References __tr2qs_ctx(), KviFileUtils::adjustFilePath(), KviFileDialog::askForSaveFileName(), LogFile::Channel, LogFile::Console, KviHtmlGenerator::convertToHtml(), KviFileUtils::copyFile(), LogFile::date(), LogFile::DccChat, KviFileUtils::directoryExists(), KviQString::ensureLastCharIs(), g_pApp, g_pIconManager, KviApplication::getGlobalKvircDirectory(), KviApplication::getLocalKvircDirectory(), KviIconManager::getSmallIconResourceName(), LogFile::getText(), LogFile::HTML, i, KVI_OPTION_MSGTYPE, KVI_OPTION_STRING, KVI_PATH_SEPARATOR_CHAR, KVI_RELEASE_NAME, KVI_VERSION, KviOption_stringIconThemeSubdir, KviOption_stringLogsExportPath, LogFile::name(), LogFile::network(), LogFile::Other, KviWindow::output(), KviApplication::Pics, KviMessageTypeSettings::pixId(), LogFile::PlainText, LogFile::Query, KviControlCodes::stripControlBytes(), KviApplication::Themes, LogFile::type(), and LogFile::typeString().
Referenced by exportLog(), and logview_module_ctrl().
|
protectedslot |
References __tr2qs, __tr2qs_ctx(), KviPointerList< T >::append(), KviPointerList< T >::at(), KviIrcView::clearBuffer(), KviPointerList< T >::count(), LogListViewItem::fileName(), i, j, KviWindow::m_pIrcView, m_pListView, KviFileUtils::removeFile(), KviPointerList< T >::setAutoDelete(), and u.
Referenced by rightButtonClicked().
|
protectedvirtual |
|
protected |
References KviPointerList< T >::append(), KviPointerList< T >::at(), KviPointerList< T >::count(), createLog(), i, j, LogListViewItem::log(), m_pListView, KviPointerList< T >::setAutoDelete(), and u.
Referenced by exportLog(), and LogViewWindow().
|
protectedslot |
References exportLog().
|
protectedvirtual |
Reimplemented from KviWindow.
References __tr2qs_ctx(), and KviWindow::m_szPlainTextCaption.
|
protectedslot |
References __tr2qs_ctx(), LogFile::Channel, LogFile::Console, KviPointerList< T >::current(), LogFile::date(), LogFile::DccChat, LogFile::getText(), i, m_bAborted, LogListViewItem::m_eType, m_logList, m_pBottomLayout, m_pContentsMask, m_pEnableFromFilter, m_pEnableToFilter, m_pFileNameMask, m_pFilterButton, m_pFromDateEdit, m_pLastCategory, m_pLastGroupItem, m_pListView, m_pProgressBar, m_pShowChannelsCheck, m_pShowConsolesCheck, m_pShowDccChatCheck, m_pShowOtherCheck, m_pShowQueryesCheck, m_pTimer, m_pToDateEdit, m_szLastGroup, KviQString::matchString(), LogFile::name(), LogFile::network(), KviPointerList< T >::next(), LogFile::Other, LogFile::Query, szBuffer, and LogFile::type().
Referenced by LogViewWindow().
|
protectedslot |
References KviIrcView::clearBuffer(), KVI_NUM_MSGTYPE_OPTIONS, KviWindow::m_pIrcView, KviIrcView::NoRepaint, KviIrcView::NoTimestamp, and KviWindow::outputNoFmt().
Referenced by LogViewWindow().
|
protectedvirtual |
References KviWindow::m_pIrcView, and KviIrcView::toggleToolWidget().
|
protectedvirtual |
Reimplemented from KviWindow.
References g_pIconManager, KviIconManager::getSmallIcon(), and KviIconManager::Log.
|
protected |
References KviPointerList< T >::append(), i, and m_logList.
Referenced by cacheFileList().
|
protectedvirtual |
References KviWindow::m_pSplitter.
|
protectedslot |
References __tr2qs_ctx(), deleteCurrent(), KviIconManager::Discard, g_pIconManager, KviIconManager::getSmallIcon(), m_pExportLogPopup, m_pListView, and KviIconManager::Save.
Referenced by LogViewWindow().
|
protected |
References KviPointerList< T >::count(), KviPointerList< T >::first(), KviPointerList< T >::isEmpty(), m_bAborted, m_logList, m_pBottomLayout, m_pFilterButton, m_pLastCategory, m_pLastGroupItem, m_pListView, m_pProgressBar, and m_pTimer.
Referenced by applyFilter(), and cacheFileList().
|
protectedvirtual |
References KviWindow::m_pIrcView, KviWindow::m_pSplitter, and KviIrcView::sizeHint().
|
protected |
Referenced by abortFilter(), filterNext(), and setupItemList().
|
protected |
Referenced by filterNext(), recurseDirectory(), and setupItemList().
|
protected |
Referenced by filterNext(), LogViewWindow(), and setupItemList().
|
protected |
Referenced by LogViewWindow().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by LogViewWindow(), and rightButtonClicked().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
|
protected |
Referenced by filterNext(), LogViewWindow(), and setupItemList().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by LogViewWindow().
|
protected |
Referenced by filterNext(), and setupItemList().
|
protected |
Referenced by filterNext(), and setupItemList().
|
protected |
Referenced by LogViewWindow().
|
protected |
Referenced by deleteCurrent(), exportLog(), filterNext(), LogViewWindow(), rightButtonClicked(), and setupItemList().
|
protected |
Referenced by filterNext(), LogViewWindow(), and setupItemList().
|
protected |
Referenced by LogViewWindow().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by LogViewWindow().
|
protected |
Referenced by filterNext(), LogViewWindow(), and setupItemList().
|
protected |
Referenced by filterNext(), and LogViewWindow().
|
protected |
Referenced by filterNext().