ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
abstractproductview.h
Go to the documentation of this file.
1 #ifndef ABSTRACTPRODUCTVIEW_H
2 #define ABSTRACTPRODUCTVIEW_H
3 
4 #include <QWidget>
5 
6 #include "../../item.h"
7 
17 class AbstractProductView : public QWidget
18 {
19  Q_OBJECT
20 public:
21  explicit AbstractProductView(QWidget *parent = 0);
22 
24  virtual QString title() = 0;
26  virtual QList<File::FileTypes> canHandle() = 0;
28  virtual bool handle(File *f) = 0;
29 
30 signals:
31 
32 public slots:
33 
34 };
35 
36 #endif // ABSTRACTPRODUCTVIEW_H
virtual QString title()=0
Returns title for current product view.
The abstract base for all &quot;file preview&quot; processing.
Definition: abstractproductview.h:17
Definition: item.h:41
virtual bool handle(File *f)=0
Display the file.
AbstractProductView(QWidget *parent=0)
Definition: abstractproductview.cpp:3
virtual QList< File::FileTypes > canHandle()=0
Returns a list with file types available in current product type.