Public Types | Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
ModelFilter Class Reference

#include <modelfilter.hpp>

Inheritance diagram for ModelFilter:
Inheritance graph
[legend]

Public Types

enum  FilterMode { CONTAINS_ONE = 0, WILDCARDS = 1, REGEX = 2 }
 

Public Slots

void messageFilterUpdated (FilterMode mode, const QString &text)
 
void nodeFilterUpdated (FilterMode mode, const QString &text)
 
void setMessageFilterEnabled (bool enabled)
 
void setNodeFilterEnabled (bool enabled)
 
void setSeverityDebugEnabled (bool enabled)
 
void setSeverityErrorEnabled (bool enabled)
 
void setSeverityInfoEnabled (bool enabled)
 
void setSeverityWarningsEnabled (bool enabled)
 
void setSourceFilterEnabled (bool enabled)
 
void setTimeFilterEnabled (bool enabled)
 
void sourceFilterUpdated (FilterMode mode, const QString &text)
 
void timeMinMaxUpdated (TimePoint min, TimePoint max)
 

Public Member Functions

 ModelFilter (QObject *parent=0)
 

Protected Member Functions

virtual bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override
 

Protected Attributes

bool _debug_filter_enabled
 
bool _error_filter_enabled
 
bool _info_filter_enabled
 
TimePoint _max
 
TimePoint _min
 
bool _msg_filter_enabled
 
FilterMode _msg_mode
 
QString _msg_text
 
QRegExpValidator _msg_validator
 
bool _node_filter_enabled
 
FilterMode _node_mode
 
QString _node_text
 
QRegExpValidator _node_validator
 
bool _source_filter_enabled
 
FilterMode _source_mode
 
QString _source_text
 
QRegExpValidator _source_validator
 
bool _time_filter_enabled
 
bool _warn_filter_enabled
 

Private Member Functions

bool applyFilter (const QString &filter, ModelFilter::FilterMode mode, const QString &text_to_parse, const QRegExpValidator *validator) const
 

Detailed Description

Definition at line 12 of file modelfilter.hpp.

Member Enumeration Documentation

Enumerator
CONTAINS_ONE 
WILDCARDS 
REGEX 

Definition at line 18 of file modelfilter.hpp.

Constructor & Destructor Documentation

ModelFilter::ModelFilter ( QObject *  parent = 0)
explicit

Definition at line 5 of file modelfilter.cpp.

Member Function Documentation

bool ModelFilter::applyFilter ( const QString &  filter,
ModelFilter::FilterMode  mode,
const QString &  text_to_parse,
const QRegExpValidator *  validator 
) const
private

Definition at line 176 of file modelfilter.cpp.

bool ModelFilter::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
overrideprotectedvirtual

Definition at line 123 of file modelfilter.cpp.

void ModelFilter::messageFilterUpdated ( ModelFilter::FilterMode  mode,
const QString &  text 
)
slot

Definition at line 43 of file modelfilter.cpp.

void ModelFilter::nodeFilterUpdated ( ModelFilter::FilterMode  mode,
const QString &  text 
)
slot

Definition at line 60 of file modelfilter.cpp.

void ModelFilter::setMessageFilterEnabled ( bool  enabled)
slot

Definition at line 19 of file modelfilter.cpp.

void ModelFilter::setNodeFilterEnabled ( bool  enabled)
slot

Definition at line 25 of file modelfilter.cpp.

void ModelFilter::setSeverityDebugEnabled ( bool  enabled)
slot

Definition at line 105 of file modelfilter.cpp.

void ModelFilter::setSeverityErrorEnabled ( bool  enabled)
slot

Definition at line 111 of file modelfilter.cpp.

void ModelFilter::setSeverityInfoEnabled ( bool  enabled)
slot

Definition at line 99 of file modelfilter.cpp.

void ModelFilter::setSeverityWarningsEnabled ( bool  enabled)
slot

Definition at line 117 of file modelfilter.cpp.

void ModelFilter::setSourceFilterEnabled ( bool  enabled)
slot

Definition at line 31 of file modelfilter.cpp.

void ModelFilter::setTimeFilterEnabled ( bool  enabled)
slot

Definition at line 37 of file modelfilter.cpp.

void ModelFilter::sourceFilterUpdated ( ModelFilter::FilterMode  mode,
const QString &  text 
)
slot

Definition at line 76 of file modelfilter.cpp.

void ModelFilter::timeMinMaxUpdated ( TimePoint  min,
TimePoint  max 
)
slot

Definition at line 92 of file modelfilter.cpp.

Member Data Documentation

bool ModelFilter::_debug_filter_enabled
protected

Definition at line 59 of file modelfilter.hpp.

bool ModelFilter::_error_filter_enabled
protected

Definition at line 61 of file modelfilter.hpp.

bool ModelFilter::_info_filter_enabled
protected

Definition at line 60 of file modelfilter.hpp.

TimePoint ModelFilter::_max
protected

Definition at line 52 of file modelfilter.hpp.

TimePoint ModelFilter::_min
protected

Definition at line 51 of file modelfilter.hpp.

bool ModelFilter::_msg_filter_enabled
protected

Definition at line 56 of file modelfilter.hpp.

FilterMode ModelFilter::_msg_mode
protected

Definition at line 65 of file modelfilter.hpp.

QString ModelFilter::_msg_text
protected

Definition at line 69 of file modelfilter.hpp.

QRegExpValidator ModelFilter::_msg_validator
protected

Definition at line 73 of file modelfilter.hpp.

bool ModelFilter::_node_filter_enabled
protected

Definition at line 54 of file modelfilter.hpp.

FilterMode ModelFilter::_node_mode
protected

Definition at line 64 of file modelfilter.hpp.

QString ModelFilter::_node_text
protected

Definition at line 68 of file modelfilter.hpp.

QRegExpValidator ModelFilter::_node_validator
protected

Definition at line 72 of file modelfilter.hpp.

bool ModelFilter::_source_filter_enabled
protected

Definition at line 55 of file modelfilter.hpp.

FilterMode ModelFilter::_source_mode
protected

Definition at line 66 of file modelfilter.hpp.

QString ModelFilter::_source_text
protected

Definition at line 70 of file modelfilter.hpp.

QRegExpValidator ModelFilter::_source_validator
protected

Definition at line 74 of file modelfilter.hpp.

bool ModelFilter::_time_filter_enabled
protected

Definition at line 57 of file modelfilter.hpp.

bool ModelFilter::_warn_filter_enabled
protected

Definition at line 62 of file modelfilter.hpp.


The documentation for this class was generated from the following files:


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:18