#include <filter_model.h>
|
static QList< QStandardItem * > | rootNode (std::string name, std::string type, bool enabled, bool inverted) |
|
static void | empty_filter (QStandardItem &parent, std::string type) |
|
static void | diff (QStandardItem &parent, std::string type="") |
|
static void | regex (QStandardItem &parent, std::string pattern="") |
|
static void | dependency_degree (QStandardItem &parent, int min_degree=-1, int max_degree=-1) |
|
template<typename DepType > |
static void | lpm_ldm (QStandardItem &parent, DepType dep_type=GraphTool::UNDEFINED) |
|
static void | run_block (QStandardItem &parent, std::string query_string="") |
|
static void | formatting_properties (QStandardItem &parent, std::string opacityStr="255", std::string colorStr="red", bool hide=false) |
|
static std::map< std::string,
std::string > | filter_types () |
|
Utility class to ensure that filter models are built in the right way.
- Todo:
- Refactor this as a class inherting directly from QAbstractItemModel.
static void FilterModel::empty_filter |
( |
QStandardItem & |
parent, |
|
|
std::string |
type |
|
) |
| |
|
inlinestatic |
Create a new empty filter/conditional with the given parent.
static std::map<std::string, std::string> FilterModel::filter_types |
( |
| ) |
|
|
inlinestatic |
Utility method to return the valid filter types supported by this model.
static void FilterModel::formatting_properties |
( |
QStandardItem & |
parent, |
|
|
std::string |
opacityStr = "255" , |
|
|
std::string |
colorStr = "red" , |
|
|
bool |
hide = false |
|
) |
| |
|
inlinestatic |
Add QStandardItems to the parent QStandardItem for the given formatting properties.
static QList<QStandardItem*> FilterModel::rootNode |
( |
std::string |
name, |
|
|
std::string |
type, |
|
|
bool |
enabled, |
|
|
bool |
inverted |
|
) |
| |
|
inlinestatic |
Generate the root node of any item in the filter menu (ie. the "filter" ndoe itself.
The documentation for this class was generated from the following file: