2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaComboButton : NSPopUpButton {
|
|
|
|
@public
|
2013-05-02 11:25:45 +00:00
|
|
|
phoenix::ComboButton* comboButton;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::ComboButton&)comboButton;
|
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pComboButton : public pWidget {
|
2013-05-02 11:25:45 +00:00
|
|
|
ComboButton& comboButton;
|
|
|
|
CocoaComboButton* cocoaComboButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-07-29 09:42:45 +00:00
|
|
|
void append(string text);
|
2013-03-15 13:11:33 +00:00
|
|
|
Size minimumSize();
|
2013-11-28 10:29:01 +00:00
|
|
|
void remove(unsigned selection);
|
2013-03-15 13:11:33 +00:00
|
|
|
void reset();
|
2013-07-29 09:42:45 +00:00
|
|
|
void setGeometry(Geometry geometry);
|
2013-11-28 10:29:01 +00:00
|
|
|
void setSelection(unsigned selection);
|
|
|
|
void setText(unsigned selection, string text);
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2013-05-02 11:25:45 +00:00
|
|
|
pComboButton(ComboButton& comboButton) : pWidget(comboButton), comboButton(comboButton) {}
|
2013-03-15 13:11:33 +00:00
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|