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;
49 ARadioButton(
const AString& text);
51 virtual ~ARadioButton();
53 void setText(
const AString& text);
56 [[nodiscard]]
bool isChecked()
const {
60 void setChecked(
const bool checked) {
62 emit customCssPropertyChanged();
63 emit ARadioButton::mCheckedChanged(checked);
67 auto checked()
const {
70 &ARadioButton::mChecked,
71 &ARadioButton::setChecked,
78 class API_AUI_VIEWS Group:
public AObject {
86 ~Group()
override =
default;
91 [[nodiscard]]
int getSelectedId()
const;
93 void setSelectedId(
int id);
95 [[nodiscard]]
bool isSelected()
const {
96 return mSelectedRadio.lock() !=
nullptr;
100 for (
auto& b : mButtons) {
101 b.second->setChecked(
false);
111 bool selectableIsSelectedImpl()
override;
115 bool mChecked =
false;
119namespace declarative {
A std::map with AUI extensions.
Definition AMap.h:218
Represents a Unicode character string.
Definition AString.h:38
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:179
Interface to work with ass::Selected selector.
Definition Selected.h:21
ASignal< Args... > emits
A signal declaration.
Definition ASignal.h:577
#define emit
emits the specified signal in context of this object.
Definition AObject.h:343
Pointing method press event.
Definition APointerReleasedEvent.h:19
Property implementation to use with custom getter/setter.
Definition AProperty.h:234
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:52
Declarative view trait.
Definition Declarative.h:180