Go to the documentation of this file.
25 #include <QAbstractTableModel>
30 #include <ArmarXCore/interface/core/Log.h>
48 int rowCount(
const QModelIndex& parent = QModelIndex())
const override;
49 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
50 QVariant
data(
const QModelIndex&
index,
int role)
const override;
53 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
55 bool insertRows(
int row,
int count,
const QModelIndex& parent)
override;
57 void addFilter(
const std::string& columnName,
const std::string& filter);
64 void search(
const QString& searchStr);
67 return activeSearchStr;
72 return maxNewLogLevelType;
75 int getColumn(
const std::string& columnName)
const;
77 const std::vector<std::pair<std::string, std::string> >&
getFilters()
const
91 bool addEntry(
const LogMessage& entry,
int* entriesAdded = NULL);
92 int addEntries(
const std::vector<LogMessage>& entryList,
const QString& filterStr);
95 bool applyFilter(std::pair<std::string, std::string> filter,
const LogMessage& logMsg);
97 bool applyFilter(std::string filter,
int row,
int column);
101 QString activeSearchStr;
103 MessageType maxNewLogLevelType;
104 std::vector<std::pair<std::string, std::string> > activeFilters;
106 std::vector < LogMessage> logEntries;
107 std::vector <bool> rowMatchesSearch;
108 mutable std::mutex logEntriesMutex;
int addEntries(const std::vector< LogMessage > &entryList, const QString &filterStr)
const std::vector< std::pair< std::string, std::string > > & getFilters() const
MessageType getMaxNewLogLevelType()
ScalarT Orientation(const VectorXD< 2, ScalarT > &p1, const VectorXD< 2, ScalarT > &p2, const VectorXD< 2, ScalarT > &c)
QString getCurrentSearchStr()
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
bool applyFilter(std::pair< std::string, std::string > filter, const LogMessage &logMsg)
bool msgContainsString(const LogMessage &logMsg, QString searchStr) const
void addFilter(const std::string &columnName, const std::string &filter)
int rowCount(const QModelIndex &parent=QModelIndex()) const override
void search(const QString &searchStr)
bool applyFilters(int row)
bool addEntry(const LogMessage &entry, int *entriesAdded=NULL)
std::shared_ptr< Value > value()
bool rowContainsSameContent(int row, const LogMessage &logMsg) const
bool setData(const QModelIndex &index, const QVariant &value, int role) override
Qt::ItemFlags flags(const QModelIndex &index) const override
bool insertRows(int row, int count, const QModelIndex &parent) override
const LogMessage & getLogEntry(size_t row) const
LogTableModel(QObject *parent=0)
bool rowContainsString(int row, const QString &searchStr) const
int columnCount(const QModelIndex &parent=QModelIndex()) const override
QVariant data(const QModelIndex &index, int role) const override
int getColumn(const std::string &columnName) const
This file offers overloads of toIce() and fromIce() functions for STL container types.