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)
 
void showContextMenu (const QPoint &pos)
 Build the right-click menu ("Add label" / "Remove label") for the row under pos.
 

Signals

void addLabelRequested (const LogMessage &message)
 Emitted from the context menu to pin the given line (assign a label).
 
void removeLabelRequested (const LogMessage &message)
 Emitted from the context menu to remove the pin on the given line.
 

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.
 
MessageTypeT getEffectiveLoggingLevel () const
 
 Logging ()
 
void setLocalMinimumLoggingLevel (MessageTypeT level)
 With setLocalMinimumLoggingLevel the minimum verbosity-level of log-messages can be set.
 
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.
 
LogSenderPtr loghelper (const char *file, int line, const char *function) const
 

Protected Attributes

bool autoscrollActive
 
QString currentLiveFilter
 
EditorFileOpener fileOpener
 
QString lastLiveFilter
 
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 55 of file LogTable.h.

Constructor & Destructor Documentation

◆ LogTable()

LogTable ( QWidget * parent = 0)
explicit

Definition at line 37 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ ~LogTable()

~LogTable ( )
override

Definition at line 114 of file LogTable.cpp.

Member Function Documentation

◆ addLabelRequested

void addLabelRequested ( const LogMessage & message)
signal

Emitted from the context menu to pin the given line (assign a label).

+ Here is the caller graph for this function:

◆ checkAutoScroll [1/2]

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

Definition at line 277 of file LogTable.cpp.

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

◆ checkAutoScroll [2/2]

bool checkAutoScroll ( int dummy = 0)
slot

Definition at line 283 of file LogTable.cpp.

◆ doubleClickOnCell

void doubleClickOnCell ( const QModelIndex & index)
slot

Definition at line 453 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 152 of file LogTable.cpp.

+ Here is the caller graph for this function:

◆ getLiveFilterStr()

QString getLiveFilterStr ( )
inline

Definition at line 92 of file LogTable.h.

◆ getMaxNewLogLevelType()

MessageType getMaxNewLogLevelType ( )
inline

Definition at line 80 of file LogTable.h.

+ Here is the caller graph for this function:

◆ getModel()

LogTableModel * getModel ( )

Definition at line 271 of file LogTable.cpp.

+ Here is the caller graph for this function:

◆ getNewMessageCount()

int getNewMessageCount ( )
inline

Definition at line 74 of file LogTable.h.

+ Here is the caller graph for this function:

◆ hideEvent()

void hideEvent ( QHideEvent * )
overrideprotected

Definition at line 322 of file LogTable.cpp.

◆ itemsAdded

void itemsAdded ( QModelIndex leftTop,
QModelIndex bottomRight )
slot

Definition at line 299 of file LogTable.cpp.

+ Here is the caller graph for this function:

◆ liveFilter()

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

Definition at line 173 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 158 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 246 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ removeLabelRequested

void removeLabelRequested ( const LogMessage & message)
signal

Emitted from the context menu to remove the pin on the given line.

+ Here is the caller graph for this function:

◆ resetLiveFilter()

void resetLiveFilter ( )

Definition at line 255 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ resetLiveSearch()

void resetLiveSearch ( )

Definition at line 264 of file LogTable.cpp.

+ Here is the call graph for this function:

◆ resetNewMessageCount()

void resetNewMessageCount ( )
inlineprotected

Definition at line 60 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 388 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 335 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 397 of file LogTable.cpp.

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

◆ showContextMenu

void showContextMenu ( const QPoint & pos)
slot

Build the right-click menu ("Add label" / "Remove label") for the row under pos.

Definition at line 119 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 304 of file LogTable.cpp.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ LogSearch

friend class LogSearch
friend

Definition at line 126 of file LogTable.h.

Member Data Documentation

◆ autoscrollActive

bool autoscrollActive
protected

Definition at line 118 of file LogTable.h.

◆ currentLiveFilter

QString currentLiveFilter
protected

Definition at line 121 of file LogTable.h.

◆ fileOpener

EditorFileOpener fileOpener
protected

Definition at line 123 of file LogTable.h.

◆ lastLiveFilter

QString lastLiveFilter
protected

Definition at line 121 of file LogTable.h.

◆ maxNewLogLevelType

MessageType maxNewLogLevelType
protected

Definition at line 120 of file LogTable.h.

◆ newMessageCount

int newMessageCount
protected

Definition at line 119 of file LogTable.h.

◆ selectedSearchIndex

int selectedSearchIndex
protected

Definition at line 122 of file LogTable.h.


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