2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaRadioItem : NSMenuItem {
|
|
|
|
@public
|
|
|
|
phoenix::RadioItem *radioItem;
|
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::RadioItem&)radioItem;
|
2013-03-15 13:11:33 +00:00
|
|
|
-(void) activate;
|
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pRadioItem : public pAction {
|
|
|
|
RadioItem &radioItem;
|
2013-03-21 12:59:01 +00:00
|
|
|
CocoaRadioItem *cocoaRadioItem = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
bool checked();
|
|
|
|
void setChecked();
|
|
|
|
void setGroup(const set<RadioItem&> &group);
|
|
|
|
void setText(const string &text);
|
|
|
|
|
|
|
|
pRadioItem(RadioItem &radioItem) : pAction(radioItem), radioItem(radioItem) {}
|
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|