ZIMA CAD Parts
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
AbstractProductView Class Referenceabstract

The abstract base for all "file preview" processing. More...

#include <abstractproductview.h>

Inheritance diagram for AbstractProductView:
Inheritance graph
[legend]
Collaboration diagram for AbstractProductView:
Collaboration graph
[legend]

Public Member Functions

 AbstractProductView (QWidget *parent=0)
 
virtual QString title ()=0
 Returns title for current product view. More...
 
virtual QList< File::FileTypescanHandle ()=0
 Returns a list with file types available in current product type. More...
 
virtual bool handle (File *f)=0
 Display the file. More...
 

Detailed Description

The abstract base for all "file preview" processing.

So called "product view" is a handler for file type displayed in FileModel. Any file type must inherit from AbstractProductView and then it has to register itself in ProductView constructor as template <class t>=""> void addProviders()

Constructor & Destructor Documentation

AbstractProductView::AbstractProductView ( QWidget *  parent = 0)
explicit

Member Function Documentation

virtual QList<File::FileTypes> AbstractProductView::canHandle ( )
pure virtual

Returns a list with file types available in current product type.

Implemented in DxfProductView, PDFProductView, FailbackProductView, and ProEProductView.

virtual bool AbstractProductView::handle ( File f)
pure virtual

Display the file.

Implemented in DxfProductView, PDFProductView, FailbackProductView, and ProEProductView.

virtual QString AbstractProductView::title ( )
pure virtual

Returns title for current product view.

Implemented in DxfProductView, PDFProductView, FailbackProductView, and ProEProductView.


The documentation for this class was generated from the following files: