19template<
class T >
class QList;
25 class AbstractFilterSelector;
48 template<
typename T >
57 for (
int i = 0; looking && i < m_selectors->size(); i++)
58 if (m_selectors->at(i)->hasFilter(meth))
59 looking = !(m_selectors->at(i)->evaluate(t) ^ m_andFiltersTogether);
64 return !(looking ^ m_andFiltersTogether) || !
hasFilter(meth);
85 bool hasSelectorWithCondition(
96 void sendSizeChanged();
97 void changeFilterCombinationLogic(
int);
101 QButtonGroup *m_buttonGroup;
102 QPushButton *m_closeButton;
103 QPushButton *m_newSelectorButton;
104 QVBoxLayout *m_groupBoxLayout;
110 bool m_andFiltersTogether;
111 QString *m_filterType;
Base class for control net filters.
Definition: AbstractFilter.h:46
Base class for filter selectors.
Definition: AbstractFilterSelector.h:46
This class provides an interface for a group of filters.
Definition: FilterGroup.h:40
QString getDescription(bool(AbstractFilter::*)() const, QString(AbstractFilter::*)() const) const
Definition: FilterGroup.cpp:304
bool hasFilter(bool(AbstractFilter::*)() const =NULL) const
Definition: FilterGroup.cpp:96
virtual ~FilterGroup()
Definition: FilterGroup.cpp:78
bool evaluate(const T *t, bool(AbstractFilter::*meth)() const) const
Definition: FilterGroup.h:49
void sizeChanged(FilterGroup *)
FilterGroup & operator=(FilterGroup other)
Definition: FilterGroup.cpp:245
void close(FilterGroup *)
bool filtersAreAndedTogether() const
Definition: FilterGroup.cpp:240
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16