ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
filefilter.h
Go to the documentation of this file.
1 #ifndef FILEFILTER_H
2 #define FILEFILTER_H
3 
4 #include <QSettings>
5 #include <QTreeWidgetItem>
6 
7 #include "../item.h"
8 #include "filtergroup.h"
9 
10 class FilterGroup;
11 
13 {
14 public:
15  enum FileFilters {
18  };
19 
21  virtual FileFilters filterType() = 0;
22  virtual void load(QSettings *settings) = 0;
23  virtual void save(QSettings *settings) = 0;
24  virtual QTreeWidgetItem* widget() = 0;
25 
26  virtual void apply();
27 
29  bool enabled;
31 
32 protected:
33  QTreeWidgetItem *item;
34 };
35 
36 #endif // FILEFILTER_H
virtual void save(QSettings *settings)=0
Definition: filefilter.h:12
virtual void load(QSettings *settings)=0
virtual void apply()
Definition: filefilter.cpp:8
Definition: filefilter.h:16
FileFilter(File::FileTypes type)
Definition: filefilter.cpp:3
File::FileTypes type
Definition: filefilter.h:28
QTreeWidgetItem * item
Definition: filefilter.h:33
FileFilters
Definition: filefilter.h:15
Definition: filtergroup.h:10
virtual QTreeWidgetItem * widget()=0
FileTypes
Definition: item.h:43
Definition: filefilter.h:17
bool enabled
Definition: filefilter.h:29
FilterGroup * group
Definition: filefilter.h:30
virtual FileFilters filterType()=0