ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
filtergroup.h
Go to the documentation of this file.
1 #ifndef FILTERGROUP_H
2 #define FILTERGROUP_H
3 
4 #include <QGroupBox>
5 
6 #include "filefilter.h"
7 
8 class FileFilter;
9 
11 {
12 public:
13  FilterGroup(QString internalName, QString label) : label(label), internalName(internalName), enabled(0) {}
15  QTreeWidgetItem* widget();
16  void apply();
17 
18  QTreeWidgetItem* currentItem() {
19  return item;
20  }
21 
22  QString label;
23  QString internalName;
24  QList<FileFilter*> filters;
25  bool enabled;
26 
27 private:
28  QTreeWidgetItem *item;
29 };
30 
31 #endif // FILTERGROUP_H
QTreeWidgetItem * widget()
Definition: filtergroup.cpp:13
QList< FileFilter * > filters
Definition: filtergroup.h:24
bool enabled
Definition: filtergroup.h:25
Definition: filefilter.h:12
QString label
Definition: filtergroup.h:22
FilterGroup(QString internalName, QString label)
Definition: filtergroup.h:13
FilterGroup & operator<<(FileFilter *f)
Definition: filtergroup.cpp:5
QTreeWidgetItem * currentItem()
Definition: filtergroup.h:18
Definition: filtergroup.h:10
QString internalName
Definition: filtergroup.h:23
void apply()
Definition: filtergroup.cpp:32