31 #ifndef SWRI_CONSOLE_LOG_DATABASE_PROXY_MODEL_H_ 32 #define SWRI_CONSOLE_LOG_DATABASE_PROXY_MODEL_H_ 34 #include <QAbstractListModel> 36 #include <QStringList> 74 int getItemIndex(
const QString searchText,
int index,
int increment);
77 virtual int rowCount(
const QModelIndex &parent)
const;
78 virtual QVariant
data(
const QModelIndex &index,
int role)
const;
82 void saveToFile(
const QString& filename)
const;
121 LineMap(
size_t log,
int line) : log_index(log), line_index(line) {}
147 #endif // SWRI_CONSOLE_LOG_DATABASE_PROXY_MODEL_H_ void saveBagFile(const QString &filename) const
bool isExcludeValid() const
bool testIncludeFilter(const LogEntry &item)
LogDatabaseProxyModel(LogDatabase *db)
void setFatalColor(const QColor &fatal_color)
void setIncludeFilters(const QStringList &list)
LineMap(size_t log, int line)
void setDisplayTime(bool display)
std::deque< LineMap > early_mapping_
bool acceptLogEntry(const LogEntry &item)
void processOldMessages()
virtual QVariant data(const QModelIndex &index, int role) const
void handleDatabaseCleared()
std::deque< LineMap > msg_mapping_
void scheduleIdleProcessing()
void setColorizeLogs(bool colorize_logs)
std::set< std::string > names_
bool display_absolute_time_
bool use_regular_expressions_
void setUseRegularExpressions(bool useRegexps)
bool isIncludeValid() const
void setInfoColor(const QColor &info_color)
void processNewMessages()
void setSeverityFilter(uint8_t severity_mask)
void setWarnColor(const QColor &warn_color)
void setErrorColor(const QColor &error_color)
QStringList exclude_strings_
void setExcludeFilters(const QStringList &list)
virtual int rowCount(const QModelIndex &parent) const
void saveTextFile(const QString &filename) const
void setAbsoluteTime(bool absolute)
void saveToFile(const QString &filename) const
void setNodeFilter(const std::set< std::string > &names)
int getItemIndex(const QString searchText, int index, int increment)
void setDebugColor(const QColor &debug_color)
QString failedSearchText_
void setExcludeRegexpPattern(const QString &pattern)
size_t earliest_log_index_
QStringList include_strings_
void clearSearchFailure()
void setIncludeRegexpPattern(const QString &pattern)