новые иконки в OpenBoard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenBoard/src/core/UBDocumentManager.h

53 lines
1.3 KiB

/*
* UBDocumentManager.h
*
* Created on: Feb 10, 2009
* Author: julienbachmann
*/
#ifndef UBDOCUMENTMANAGER_H_
#define UBDOCUMENTMANAGER_H_
#include <QtCore>
class UBExportAdaptor;
class UBImportAdaptor;
class UBDocumentProxy;
class UBDocumentManager : public QObject
{
Q_OBJECT;
public:
static UBDocumentManager* documentManager();
virtual ~UBDocumentManager();
QString importFileFilter();
QStringList importFileExtensions();
UBDocumentProxy* importFile(const QFile& pFile, const QString& pGroup);
bool addFileToDocument(UBDocumentProxy* pDocument, const QFile& pFile);
UBDocumentProxy* importDir(const QDir& pDir, const QString& pGroup);
int addImageDirToDocument(const QDir& pDir, UBDocumentProxy* pDocument);
int addImageAsPageToDocument(const QStringList& images, UBDocumentProxy* document);
QList<UBExportAdaptor*> supportedExportAdaptors();
void emitDocumentUpdated(UBDocumentProxy* pDocument);
signals:
void documentUpdated(UBDocumentProxy *pDocument);
private:
UBDocumentManager(QObject *parent = 0);
QList<UBExportAdaptor*> mExportAdaptors;
QList<UBImportAdaptor*> mImportAdaptors;
static UBDocumentManager* sDocumentManager;
};
#endif /* UBDOCUMENTMANAGER_H_ */