[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/QADocumentController.qt.h

Go to the documentation of this file.
00001 // -*- c-basic-offset: 4 -*-
00032 namespace QtAppBase {
00033     
00034 
00035 class QADocumentController : public QObject
00036 {
00037     
00038 public:
00039     QADocumentController(QObject* parent = NULL);
00040     virtual ~QADocumentController() {};
00041     
00042 public:
00043     static QADocumentController* sharedDocumentController();
00044 private:
00045     static QADocumentController* m_sharedInstance;
00046     
00047 public slot:
00048     void newDocument();
00049     void openDocumentWithDialog();
00050     void importDocumentWithDialog();
00051     void saveAllDocuments();
00052     bool askAndCloseAll(bool& cancellable const);
00053 public:
00054     void closeAll();
00055     bool hasEditedDocuments();
00056     QADocument::ReadWriteError openUntitledDocument();
00057     QADocument::ReadWriteError openDocumentWithPath(QString& filepath const);
00058 protected:
00059     QADocument* newUntitledDocumentOfType(QAFiletype& type const, QADocument::ReadWriteError* error = NULL);
00060     QADocument* newDocumentFromFile(QFileInfo& fileinfo const, QAFiletype& type const, QADocument::ReadWriteError* error = NULL);
00061     QADocument* newDocumentFromFile(QString& filepath const, QAFiletype& type const, QADocument::ReadWriteError* error = NULL);
00062     
00063 public:
00064     QFileInfoList recentDocuments();
00065     int maximumRecentDocumentCount();
00066 public slot:
00067     void clearRecentDocuments();
00068 public signal:
00069     void updateRecentDocuments();
00070 
00071 public:
00072     QAFiletype defaultType() const;
00073     void setDefaultType(const QAFiletype& filetype);
00074     void addDocumentTemplate(const QADocumentTemplate& docTemplate);
00075     QList<QADocumentTemplate> documentTemplates(); const
00076     QADocumentTemplate documentTemplateForFiletype(const QAFiletype& filetype) const;
00077     QADocumentTemplate documentTemplateForFile(const QFileInfo& fileinfo) const;
00078     QADocumentTemplate documentTemplateForFile(const QString& filepath) const;
00079 };
00080 
00081     
00082 } //namespace

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