![]() |
Scanframe Modular Application 0.1.0
|
Application module implementation for inspection projects. More...
#include <ProjectAppModule.h>


Public Member Functions | |
| ProjectAppModule (const Parameters ¶ms) | |
| Interface constructor. | |
| ~ProjectAppModule () override | |
| Overridden from base class. | |
| void | initialize (InitializeStage stage) override |
| Overridden from base class. | |
| void | addPropertyPages (PropertySheetDialog *) override |
| Overridden from base class. | |
| void | addMenuItems (MenuType menuType, QMenu *menu) override |
| Overridden from base class. | |
| void | addToolBars (QMainWindow *mainWindow) override |
| Overridden from base class. | |
| QString | getName () const override |
| Overridden from base class. | |
| QString | getDescription () const override |
| Overridden from base class. | |
| QString | getLibraryFilename () const override |
| Overridden from base class. | |
| QString | getSvgIconResource () const override |
| Overridden from base class. | |
| QStringList | getSettingsFilenames () const |
| Overridden from base class. | |
| DockWidgetList | createDockingWidgets (QWidget *parent) override |
| Overridden from base class. | |
| void | storeSettings (bool save) |
| Loads or saves the settings from the settings file. | |
| void | createDevices () |
| Creates the devices determined by the names. | |
Public Member Functions inherited from sf::AppModuleInterface | |
| AppModuleInterface (const Parameters &) | |
| Constructor for passing general structure for derived classes. | |
| ~AppModuleInterface () override | |
| Virtual destructor for derived classes. | |
| bool | hasFileTypes () const |
| void | addFileType (const QString &name, const QString &suffix) |
| Adds a file type handled by this instance. | |
| void | addFileType (const QString &mime) |
| Adds a file type handled by this instance. | |
| void | addFileType (const QMimeType &mime) |
| Adds a file type using the passed QMimeType instance. | |
| QString | getFileTypeFilters () const |
| Gets the filter string for a file dialog. | |
| MultiDocInterface * | createChild (QWidget *parent) const |
| Calls createChild() and assigns this creating instance for reference. | |
| QSettings * | getSettings () const |
| Gets the settings class passed on creation. | |
| MultiDocInterface * | openFile (const QString &filename, AppModuleInterface *ami=nullptr) const |
| Makes the application open a file. | |
| virtual void | documentActivated (MultiDocInterface *iface, bool yn) const |
| Called from main window when a document is activated or deactivated. | |
Public Attributes | |
| ProjectModule * | _module {nullptr} |
| Holds the project module pointer. | |
| ScriptGlobalEntryClosure | _scriptOpenProject |
| Holds global script functions for this module. Functions like 'OpenProject("project@part")'. | |
| ProjectWidget * | _projectWidget {nullptr} |
| Holds to the dockable project widget. | |
| ModelViewerWidget * | _modelViewerWidget {nullptr} |
| Holds to the dockable viewer widget. | |
| QSettings * | _settings {nullptr} |
| QString | _serverUtName |
| Name of the Ultrasonic testing device instance. | |
| QString | _serverEtName |
| Name of the Eddy-current device instance. | |
| QString | _serverMotionName |
| Name of the motion control instance. | |
| QString | _serverStorageName |
| Name of the storage instance. | |
| QString | _settingsFilename |
| Holds the settings filename to be loaded at startup. | |
| QString | _currentSettingsFile |
| QAction * | _actionMonitorVariable {nullptr} |
| Action to create a variable monitor. | |
| QAction * | _actionMonitorResultData {nullptr} |
| Action to create a result-data monitor. | |
| QAction * | _actionSettingsSave {nullptr} |
| Action to save the settings file. | |
| QAction * | _actionSettingsLoad {nullptr} |
| Action to load a settings file. | |
| QAction * | _actionProjectOpenLast {nullptr} |
| Action to open the last project. | |
| QAction * | _actionProjectNew {nullptr} |
| Action to create a new empty project. | |
| QAction * | _actionProjectOpen {nullptr} |
| Action to open an existing project. | |
| QAction * | _actionProjectSave {nullptr} |
| Action to save the current opened project. | |
| QAction * | _actionProjectSaveAs {nullptr} |
| Action to save as another project. | |
| QAction * | _actionProjectClose {nullptr} |
| Action to close the opened project. | |
Additional Inherited Members | |
Public Types inherited from sf::AppModuleInterface | |
| enum | InitializeStage { Uninitialize = 0 , Initialize , Finalize } |
| Stages for a module. More... | |
| enum | MenuType { Project , Settings , View , Tools } |
| Type of menu items to collect. More... | |
| typedef QMap< QString, AppModuleInterface * > | Map |
| typedef QList< QDockWidget * > | DockWidgetList |
| Type definition for containing dock widgets. | |
| typedef TClosure< MultiDocInterface *, const QString &, AppModuleInterface * > | OpenFileClosure |
| Type definition for the callback closure. | |
Static Public Member Functions inherited from sf::AppModuleInterface | |
| static void | instantiate (QSettings *settings, QObject *parent) |
| Creates instances of all available/loaded interface implementations. | |
| static size_t | initializeInstances (InitializeStage stage) |
| Initializes all uninitialized instances or visa versa. | |
| static void | addAllPropertyPages (PropertySheetDialog *sheet) |
| Adds property pages from all modules to the passed sheet. | |
| static void | addAllMenuItems (MenuType menuType, QMenu *menu) |
| Adds items from all modules to this menu. | |
| static const Map & | getMap () |
| Gets the named module map. | |
| static DockWidgetList | createAllDockingWidgets (QWidget *parent) |
| Creates all docking widgets of the loaded modules by calling createDockingWidgets(). | |
| static void | addAllToolBars (QMainWindow *mainWindow) |
| Creates all toolbars of the loaded modules by calling addToolBars(). | |
| static AppModuleInterface * | findByFile (const QString &filename) |
| Find the instance handling the file using the file suffix. | |
| static QString | getFileTypeFilters (bool all_files) |
| Gets the filter string for the open file dialog. | |
| static AppModuleInterface * | selectDialog (const QString &title, QSettings *settings, QWidget *parent=nullptr) |
| Determined if this module handles this mime type. | |
| static QAbstractItemModel * | getListModel (bool file_only, QObject *parent) |
| Gets a list model from the available instances. | |
Static Public Attributes inherited from sf::AppModuleInterface | |
| static OpenFileClosure | callbackOpenFile |
| Holds a callback to open a file in the application. | |
Protected Member Functions inherited from sf::AppModuleInterface | |
| virtual MultiDocInterface * | createWidget (QWidget *parent) const |
| Creates child of the passed parent (i.e. QMdiArea). | |
Application module implementation for inspection projects.
|
explicit |
Interface constructor.
|
override |
Overridden from base class.
|
overridevirtual |
Overridden from base class.
Reimplemented from sf::AppModuleInterface.
|
overridevirtual |
Overridden from base class.
Implements sf::AppModuleInterface.
|
overridevirtual |
Overridden from base class.
Reimplemented from sf::AppModuleInterface.
| void sf::ProjectAppModule::createDevices | ( | ) |
Creates the devices determined by the names.
|
overridevirtual |
Overridden from base class.
Reimplemented from sf::AppModuleInterface.
|
overridevirtual |
Overridden from base class.
Implements sf::AppModuleInterface.
|
overridevirtual |
Overridden from base class.
Implements sf::AppModuleInterface.
|
overridevirtual |
Overridden from base class.
Implements sf::AppModuleInterface.
| QStringList sf::ProjectAppModule::getSettingsFilenames | ( | ) | const |
Overridden from base class.
|
overridevirtual |
Overridden from base class.
Reimplemented from sf::AppModuleInterface.
|
overridevirtual |
Overridden from base class.
Implements sf::AppModuleInterface.
| void sf::ProjectAppModule::storeSettings | ( | bool | save | ) |
Loads or saves the settings from the settings file.
| QAction* sf::ProjectAppModule::_actionMonitorResultData {nullptr} |
Action to create a result-data monitor.
| QAction* sf::ProjectAppModule::_actionMonitorVariable {nullptr} |
Action to create a variable monitor.
| QAction* sf::ProjectAppModule::_actionProjectClose {nullptr} |
Action to close the opened project.
| QAction* sf::ProjectAppModule::_actionProjectNew {nullptr} |
Action to create a new empty project.
| QAction* sf::ProjectAppModule::_actionProjectOpen {nullptr} |
Action to open an existing project.
| QAction* sf::ProjectAppModule::_actionProjectOpenLast {nullptr} |
Action to open the last project.
| QAction* sf::ProjectAppModule::_actionProjectSave {nullptr} |
Action to save the current opened project.
| QAction* sf::ProjectAppModule::_actionProjectSaveAs {nullptr} |
Action to save as another project.
| QAction* sf::ProjectAppModule::_actionSettingsLoad {nullptr} |
Action to load a settings file.
| QAction* sf::ProjectAppModule::_actionSettingsSave {nullptr} |
Action to save the settings file.
| QString sf::ProjectAppModule::_currentSettingsFile |
| ModelViewerWidget* sf::ProjectAppModule::_modelViewerWidget {nullptr} |
Holds to the dockable viewer widget.
| ProjectModule* sf::ProjectAppModule::_module {nullptr} |
Holds the project module pointer.
| ProjectWidget* sf::ProjectAppModule::_projectWidget {nullptr} |
Holds to the dockable project widget.
| ScriptGlobalEntryClosure sf::ProjectAppModule::_scriptOpenProject |
Holds global script functions for this module. Functions like 'OpenProject("project@part")'.
| QString sf::ProjectAppModule::_serverEtName |
Name of the Eddy-current device instance.
| QString sf::ProjectAppModule::_serverMotionName |
Name of the motion control instance.
| QString sf::ProjectAppModule::_serverStorageName |
Name of the storage instance.
| QString sf::ProjectAppModule::_serverUtName |
Name of the Ultrasonic testing device instance.
| QSettings* sf::ProjectAppModule::_settings {nullptr} |
| QString sf::ProjectAppModule::_settingsFilename |
Holds the settings filename to be loaded at startup.