2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaCheckItem : NSMenuItem {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::CheckItem* checkItem;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::CheckItem&)checkItem;
|
2013-03-15 13:11:33 +00:00
|
|
|
-(void) activate;
|
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pCheckItem : public pAction {
|
2013-05-02 11:25:45 +00:00
|
|
|
CheckItem& checkItem;
|
|
|
|
CocoaCheckItem* cocoaCheckItem = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
void setChecked(bool checked);
|
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
|
|
|
pCheckItem(CheckItem& checkItem) : pAction(checkItem), checkItem(checkItem) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|