Skip to content

ARadioGroup#

A group of radio buttons.

Header:#include <AUI/View/ARadioGroup.h>
CMake:aui_link(my_target PUBLIC aui::views)

Detailed Description#

ARadioGroup initializes radio buttons by itself. Since ARadioGroup is a view container it places the initialized radio buttons to itself.

Public Methods#

selectionId#


auto ARadioGroup::selectionId()

Selected id property.

Examples#

examples/7guis/flight_booker/src/main.cpp

7GUIs Flight Booker - Flight Booker.

        } });
        setContents(Centered {
          Vertical {
            _new<ADropdownList>(AListModel<AString>::make({ "one-way flight", "return flight" })) AUI_LET {
                    connect(it->selectionId().readProjected([](int selectionId) { return selectionId == 1; }),
                            mIsReturnFlight);
                },
            dateTextField(mDepartureDate),
            dateTextField(mReturnDate) AUI_LET { connect(mIsReturnFlight, AUI_SLOT(it)::setEnabled); },
            _new<AButton>("Book") AUI_LET {