Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ScriptAppModule.h
Go to the documentation of this file.
1#pragma once
4#include <misc/qt/Editor.h>
6
7namespace sf
8{
9
10class [[maybe_unused]] ScriptAppModule : public AppModuleInterface
11{
12 public:
13 explicit ScriptAppModule(const Parameters& params);
14
15 void initialize(InitializeStage stage) override;
16
18
19 [[nodiscard]] QString getName() const override;
20
21 [[nodiscard]] QString getLibraryFilename() const override;
22
23 [[nodiscard]] QString getDescription() const override;
24
25 [[nodiscard]] QString getSvgIconResource() const override;
26
27 protected:
28 MultiDocInterface* createWidget(QWidget* parent) const override;
29
30 void openEditor(int index);
31
32 private:
33 ScriptManager& _scriptManager;
34 Editor::Configuration _configuration;
35};
36
37}// namespace sf
Base/Interface class for application modules.
Definition AppModuleInterface.h:26
InitializeStage
Definition AppModuleInterface.h:67
Definition Editor.h:23
Interface for MDI document widgets handling files.
Definition MultiDocInterface.h:41
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Definition ScriptAppModule.h:11
QString getDescription() const override
Gets the description of this instance.
QString getLibraryFilename() const override
Gets the library filename.
void initialize(InitializeStage stage) override
Called when al modules are loaded or when a module added.
void addPropertyPages(PropertySheetDialog *) override
Adds module property pages to the passed sheet.
void openEditor(int index)
ScriptAppModule(const Parameters &params)
QString getName() const override
Gets the description of this instance.
MultiDocInterface * createWidget(QWidget *parent) const override
Creates child of the passed parent (i.e. QMdiArea).
QString getSvgIconResource() const override
Gets svg icon resource name and can be overridden to change the default.
Manages scripts for the application.
Definition ScriptManager.h:20
Definition Application.h:10
Structure for passing parameters to derived classes loaded and created at run-time.
Definition AppModuleInterface.h:32