5#include "fifechan/widgets/radiobutton.hpp"
13 RadioButton::RadioButton()
20 RadioButton::RadioButton(std::string
const & caption, std::string
const & group,
bool selected)
29 RadioButton::~RadioButton()
37 if (selected && !
mGroup.empty()) {
44 if (iter->second->isSelected()) {
45 iter->second->setSelected(
false);
67 if (iter->second ==
this) {
75 mGroupMap.insert(std::pair<std::string, RadioButton*>(group,
this));
bool mSelected
True if the check box is selected, false otherwise.
void adjustSize() override
Resizes the widget's size to fit the content exactly.
void setMarkerStyle(MarkerStyle mode)
Set the marker style of the check box.
virtual bool isSelected() const
Checks if the check box is selected.