QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RFileExporterRegistry.h
Go to the documentation of this file.
1
20#ifndef RFILEEXPORTERREGISTRY_H
21#define RFILEEXPORTERREGISTRY_H
22
23#include "core_global.h"
24
25#include <QList>
26#include <QMetaType>
27#include <QString>
28#include <QStringList>
29
30class RDocument;
31class RFileExporter;
33class RMessageHandler;
35
46public:
47 static void registerFileExporter(RFileExporterFactory* factory, bool prepend=false);
48 static void unregisterFileExporter(RFileExporterFactory* factory);
49
50 static RFileExporter* getFileExporter(
51 const QString& fileName,
52 const QString& nameFilter,
53 RDocument& document,
54 RMessageHandler* messageHandler = NULL,
55 RProgressHandler* progressHandler = NULL
56 );
57
58 static QStringList getFilterStrings();
59
60private:
61 static QList<RFileExporterFactory*> factories;
62};
63
65
66#endif
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Needs to be implemented by RFileExporter implementations to check if the exporter is suitable to expo...
Definition RFileExporterFactory.h:41
Base class for file exporters.
Definition RFileExporter.h:42
Registry of all available file exporters (RFileExporter).
Definition RFileExporterRegistry.h:45
static QList< RFileExporterFactory * > factories
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RFileExporterRegistry.h:61
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RMessageHandler.h:33
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RProgressHandler.h:33
#define QCADCORE_EXPORT
Definition core_global.h:10
#define NULL
Definition opennurbs_system.h:256