Runs import plugins for a given file and component.
More...
#include <ImportRunner.h>
|
| void | noticeMessage (QString const &message) |
| | Emitted to notice user.
|
| |
Runs import plugins for a given file and component.
Definition at line 37 of file ImportRunner.h.
◆ ImportRunner()
| ImportRunner::ImportRunner |
( |
QSharedPointer< ComponentParameterFinder > | parameterFinder, |
|
|
QTabWidget * | displayTabs, |
|
|
QObject * | parent ) |
The constructor.
- Parameters
-
| [in] | parameterFinder | Pointer to the parameter finder. |
| [in] | displayTabs | The container widget for read and displayed source files. |
| [in] | parent | Pointer to the owner of this runner. |
◆ ~ImportRunner()
| virtual ImportRunner::~ImportRunner |
( |
| ) |
|
|
virtualdefault |
◆ constructComponentDataFromFile()
| QStringList ImportRunner::constructComponentDataFromFile |
( |
QString const & | filePath, |
|
|
QString const & | componentXMLPath, |
|
|
QSharedPointer< const Component > | targetComponent ) |
Locates component declarations from the selected file.
- Parameters
-
| [in] | filePath | Path to the selected file. |
| [in] | componentXMLPath | Path to the target component XML file. |
| [in] | targetComponent | Target component to which import all parsed elements. |
- Returns
- List of component declarations found in the selected file.
◆ importFileTypes()
| QStringList ImportRunner::importFileTypes |
( |
| ) |
const |
Gets all file types for which a import parser(s) can be run.
- Returns
- List of possible file types.
◆ loadPlugins()
| void ImportRunner::loadPlugins |
( |
PluginManager const & | pluginManager | ) |
|
Loads all available import plugins.
- Parameters
-
| [in] | pluginManager | The plugin manager owning all the plugins. |
◆ noticeMessage
| void ImportRunner::noticeMessage |
( |
QString const & | message | ) |
|
|
signal |
◆ run()
| QSharedPointer< Component > ImportRunner::run |
( |
QString const & | componentName, |
|
|
QString const & | filePath, |
|
|
QString const & | componentXmlPath, |
|
|
QSharedPointer< const Component > | targetComponent ) |
Runs all import plugins with matching file types for a given file and component.
- Parameters
-
| [in] | componentName | Name of thes selected component. |
| [in] | filePath | The relative path to the input file. |
| [in] | componentXmlPath | The path to the target component XML file. |
| [in] | targetComponent | The target component to which import all parsed elements.
|
- Returns
- The component with all the imported elements.
◆ setExpressionParser()
| void ImportRunner::setExpressionParser |
( |
QSharedPointer< ExpressionParser > | parser | ) |
|
Sets the expression parser to be used by all importers.
- Parameters
-
| [in] | parser | The parser to use. |
The documentation for this class was generated from the following file: