[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin_qtbase/qtappbase/QADocumentTemplate.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00032 namespace QtAppBase {
00033     
00034 
00035 class QADocumentTemplate : public QObject
00036 {
00037     
00038 public:
00039     QADocumentTemplate(QObject* parent = NULL);
00040     virtual ~QADocumentTemplate() {};
00041     
00042 public:
00043     virtual QADocument* newUntitledDocument(QObject* parent = NULL); //fileType=defaultFiletype()
00044     virtual QADocument* newUntitledDocument(const QAFiletype& filetype, QObject* parent = NULL);
00045     virtual QADocument* newDocumentWithFile(const QString& filePath, QADocument::ReadWriteError* error = NULL, QObject* parent = NULL);
00046     virtual QADocument* newDocumentWithFile(const QString& filePath, const QAFiletype& fileType, QADocument::ReadWriteError* error = NULL, QObject* parent = NULL);
00047     
00048 public:
00049     virtual QAFiletype defaultFiletype() const =0;    
00050     virtual QAFiletypeList readableTypes() const =0;
00051     virtual QAFiletypeList importableTypes() const =0;
00052     virtual bool isEditable() const =0;
00053     
00054 public:
00055     virtual QString displayName() =0;
00056     virtual QString documentTemplateID() =0;
00057     
00058 };
00059     
00060 
00061 } //namespace

Generated on Mon Sep 20 01:01:27 2010 for Hugintrunk by doxygen 1.3.9.1