Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LayoutEditorAppModule.h
Go to the documentation of this file.
1#pragma once
2#include <QTreeView>
6
7namespace sf
8{
9
10class [[maybe_unused]] LayoutEditorAppModule : public AppModuleInterface
11{
12 public:
13 explicit LayoutEditorAppModule(const Parameters& params);
14
15 void initialize(InitializeStage stage) override;
16
18
19 MultiDocInterface* createWidget(QWidget* parent) const override;
20
21 [[nodiscard]] QString getName() const override;
22
23 [[nodiscard]] QString getDescription() const override;
24
25 [[nodiscard]] QString getLibraryFilename() const override;
26
27 [[nodiscard]] QString getSvgIconResource() const override;
28
29 void storeSettings(bool save);
30
31 DockWidgetList createDockingWidgets(QWidget* parent) override;
32
33 void documentActivated(MultiDocInterface* interface, bool yn) const override;
34
36
37 QSettings* _settings;
38
39 HierarchyViewer* _hierarchyViewer{nullptr};
40
41 QTreeView* _tvProperties{nullptr};
42
43 bool _readOnly = true;
44};
45
46}// 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
QList< QDockWidget * > DockWidgetList
Type definition for containing dock widgets.
Definition AppModuleInterface.h:155
Definition HierarchyViewer.h:16
Definition LayoutEditorAppModule.h:11
QString getSvgIconResource() const override
Gets svg icon resource name and can be overridden to change the default.
~LayoutEditorAppModule() override
QSettings * _settings
Definition LayoutEditorAppModule.h:37
QString getName() const override
Gets the description of this instance.
QString getDescription() const override
Gets the description of this instance.
void storeSettings(bool save)
QString getLibraryFilename() const override
Gets the library filename.
LayoutEditorAppModule(const Parameters &params)
DockWidgetList createDockingWidgets(QWidget *parent) override
Creates docking widgets having the passed parent.
MultiDocInterface * createWidget(QWidget *parent) const override
Creates child of the passed parent (i.e. QMdiArea).
void documentActivated(MultiDocInterface *interface, bool yn) const override
Called from main window when a document is activated or deactivated.
void addPropertyPages(PropertySheetDialog *) override
Adds module property pages to the passed sheet.
void initialize(InitializeStage stage) override
Called when al modules are loaded or when a module added.
Interface for MDI document widgets handling files.
Definition MultiDocInterface.h:41
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Definition Application.h:10
Structure for passing parameters to derived classes loaded and created at run-time.
Definition AppModuleInterface.h:31