Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ProjectAppModule.h
Go to the documentation of this file.
1#pragma once
5
6namespace sf
7{
8class ProjectWidget;
9
14{
15 Q_OBJECT
16
17 public:
21 explicit ProjectAppModule(const Parameters& params);
22
27
31 void initialize(InitializeStage stage) override;
32
37
41 void addMenuItems(MenuType menuType, QMenu* menu) override;
42
46 void addToolBars(QMainWindow* mainWindow) override;
47
51 QString getName() const override;
52
56 QString getDescription() const override;
57
61 QString getLibraryFilename() const override;
62
66 QString getSvgIconResource() const override;
67
71 QStringList getSettingsFilenames() const;
72
76 DockWidgetList createDockingWidgets(QWidget* parent) override;
77
81 void storeSettings(bool save);
82
87
98 QSettings* _settings{nullptr};
105 QAction* _actionMonitorVariable{nullptr};
106 QAction* _actionMonitorResultData{nullptr};
107 QAction* _actionSettingsSave{nullptr};
108 QAction* _actionSettingsLoad{nullptr};
109 QAction* _actionProjectOpenLast{nullptr};
110 QAction* _actionProjectNew{nullptr};
111 QAction* _actionProjectOpen{nullptr};
112 QAction* _actionProjectSave{nullptr};
113 QAction* _actionProjectSaveAs{nullptr};
114 QAction* _actionProjectClose{nullptr};
115};
116
117}// namespace sf
Base/Interface class for application modules. This class should provide functionality for loading lib...
Definition AppModuleInterface.h:25
InitializeStage
Stages for a module.
Definition AppModuleInterface.h:66
MenuType
Type of menu items to collect.
Definition AppModuleInterface.h:92
QList< QDockWidget * > DockWidgetList
Type definition for containing dock widgets.
Definition AppModuleInterface.h:155
Application module implementation for inspection projects.
Definition ProjectAppModule.h:14
void addToolBars(QMainWindow *mainWindow) override
Overridden from base class.
QAction * _actionMonitorResultData
Action to create a result-data monitor.
Definition ProjectAppModule.h:106
QString getDescription() const override
Overridden from base class.
ProjectAppModule(const Parameters &params)
Interface constructor.
QString getLibraryFilename() const override
Overridden from base class.
QString _serverEtName
Name of the Eddy-current device instance.
Definition ProjectAppModule.h:100
DockWidgetList createDockingWidgets(QWidget *parent) override
Overridden from base class.
~ProjectAppModule() override
Overridden from base class.
void addMenuItems(MenuType menuType, QMenu *menu) override
Overridden from base class.
QAction * _actionSettingsLoad
Action to load a settings file.
Definition ProjectAppModule.h:108
QString _serverUtName
Name of the Ultrasonic testing device instance.
Definition ProjectAppModule.h:99
QAction * _actionProjectOpen
Action to open an existing project.
Definition ProjectAppModule.h:111
QString getSvgIconResource() const override
Overridden from base class.
QAction * _actionProjectSave
Action to save the current opened project.
Definition ProjectAppModule.h:112
QAction * _actionProjectOpenLast
Action to open last project.
Definition ProjectAppModule.h:109
QString _settingsFilename
Holds the settings filename to be loaded at startup.
Definition ProjectAppModule.h:103
void storeSettings(bool save)
Loads or saves the settings from the settings file.
QAction * _actionProjectNew
Action to create new empty project.
Definition ProjectAppModule.h:110
ProjectWidget * _projectWidget
Holds to the dockable project widget.
Definition ProjectAppModule.h:97
ScriptGlobalEntryClosure _scriptOpenProject
Holds global script functions for this module. Functions like 'OpenProject("project@part")'.
Definition ProjectAppModule.h:96
void initialize(InitializeStage stage) override
Overridden from base class.
QString _currentSettingsFile
Definition ProjectAppModule.h:104
QString _serverStorageName
Name of the storage instance.
Definition ProjectAppModule.h:102
QSettings * _settings
Definition ProjectAppModule.h:98
QAction * _actionProjectClose
Action to close the opened project.
Definition ProjectAppModule.h:114
QAction * _actionSettingsSave
Action to save settings file.
Definition ProjectAppModule.h:107
ProjectModule * _module
Holds the project module pointer.
Definition ProjectAppModule.h:91
QAction * _actionProjectSaveAs
Action to save as a other project.
Definition ProjectAppModule.h:113
QString getName() const override
Overridden from base class.
QAction * _actionMonitorVariable
Action to create a variable monitor.
Definition ProjectAppModule.h:105
void addPropertyPages(PropertySheetDialog *) override
Overridden from base class.
void createDevices()
Creates the devices determined by the names.
QStringList getSettingsFilenames() const
Overridden from base class.
QString _serverMotionName
Name of the motion control instance.
Definition ProjectAppModule.h:101
Singleton.
Definition ProjectModule.h:27
Manages all inspection project data.
Definition ProjectWidget.h:20
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:15
sf::ScriptGlobalEntry derived class to link static functions or methods using a closure.
Definition ScriptGlobalEntry.h:168
Definition Application.h:10
Structure for passing parameters to derived classes loaded and created at run-time.
Definition AppModuleInterface.h:31