|
QCAD Application Framework
CAD Application Development and Automation.
|
Registry of all available file importers (RFileImporter). More...
#include <RFileImporterRegistry.h>
Public Types | |
| typedef bool(* | CheckFunction )(const QString &, const QString &) |
| typedef RFileImporter *(* | FactoryFunction )(RDocument &document, RMessageHandler *messageHandler, RProgressHandler *progressHandler) |
Static Public Member Functions | |
| static RFileImporter * | getFileImporter (const QString &fileName, const QString &nameFilter, RDocument &document, RMessageHandler *messageHandler=NULL, RProgressHandler *progressHandler=NULL) |
| static QStringList | getFilterStrings () |
| static void | registerFileImporter (RFileImporterRegistry::FactoryFunction factoryFunction, RFileImporterRegistry::CheckFunction checkFunction, const QStringList &filters) |
| Registers a file importer. | |
| static void | registerFileImporterScript (const QString &scriptFile, const QStringList &filters) |
Static Private Attributes | |
| static QList< CheckFunction > | checkFunctions |
| static QList< FactoryFunction > | factoryFunctions |
| static QStringList | filterStrings |
| static QList< QString > | scriptImporters |
Registry of all available file importers (RFileImporter).
File importers must register themselves in this registry to become available to the user of the application.
| typedef bool(* RFileImporterRegistry::CheckFunction)(const QString &, const QString &) |
| typedef RFileImporter*(* RFileImporterRegistry::FactoryFunction)(RDocument &document, RMessageHandler *messageHandler, RProgressHandler *progressHandler) |
|
static |
|
inlinestatic |
|
static |
Registers a file importer.
\par Non-Scriptable:
This function is not available in script environments.
| factoryFunction | The function that can be used to instantiate the importer. |
| checkFunction | The function tht can be used to check whether the importer can import a given file. |
|
static |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |