|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <LogModel.h>
Inheritance diagram for LogModel:
Collaboration diagram for LogModel:Signals | |
| void | totalCountChanged () |
| void | maxEntriesChanged () |
| void | categoriesChanged () |
| void | filterLevelChanged () |
| void | filterCategoryChanged () |
| void | filterTextChanged () |
| void | filterRegexChanged () |
| void | filterRegexValidChanged () |
Public Member Functions | |
| LogModel (QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| void | multiData (const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const override |
| int | totalCount () const |
| int | maxEntries () const |
| void | setMaxEntries (int max) |
| int | filterLevel () const |
| void | setFilterLevel (int level) |
| QString | filterCategory () const |
| void | setFilterCategory (const QString &category) |
| QString | filterText () const |
| void | setFilterText (const QString &text) |
| bool | filterRegex () const |
| bool | filterRegexValid () const |
| void | setFilterRegex (bool enabled) |
| QStringList | categoriesList () const |
| Q_INVOKABLE void | setFilterTextDeferred (const QString &text) |
| Q_INVOKABLE void | clearFilters () |
| Q_INVOKABLE void | clear () |
| void | enqueue (LogEntry entry) |
| QList< LogEntry > | allEntriesSnapshot () const |
| QList< LogEntry > | filteredEntries () const |
Public Member Functions inherited from LogEntryTableModel | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| void | multiData (const QModelIndex &index, QModelRoleDataSpan roleDataSpan) const override |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
| QHash< int, QByteArray > | roleNames () const override |
Protected Member Functions | |
| const LogEntry * | entryAt (int row) const override |
| Return entry at visible row, or nullptr if out of range. | |
Definition at line 14 of file LogModel.h.
|
explicit |
Definition at line 9 of file LogModel.cc.
|
inline |
Definition at line 67 of file LogModel.h.
Referenced by LogManager::writeMessages().
|
signal |
Referenced by clear().
| QStringList LogModel::categoriesList | ( | ) | const |
Definition at line 377 of file LogModel.cc.
| void LogModel::clear | ( | ) |
Definition at line 355 of file LogModel.cc.
References categoriesChanged(), and totalCountChanged().
| void LogModel::clearFilters | ( | ) |
Definition at line 155 of file LogModel.cc.
References LogEntry::Debug, filterCategoryChanged(), filterLevelChanged(), filterRegexChanged(), and filterTextChanged().
|
override |
Definition at line 37 of file LogModel.cc.
References LogEntryTableModel::data(), entryAt(), SettingsManager::instance(), LogEntry::timestamp, and LogEntry::TimestampColumn.
| void LogModel::enqueue | ( | LogEntry | entry | ) |
Definition at line 220 of file LogModel.cc.
|
overrideprotectedvirtual |
Return entry at visible row, or nullptr if out of range.
Implements LogEntryTableModel.
Definition at line 73 of file LogModel.cc.
Referenced by data(), and multiData().
|
inline |
Definition at line 46 of file LogModel.h.
|
signal |
Referenced by clearFilters(), and setFilterCategory().
| QList< LogEntry > LogModel::filteredEntries | ( | ) | const |
Definition at line 388 of file LogModel.cc.
|
inline |
Definition at line 42 of file LogModel.h.
|
signal |
Referenced by clearFilters(), and setFilterLevel().
|
inline |
Definition at line 54 of file LogModel.h.
|
signal |
Referenced by clearFilters(), and setFilterRegex().
|
inline |
Definition at line 56 of file LogModel.h.
|
signal |
Referenced by setFilterRegex().
|
inline |
Definition at line 50 of file LogModel.h.
|
signal |
Referenced by clearFilters(), and setFilterText().
|
inline |
Definition at line 38 of file LogModel.h.
|
signal |
Referenced by setMaxEntries().
|
override |
Definition at line 51 of file LogModel.cc.
References SettingsManager::appSettings(), LogEntry::columnDisplayData(), entryAt(), SettingsManager::instance(), LogEntryTableModel::multiData(), LogEntry::roleData(), LogEntry::timestamp, and LogEntry::TimestampColumn.
|
override |
Definition at line 28 of file LogModel.cc.
Referenced by LogManager::init().
| void LogModel::setFilterCategory | ( | const QString & | category | ) |
Definition at line 110 of file LogModel.cc.
References filterCategoryChanged().
| void LogModel::setFilterLevel | ( | int | level | ) |
Definition at line 101 of file LogModel.cc.
References filterLevelChanged().
| void LogModel::setFilterRegex | ( | bool | enabled | ) |
Definition at line 141 of file LogModel.cc.
References filterRegexChanged(), and filterRegexValidChanged().
| void LogModel::setFilterText | ( | const QString & | text | ) |
Definition at line 119 of file LogModel.cc.
References filterTextChanged().
| void LogModel::setFilterTextDeferred | ( | const QString & | text | ) |
Definition at line 133 of file LogModel.cc.
| void LogModel::setMaxEntries | ( | int | max | ) |
Definition at line 92 of file LogModel.cc.
References maxEntriesChanged().
|
inline |
Definition at line 36 of file LogModel.h.
|
signal |
Referenced by clear().