34#include <NDEVR/LogMessage.h>
35#include <QAbstractTableModel>
37#include <QSortFilterProxyModel>
50 int rowCount(
const QModelIndex& parent)
const override;
52 QVariant
data(
const QModelIndex& index,
int role)
const override;
53 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const override;
54 Qt::ItemFlags
flags(
const QModelIndex& index)
const override;
57 bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole)
override;
58 bool insertRows(
int position,
int rows,
const QModelIndex& index = QModelIndex())
override;
59 bool removeRows(
int position,
int rows,
const QModelIndex& index = QModelIndex())
override;
70 bool m_detect_new_lines;
71 bool m_show_micro_seconds =
false;
84 virtual bool filterAcceptsRow(
int source_row,
const QModelIndex& source_parent)
const override;
86 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:56
A class that allows for specific log information to be conveyed to a ProgressInfo object including in...
Definition LogMessage.h:44
A model for creating a table that displays logged records.
Definition LogTable.h:44
int rowCount(const QModelIndex &parent) const override
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
LogViewTable(const Buffer< LogMessage > &messages, QObject *parent=nullptr)
virtual ~LogViewTable()
Definition LogTable.h:49
bool showMicroSeconds() const
Qt::ItemFlags flags(const QModelIndex &index) const override
void addMessages(const Buffer< LogMessage > &messages)
void setDetectNewLines(bool detect_new_lines)
void setMessageSearchTerms(const Buffer< String > &search_terms, uint04 range)
bool removeRows(int position, int rows, const QModelIndex &index=QModelIndex()) override
int columnCount(const QModelIndex &parent) const override
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
void setShowMicroSeconds(bool show_microseconds)
bool insertRows(int position, int rows, const QModelIndex &index=QModelIndex()) override
void addMessage(const LogMessage &message)
void setMessages(const Buffer< LogMessage > &messages)
QVariant data(const QModelIndex &index, int role) const override
const Buffer< LogMessage > & messages() const
Definition LogTable.h:62
LogViewTable(QObject *parent=nullptr)
Sorts the logged entries in time-order.
Definition LogTable.h:77
uint01 m_minimum_level
Definition LogTable.h:90
Buffer< String > m_message_search_terms
Definition LogTable.h:88
void setTimeSearchTerms(const Buffer< String > &search_terms)
void setLogViewTable(LogViewTable *table)
LogViewTable * m_raw_log_view
Definition LogTable.h:91
SortedLogViewTable(QObject *parent=nullptr)
void setMessageSearchTerms(const Buffer< String > &search_terms, uint04 range)
virtual bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const override
Buffer< String > m_time_search_terms
Definition LogTable.h:89
virtual bool filterAcceptsColumn(int source_column, const QModelIndex &source_parent) const override
uint04 m_search_range
Definition LogTable.h:92
void setMinimumLevel(uint01 minimal_level)
virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:80
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96