2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaItem : NSMenuItem {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::Item* item;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::Item&)item;
|
2013-03-15 13:11:33 +00:00
|
|
|
-(void) activate;
|
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pItem : public pAction {
|
2013-05-02 11:25:45 +00:00
|
|
|
Item& item;
|
|
|
|
CocoaItem* cocoaItem = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
void setImage(const image& image);
|
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
|
|
|
pItem(Item& item) : pAction(item), item(item) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|