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 ViewerWidget;
9
10class ProjectWidget;
11
16{
17 Q_OBJECT
18
19 public:
23 explicit ProjectAppModule(const Parameters& params);
24
29
33 void initialize(InitializeStage stage) override;
34
39
43 void addMenuItems(MenuType menuType, QMenu* menu) override;
44
48 void addToolBars(QMainWindow* mainWindow) override;
49
53 QString getName() const override;
54
58 QString getDescription() const override;
59
63 QString getLibraryFilename() const override;
64
68 QString getSvgIconResource() const override;
69
73 QStringList getSettingsFilenames() const;
74
78 DockWidgetList createDockingWidgets(QWidget* parent) override;
79
83 void storeSettings(bool save);
84
89
101 QSettings* _settings{nullptr};
108 QAction* _actionMonitorVariable{nullptr};
109 QAction* _actionMonitorResultData{nullptr};
110 QAction* _actionSettingsSave{nullptr};
111 QAction* _actionSettingsLoad{nullptr};
112 QAction* _actionProjectOpenLast{nullptr};
113 QAction* _actionProjectNew{nullptr};
114 QAction* _actionProjectOpen{nullptr};
115 QAction* _actionProjectSave{nullptr};
116 QAction* _actionProjectSaveAs{nullptr};
117 QAction* _actionProjectClose{nullptr};
118};
119
120}// 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
Application module implementation for inspection projects.
Definition ProjectAppModule.h:16
void addToolBars(QMainWindow *mainWindow) override
Overridden from base class.
QAction * _actionMonitorResultData
Action to create a result-data monitor.
Definition ProjectAppModule.h:109
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:103
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:111
ViewerWidget * _viewerWidget
Holds to the dockable viewer widget.
Definition ProjectAppModule.h:100
QString _serverUtName
Name of the Ultrasonic testing device instance.
Definition ProjectAppModule.h:102
QAction * _actionProjectOpen
Action to open an existing project.
Definition ProjectAppModule.h:114
QString getSvgIconResource() const override
Overridden from base class.
QAction * _actionProjectSave
Action to save the current opened project.
Definition ProjectAppModule.h:115
QAction * _actionProjectOpenLast
Action to open the last project.
Definition ProjectAppModule.h:112
QString _settingsFilename
Holds the settings filename to be loaded at startup.
Definition ProjectAppModule.h:106
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:113
ProjectWidget * _projectWidget
Holds to the dockable project widget.
Definition ProjectAppModule.h:99
ScriptGlobalEntryClosure _scriptOpenProject
Holds global script functions for this module. Functions like 'OpenProject("project@part")'.
Definition ProjectAppModule.h:98
void initialize(InitializeStage stage) override
Overridden from base class.
QString _currentSettingsFile
Definition ProjectAppModule.h:107
QString _serverStorageName
Name of the storage instance.
Definition ProjectAppModule.h:105
QSettings * _settings
Definition ProjectAppModule.h:101
QAction * _actionProjectClose
Action to close the opened project.
Definition ProjectAppModule.h:117
QAction * _actionSettingsSave
Action to save the settings file.
Definition ProjectAppModule.h:110
ProjectModule * _module
Holds the project module pointer.
Definition ProjectAppModule.h:93
QAction * _actionProjectSaveAs
Action to save as another project.
Definition ProjectAppModule.h:116
QString getName() const override
Overridden from base class.
QAction * _actionMonitorVariable
Action to create a variable monitor.
Definition ProjectAppModule.h:108
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:104
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 ViewerWidget.h:14
Definition Application.h:10
Structure for passing parameters to derived classes loaded and created at run-time.
Definition AppModuleInterface.h:30