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{
8
9class ModelViewerWidget;
10
11class ProjectWidget;
12
17{
18 Q_OBJECT
19
20 public:
24 explicit ProjectAppModule(const Parameters& params);
25
30
34 void initialize(InitializeStage stage) override;
35
40
44 void addMenuItems(MenuType menuType, QMenu* menu) override;
45
49 void addToolBars(QMainWindow* mainWindow) override;
50
54 QString getName() const override;
55
59 QString getDescription() const override;
60
64 QString getLibraryFilename() const override;
65
69 QString getSvgIconResource() const override;
70
74 QStringList getSettingsFilenames() const;
75
79 DockWidgetList createDockingWidgets(QWidget* parent) override;
80
84 void storeSettings(bool save);
85
90
102 QSettings* _settings{nullptr};
109 QAction* _actionMonitorVariable{nullptr};
110 QAction* _actionMonitorResultData{nullptr};
111 QAction* _actionSettingsSave{nullptr};
112 QAction* _actionSettingsLoad{nullptr};
113 QAction* _actionProjectOpenLast{nullptr};
114 QAction* _actionProjectNew{nullptr};
115 QAction* _actionProjectOpen{nullptr};
116 QAction* _actionProjectSave{nullptr};
117 QAction* _actionProjectSaveAs{nullptr};
118 QAction* _actionProjectClose{nullptr};
119};
120
121}// namespace sf
Base/Interface class for application modules. This class should provide functionality for loading lib...
Definition AppModuleInterface.h:24
InitializeStage
Stages for a module.
Definition AppModuleInterface.h:65
MenuType
Type of menu items to collect.
Definition AppModuleInterface.h:91
QList< QDockWidget * > DockWidgetList
Type definition for containing dock widgets.
Definition AppModuleInterface.h:154
Placeholder for the OpenGL widget showing the 3D model of the system and object.
Definition ModelViewerWidget.h:12
Application module implementation for inspection projects.
Definition ProjectAppModule.h:17
void addToolBars(QMainWindow *mainWindow) override
Overridden from base class.
QAction * _actionMonitorResultData
Action to create a result-data monitor.
Definition ProjectAppModule.h:110
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:104
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:112
ModelViewerWidget * _modelViewerWidget
Holds to the dockable viewer widget.
Definition ProjectAppModule.h:101
QString _serverUtName
Name of the Ultrasonic testing device instance.
Definition ProjectAppModule.h:103
QAction * _actionProjectOpen
Action to open an existing project.
Definition ProjectAppModule.h:115
QString getSvgIconResource() const override
Overridden from base class.
QAction * _actionProjectSave
Action to save the current opened project.
Definition ProjectAppModule.h:116
QAction * _actionProjectOpenLast
Action to open the last project.
Definition ProjectAppModule.h:113
QString _settingsFilename
Holds the settings filename to be loaded at startup.
Definition ProjectAppModule.h:107
void storeSettings(bool save)
Loads or saves the settings from the settings file.
QAction * _actionProjectNew
Action to create a new empty project.
Definition ProjectAppModule.h:114
ProjectWidget * _projectWidget
Holds to the dockable project widget.
Definition ProjectAppModule.h:100
ScriptGlobalEntryClosure _scriptOpenProject
Holds global script functions for this module. Functions like 'OpenProject("project@part")'.
Definition ProjectAppModule.h:99
void initialize(InitializeStage stage) override
Overridden from base class.
QString _currentSettingsFile
Definition ProjectAppModule.h:108
QString _serverStorageName
Name of the storage instance.
Definition ProjectAppModule.h:106
QSettings * _settings
Definition ProjectAppModule.h:102
QAction * _actionProjectClose
Action to close the opened project.
Definition ProjectAppModule.h:118
QAction * _actionSettingsSave
Action to save the settings file.
Definition ProjectAppModule.h:111
ProjectModule * _module
Holds the project module pointer.
Definition ProjectAppModule.h:94
QAction * _actionProjectSaveAs
Action to save as another project.
Definition ProjectAppModule.h:117
QString getName() const override
Overridden from base class.
QAction * _actionMonitorVariable
Action to create a variable monitor.
Definition ProjectAppModule.h:109
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:105
Singleton.
Definition ProjectModule.h:27
Manages all inspection project data.
Definition ProjectWidget.h:21
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:30