Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ScriptManagerPropertyPage.h
Go to the documentation of this file.
3
4namespace Ui
5{
6class ScriptManagerPropertyPage;
7}
8
9namespace sf
10{
11
13{
14 Q_OBJECT
15
16 public:
17 explicit ScriptManagerPropertyPage(ScriptManager* manager, PropertySheetDialog* parent = nullptr);
18
20
21 [[nodiscard]] QString getPageName() const override;
22
23 [[nodiscard]] QString getPageDescription() const override;
24
25 [[nodiscard]] QIcon getPageIcon() const override;
26
27 void updatePage() override;
28
29 [[nodiscard]] bool isPageModified() const override;
30
31 void applyPage() override;
32
33 // ReSharper disable once CppFunctionIsNotImplemented
34 Q_SIGNAL void openEditor(int index);
35
36 private:
37 ScriptManagerListModel* _listModel;
38 Ui::ScriptManagerPropertyPage* ui;
39 ScriptManager* _manager;
40
41 QAction* _actionStartAll{nullptr};
42 QAction* _actionStart{nullptr};
43 QAction* _actionStop{nullptr};
44 QAction* _actionEdit{nullptr};
45 QAction* _actionAdd{nullptr};
46 QAction* _actionRemove{nullptr};
47};
48
49}// namespace sf
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
List model for manipulating the passed script manager.
Definition ScriptManagerListModel.h:13
Definition ScriptManagerPropertyPage.h:13
void applyPage() override
Applies the changes made in this page.
ScriptManagerPropertyPage(ScriptManager *manager, PropertySheetDialog *parent=nullptr)
QIcon getPageIcon() const override
Gets the name of the page for displaying in the list view. When not reimplemented this method returns...
QString getPageDescription() const override
Gets the description for hinting of the page in the list view.
Q_SIGNAL void openEditor(int index)
bool isPageModified() const override
Gets the modified/changed status of the page.
QString getPageName() const override
Gets the name of the page for displaying in the list view. When reimplemented the QObject's name is r...
void updatePage() override
Updates the control widgets of the page.
Manages scripts for the application.
Definition ScriptManager.h:20
Definition ApplicationPropertyPage.h:8
Definition Application.h:10