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;
127 LineMap(
size_t log,
int line) : log_index(log), line_index(line) {}
153 #endif // SWRI_CONSOLE_LOG_DATABASE_PROXY_MODEL_H_
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()
void handleDatabaseCleared()
std::deque< LineMap > msg_mapping_
void scheduleIdleProcessing()
void setColorizeLogs(bool colorize_logs)
std::set< std::string > names_
void setDisplayFunction(bool function_name)
bool display_absolute_time_
bool use_regular_expressions_
void setUseRegularExpressions(bool useRegexps)
void setInfoColor(const QColor &info_color)
void processNewMessages()
void setSeverityFilter(uint8_t severity_mask)
void setWarnColor(const QColor &warn_color)
void setDisplayLogger(bool logger_name)
void setErrorColor(const QColor &error_color)
QStringList exclude_strings_
void setExcludeFilters(const QStringList &list)
void saveToFile(const QString &filename) const
void setAbsoluteTime(bool absolute)
bool isExcludeValid() const
bool human_readable_time_
void setNodeFilter(const std::set< std::string > &names)
int getItemIndex(const QString searchText, int index, int increment)
void saveBagFile(const QString &filename) const
virtual int rowCount(const QModelIndex &parent) const
void setDebugColor(const QColor &debug_color)
QString failedSearchText_
void setHumanReadableTime(bool human_readable_time)
void setExcludeRegexpPattern(const QString &pattern)
size_t earliest_log_index_
bool isIncludeValid() const
QStringList include_strings_
void clearSearchFailure()
void saveTextFile(const QString &filename) const
virtual QVariant data(const QModelIndex &index, int role) const
void setIncludeRegexpPattern(const QString &pattern)