34#include <NDEVR/LogMessage.h>
35#include <QAbstractTableModel>
37#include <QSortFilterProxyModel>
47 int rowCount(
const QModelIndex& parent)
const override;
48 int columnCount(
const QModelIndex& parent)
const override;
49 QVariant data(
const QModelIndex& index,
int role)
const override;
50 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const override;
51 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
54 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
55 bool insertRows(
int position,
int rows,
const QModelIndex& index = QModelIndex())
override;
56 bool removeRows(
int position,
int rows,
const QModelIndex& index = QModelIndex())
override;
60 void setDetectNewLines(
bool detect_new_lines);
61 void setShowMicroSeconds(
bool show_microseconds);
62 bool showMicroSeconds()
const;
67 bool m_detect_new_lines;
68 bool m_show_micro_seconds =
false;
79 virtual bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
80 virtual bool filterAcceptsColumn(
int source_column,
const QModelIndex& source_parent)
const override;
81 virtual bool lessThan(
const QModelIndex& source_left,
const QModelIndex& source_right)
const override;
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition LogMessage.h:40
virtual ~LogViewTable()
Definition LogTable.h:46
const Buffer< LogMessage > & messages() const
Definition LogTable.h:59
uint01 m_minimum_level
Definition LogTable.h:85
Buffer< String > m_message_search_terms
Definition LogTable.h:83
void setTimeSearchTerms(const Buffer< String > &search_terms)
Definition LogTable.cpp:218
void setLogViewTable(LogViewTable *table)
Definition LogTable.cpp:204
LogViewTable * m_raw_log_view
Definition LogTable.h:86
SortedLogViewTable(QObject *parent=nullptr)
Definition LogTable.cpp:197
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
Definition LogTable.cpp:235
void setMessageSearchTerms(const Buffer< String > &search_terms, uint04 range)
Definition LogTable.cpp:209
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const override
Definition LogTable.cpp:264
Buffer< String > m_time_search_terms
Definition LogTable.h:84
uint04 m_search_range
Definition LogTable.h:87
void setMinimumLevel(uint01 minimal_level)
Definition LogTable.cpp:226
virtual bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const override
Definition LogTable.cpp:260
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:98
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120