Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CCheckButton.hpp
Go to the documentation of this file.
1#ifndef LIBS_GUI_CCHECKBUTTON_HPP_
2#define LIBS_GUI_CCHECKBUTTON_HPP_
3
6
7#include <memory>
8#include <string>
9#include <string_view>
10
12{
13public:
14 explicit CCheckButton(bool valueDefault, std::string_view textButton = "");
15 explicit CCheckButton(bool *activeRef, std::string_view textCheckButton = "");
16 CCheckButton(std::weak_ptr<iv::channels::AbstractChannel> associatedChannelRef, const std::string &affects,
17 bool *activeRef, const std::string &textButton);
18 ~CCheckButton() override;
19
20 void destroyWidget() override;
21
22 void setValue(bool value);
23
24 bool getValue();
25 [[nodiscard]] std::string getTextButton() const;
26
27 [[nodiscard]] bool *isActivated() const;
28
29 std::string getAffects();
30
31 std::weak_ptr<iv::channels::AbstractChannel> getAssociatedChannel();
32
33private:
34 IWidget *createWidget(CDialog *dialogFather) override;
35
39 std::string m_textCheckButton;
40
42 std::string m_affects;
43 std::weak_ptr<iv::channels::AbstractChannel> m_associatedChannelRef;
44};
45
46#endif /* LIBS_GUI_CCHECKBUTTON_HPP_ */
Definition AbstractClickComponentGUI.hpp:10
Definition CCheckButton.hpp:12
bool m_hasValue
Definition CCheckButton.hpp:36
std::string getTextButton() const
Definition CCheckButton.cpp:120
IWidget * createWidget(CDialog *dialogFather) override
Definition CCheckButton.cpp:132
void destroyWidget() override
Definition CCheckButton.cpp:72
CCheckButton(bool valueDefault, std::string_view textButton="")
Definition CCheckButton.cpp:40
std::string getAffects()
Definition CCheckButton.cpp:149
bool * m_activeRef
Definition CCheckButton.hpp:37
bool getValue()
Definition CCheckButton.cpp:110
bool m_currentValue
Definition CCheckButton.hpp:38
void setValue(bool value)
Definition CCheckButton.cpp:100
IWidget * m_widgetRef
Definition CCheckButton.hpp:41
std::string m_affects
Definition CCheckButton.hpp:42
std::weak_ptr< iv::channels::AbstractChannel > getAssociatedChannel()
Definition CCheckButton.cpp:154
std::weak_ptr< iv::channels::AbstractChannel > m_associatedChannelRef
Definition CCheckButton.hpp:43
std::string m_textCheckButton
Definition CCheckButton.hpp:39
bool * isActivated() const
Definition CCheckButton.cpp:125
~CCheckButton() override
Definition CDialog.hpp:21
Definition IWidget.hpp:5