2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaRadioItem : NSMenuItem {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::RadioItem* radioItem;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
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 {
|
2013-05-02 11:25:45 +00:00
|
|
|
RadioItem& radioItem;
|
|
|
|
CocoaRadioItem* cocoaRadioItem = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
void setChecked();
|
2013-05-02 11:25:45 +00:00
|
|
|
void setGroup(const group<RadioItem>& group);
|
2013-07-29 09:42:45 +00:00
|
|
|
void setText(string text);
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
pRadioItem(RadioItem& radioItem) : pAction(radioItem), radioItem(radioItem) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|