LogTable Class Reference

#include <ArmarXGui/gui-plugins/LoggingPlugin/ArmarXLogViewer/LogTable.h>

+ Inheritance diagram for LogTable:

Public Slots

bool checkAutoScroll (const QModelIndex &parent, int start, int end)
 
bool checkAutoScroll (int dummy=0)
 
void doubleClickOnCell (const QModelIndex &index)
 
void itemsAdded (QModelIndex leftTop, QModelIndex bottomRight)
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override
 
void rowsInserted (const QModelIndex &parent, int start, int end) override
 
bool selectNextSearchResult (bool backwards=true, bool keepSelectionIfPossible=false)
 

Public Member Functions

void fillSearchResults ()
 
QString getCurrentLiveFilter () const
 
QString getLiveFilterStr ()
 
MessageType getMaxNewLogLevelType ()
 
LogTableModelgetModel ()
 
int getNewMessageCount ()
 
void liveFilter (const QString &search, int startRow=0)
 
void liveFilterRow (const QString &filterStr, int row)
 
bool liveSearch (const QString &search)
 
 LogTable (QWidget *parent=0)
 
void resetLiveFilter ()
 
void resetLiveSearch ()
 
 ~LogTable () override
 
- Public Member Functions inherited from Logging
SpamFilterDataPtr deactivateSpam (float deactivationDurationSec=10.0f, const std::string &identifier="", bool deactivate=true) const
 disables the logging for the current line for the given amount of seconds. More...
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set. More...
 
void setTag (const LogTag &tag)
 
void setTag (const std::string &tagName)
 
virtual ~Logging ()
 

Protected Member Functions

void hideEvent (QHideEvent *) override
 
void resetNewMessageCount ()
 
void showEvent (QShowEvent *event) override
 
- Protected Member Functions inherited from Logging
bool checkLogLevel (MessageTypeT level) const
 
const LogSenderPtrgetLogSender () const
 Retrieve log sender. More...
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 

Protected Attributes

bool autoscrollActive
 
std::mutex bufferMutex
 
QString currentLiveFilter
 
EditorFileOpener fileOpener
 
QString lastLiveFilter
 
std::vector< LogMessage > logBuffer
 
MessageType maxNewLogLevelType
 
int newMessageCount
 
int selectedSearchIndex
 
- Protected Attributes inherited from Logging
MessageTypeT minimumLoggingLevel
 
SpamFilterDataPtr spamFilter
 
LogTag tag
 

Friends

class LogSearch
 

Detailed Description

Definition at line 56 of file LogTable.h.

Constructor & Destructor Documentation

◆ LogTable()

LogTable ( QWidget *  parent = 0)
explicit

Definition at line 39 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ ~LogTable()

~LogTable ( )
override

Definition at line 110 of file LogTable.cpp.

Member Function Documentation

◆ checkAutoScroll [1/2]

bool checkAutoScroll ( const QModelIndex &  parent,
int  start,
int  end 
)
slot

Definition at line 240 of file LogTable.cpp.

+ Here is the caller graph for this function:

◆ checkAutoScroll [2/2]

bool checkAutoScroll ( int  dummy = 0)
slot

Definition at line 246 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ doubleClickOnCell

void doubleClickOnCell ( const QModelIndex &  index)
slot

Definition at line 416 of file LogTable.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fillSearchResults()

void fillSearchResults ( )

◆ getCurrentLiveFilter()

QString getCurrentLiveFilter ( ) const

Definition at line 115 of file LogTable.cpp.

+ Here is the caller graph for this function:

◆ getLiveFilterStr()

QString getLiveFilterStr ( )
inline

Definition at line 85 of file LogTable.h.

+ Here is the caller graph for this function:

◆ getMaxNewLogLevelType()

MessageType getMaxNewLogLevelType ( )
inline

Definition at line 76 of file LogTable.h.

+ Here is the caller graph for this function:

◆ getModel()

LogTableModel * getModel ( )

Definition at line 234 of file LogTable.cpp.

+ Here is the caller graph for this function:

◆ getNewMessageCount()

int getNewMessageCount ( )
inline

Definition at line 72 of file LogTable.h.

+ Here is the caller graph for this function:

◆ hideEvent()

void hideEvent ( QHideEvent *  )
overrideprotected

Definition at line 285 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ itemsAdded

void itemsAdded ( QModelIndex  leftTop,
QModelIndex  bottomRight 
)
slot

Definition at line 262 of file LogTable.cpp.

+ Here is the caller graph for this function:

◆ liveFilter()

void liveFilter ( const QString &  search,
int  startRow = 0 
)

Definition at line 136 of file LogTable.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ liveFilterRow()

void liveFilterRow ( const QString &  filterStr,
int  row 
)

Definition at line 121 of file LogTable.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ liveSearch()

bool liveSearch ( const QString &  search)

Definition at line 209 of file LogTable.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetLiveFilter()

void resetLiveFilter ( )

Definition at line 218 of file LogTable.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetLiveSearch()

void resetLiveSearch ( )

Definition at line 227 of file LogTable.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resetNewMessageCount()

void resetNewMessageCount ( )
inlineprotected

Definition at line 62 of file LogTable.h.

+ Here is the caller graph for this function:

◆ rowsAboutToBeRemoved

void rowsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
overrideslot

Definition at line 351 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ rowsInserted

void rowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
)
overrideslot

Definition at line 298 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ selectNextSearchResult

bool selectNextSearchResult ( bool  backwards = true,
bool  keepSelectionIfPossible = false 
)
slot

Definition at line 360 of file LogTable.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showEvent()

void showEvent ( QShowEvent *  event)
overrideprotected

Definition at line 267 of file LogTable.cpp.

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ LogSearch

friend class LogSearch
friend

Definition at line 112 of file LogTable.h.

Member Data Documentation

◆ autoscrollActive

bool autoscrollActive
protected

Definition at line 101 of file LogTable.h.

◆ bufferMutex

std::mutex bufferMutex
protected

Definition at line 104 of file LogTable.h.

◆ currentLiveFilter

QString currentLiveFilter
protected

Definition at line 106 of file LogTable.h.

◆ fileOpener

EditorFileOpener fileOpener
protected

Definition at line 108 of file LogTable.h.

◆ lastLiveFilter

QString lastLiveFilter
protected

Definition at line 106 of file LogTable.h.

◆ logBuffer

std::vector<LogMessage> logBuffer
protected

Definition at line 105 of file LogTable.h.

◆ maxNewLogLevelType

MessageType maxNewLogLevelType
protected

Definition at line 103 of file LogTable.h.

◆ newMessageCount

int newMessageCount
protected

Definition at line 102 of file LogTable.h.

◆ selectedSearchIndex

int selectedSearchIndex
protected

Definition at line 107 of file LogTable.h.


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