#include <ArmarXGui/gui-plugins/LoggingPlugin/ArmarXLogViewer/LogTableModel.h>
|
| int | addEntries (const std::vector< LogMessage > &entryList, const QString &filterStr) |
| |
| bool | addEntry (const LogMessage &entry, int *entriesAdded=NULL) |
| |
| void | refreshMarkers () |
| | Rebuild the set of injected pin rows and re-color native rows (full reset).
|
| |
|
| void | addFilter (const std::string &columnName, const std::string &filter, MatchMode mode=MatchMode::Contains) |
| |
| int | clearData () |
| |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| bool | containsNativeLine (const LogMessage &message) const |
| | Whether this model holds message as a native (non-injected) row.
|
| |
| QVariant | data (const QModelIndex &index, int role) const override |
| |
| Qt::ItemFlags | flags (const QModelIndex &index) const override |
| |
| int | getColumn (const std::string &columnName) const |
| |
| QString | getCurrentSearchStr () |
| |
| const std::vector< LogFilter > & | getFilters () const |
| |
| const LogMessage & | getLogEntry (size_t row) const |
| |
| MessageType | getMaxNewLogLevelType () |
| |
| QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| |
| bool | insertRows (int row, int count, const QModelIndex &parent) override |
| |
| bool | isRowMarked (int row) const |
| | Whether the given display row is currently pinned (has a label color).
|
| |
| int | lineCountAt (int row) const |
| | Number of display lines of the message column for the given row (precomputed).
|
| |
| | LogTableModel (QObject *parent=0) |
| |
| bool | msgContainsString (const LogMessage &logMsg, QString searchStr) const |
| |
| void | reapplyAllFilters () |
| |
| void | resetFilters () |
| |
| bool | rowContainsString (int row, const QString &searchStr) const |
| |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| |
| int | rowForMessage (const LogMessage &message) const |
| | Display row of the (first) line identical to message, or -1 if not shown.
|
| |
| void | search (const QString &searchStr) |
| |
| bool | setData (const QModelIndex &index, const QVariant &value, int role) override |
| |
| void | setMarkerRegistry (LogMarkerRegistry *registry) |
| | Attach the shared pin registry.
|
| |
| void | setMaxEntries (std::size_t maxEntries) |
| | Upper bound on retained log entries.
|
| |
| void | updateView () |
| |
Definition at line 73 of file LogTableModel.h.
◆ UserRoles
◆ LogTableModel()
◆ addEntries
| int addEntries |
( |
const std::vector< LogMessage > & | entryList, |
|
|
const QString & | filterStr ) |
|
slot |
◆ addEntry
| bool addEntry |
( |
const LogMessage & | entry, |
|
|
int * | entriesAdded = NULL ) |
|
slot |
◆ addFilter()
◆ applyFilter()
| bool applyFilter |
( |
const LogFilter & | filter, |
|
|
const LogMessage & | logMsg ) |
|
protected |
◆ applyFilters()
| bool applyFilters |
( |
const LogMessage & | logMsg | ) |
|
|
protected |
◆ clearData()
◆ columnCount()
| int columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ containsNativeLine()
| bool containsNativeLine |
( |
const LogMessage & | message | ) |
const |
Whether this model holds message as a native (non-injected) row.
Used by the viewer to expire pins once their source line has aged out of every buffer.
Definition at line 801 of file LogTableModel.cpp.
◆ data()
| QVariant data |
( |
const QModelIndex & | index, |
|
|
int | role ) const |
|
override |
◆ enforceMaxEntries()
| void enforceMaxEntries |
( |
| ) |
|
|
protected |
Trim the oldest entries once the buffer exceeds its bound (see setMaxEntries).
Definition at line 902 of file LogTableModel.cpp.
◆ flags()
| Qt::ItemFlags flags |
( |
const QModelIndex & | index | ) |
const |
|
override |
◆ getColumn()
| int getColumn |
( |
const std::string & | columnName | ) |
const |
◆ getCurrentSearchStr()
| QString getCurrentSearchStr |
( |
| ) |
|
|
inline |
◆ getFilters()
| const std::vector< LogFilter > & getFilters |
( |
| ) |
const |
|
inline |
◆ getLogEntry()
| const LogMessage & getLogEntry |
( |
size_t | row | ) |
const |
◆ getMaxNewLogLevelType()
| MessageType getMaxNewLogLevelType |
( |
| ) |
|
|
inline |
◆ headerData()
| QVariant headerData |
( |
int | section, |
|
|
Qt::Orientation | orientation, |
|
|
int | role ) const |
|
override |
◆ insertRows()
| bool insertRows |
( |
int | row, |
|
|
int | count, |
|
|
const QModelIndex & | parent ) |
|
override |
◆ isRowMarked()
| bool isRowMarked |
( |
int | row | ) |
const |
Whether the given display row is currently pinned (has a label color).
Definition at line 815 of file LogTableModel.cpp.
◆ lineCountAt()
| int lineCountAt |
( |
int | row | ) |
const |
Number of display lines of the message column for the given row (precomputed).
Definition at line 983 of file LogTableModel.cpp.
◆ msgContainsString()
| bool msgContainsString |
( |
const LogMessage & | logMsg, |
|
|
QString | searchStr ) const |
◆ reapplyAllFilters()
| void reapplyAllFilters |
( |
| ) |
|
◆ refreshMarkers
Rebuild the set of injected pin rows and re-color native rows (full reset).
Definition at line 722 of file LogTableModel.cpp.
◆ resetFilters()
◆ rowContainsString()
| bool rowContainsString |
( |
int | row, |
|
|
const QString & | searchStr ) const |
◆ rowCount()
| int rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
override |
◆ rowForMessage()
| int rowForMessage |
( |
const LogMessage & | message | ) |
const |
◆ search()
| void search |
( |
const QString & | searchStr | ) |
|
◆ setData()
| bool setData |
( |
const QModelIndex & | index, |
|
|
const QVariant & | value, |
|
|
int | role ) |
|
override |
◆ setMarkerRegistry()
Attach the shared pin registry.
The model then shows registry markers that are not already present as native rows (injected, in time position), colors pinned rows, and refreshes whenever the registry changes.
Definition at line 700 of file LogTableModel.cpp.
◆ setMaxEntries()
| void setMaxEntries |
( |
std::size_t | maxEntries | ) |
|
Upper bound on retained log entries.
0 disables the bound. When the buffer grows past maxEntries by a small headroom factor, the oldest entries are trimmed back down to maxEntries.
Definition at line 895 of file LogTableModel.cpp.
◆ updateView()
The documentation for this class was generated from the following files: