GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
Loading...
Searching...
No Matches
GroupBox.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace gui_framework
7{
10 {
11 private:
12 class RadioButton : public BaseButton
13 {
14 public:
15 RadioButton(const std::wstring& radioButtonName, const std::wstring& radioButtonText, const utility::ComponentSettings& settings, BaseComposite* parent, const std::function<void()>& onClick);
16
17 RadioButton(const std::wstring& radioButtonName, const std::wstring& radioButtonText, const utility::ComponentSettings& settings, BaseComposite* parent, const std::string& functionName, const std::string& moduleName);
18
19 size_t getHash() const override;
20
21 ~RadioButton() = default;
22 };
23
24 public:
26 {
27 std::wstring radioButtonName;
28 std::wstring radioButtonText;
29 int x;
30 int y;
31 uint16_t width;
32 uint16_t height;
33 std::function<void()> onClick;
34 std::string functionName;
35 std::string moduleName;
36
38
39 radioButtonData(const std::wstring& radioButtonName, const std::wstring& radioButtonText, const utility::ComponentSettings& settings, const std::function<void()>& onClick);
40
48 radioButtonData(const std::wstring& radioButtonName, const std::wstring& radioButtonText, const utility::ComponentSettings& settings, const std::string& functionName, const std::string& moduleName);
49
50 ~radioButtonData() = default;
51 };
52
53 public:
63 GroupBox(const std::wstring& groupBoxClassName, const std::wstring& groupBoxName, const utility::ComponentSettings& settings, BaseComposite* parent, const std::string& groupBoxFunctionName);
64
65 void addRadioButton(const radioButtonData& data);
66
69 std::unique_ptr<Menu>& createMainMenu(const std::wstring& menuName) override;
70
73 Menu& addPopupMenu(const std::wstring& menuName) override;
74
77 void removePopupMenus(const std::wstring& menuName) override;
78
79 size_t getHash() const override;
80
81 ~GroupBox() = default;
82 };
83}
#define GUI_FRAMEWORK_API
Base class for all buttons.
Definition BaseButton.h:15
Base class for all windows that has children windows.
Standard group box with radio buttons.
Definition GroupBox.h:10
Menu class.
Definition Menu.h:9
radioButtonData(const std::wstring &radioButtonName, const std::wstring &radioButtonText, const utility::ComponentSettings &settings, const std::string &functionName, const std::string &moduleName)
radioButtonData(const std::wstring &radioButtonName, const std::wstring &radioButtonText, const utility::ComponentSettings &settings, const std::function< void()> &onClick)