19#include "AViewContainer.h"
20#include <AUI/Common/AMap.h>
21#include <AUI/ASS/Selector/Selected.h>
24class ARadioButtonInner:
public AView
27 ARadioButtonInner() =
default;
28 virtual ~ARadioButtonInner() =
default;
47 ARadioButton(
const AString& text);
49 virtual ~ARadioButton();
51 void setText(
const AString& text);
54 [[nodiscard]]
bool isChecked()
const {
58 void setChecked(
const bool checked) {
60 emit customCssPropertyChanged();
61 emit ARadioButton::mCheckedChanged(checked);
65 auto checked()
const {
68 &ARadioButton::mChecked,
69 &ARadioButton::setChecked,
76 class API_AUI_VIEWS Group:
public AObject {
84 ~Group()
override =
default;
89 [[nodiscard]]
int getSelectedId()
const;
91 void setSelectedId(
int id);
93 [[nodiscard]]
bool isSelected()
const {
94 return mSelectedRadio.lock() !=
nullptr;
98 for (
auto& b : mButtons) {
99 b.second->setChecked(
false);
109 bool selectableIsSelectedImpl()
override;
113 bool mChecked =
false;
117namespace declarative {
A std::map with AUI extensions.
Definition AMap.h:218
Represents a Unicode character string.
Definition AString.h:37
void onPointerReleased(const APointerReleasedEvent &event) override
Called on pointer (mouse) released event.
Definition AViewContainerBase.cpp:329
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:178
Interface to work with ass::Selected selector.
Definition Selected.h:21
ASignal< Args... > emits
A signal declaration.
Definition ASignal.h:348
#define emit
emits the specified signal in context of this object.
Definition AObject.h:310
Pointing method press event.
Definition APointerReleasedEvent.h:19
Property implementation to use with custom getter/setter.
Definition AProperty.h:308
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:51
Declarative view trait.
Definition Declarative.h:170