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-05-02 11:25:45 +00:00
|
|
|
void append(const string& text);
|
2013-03-15 13:11:33 +00:00
|
|
|
Size minimumSize();
|
2013-05-02 11:25:45 +00:00
|
|
|
void modify(unsigned row, const string& text);
|
2013-03-15 13:11:33 +00:00
|
|
|
void remove(unsigned row);
|
|
|
|
void reset();
|
|
|
|
unsigned selection();
|
2013-05-02 11:25:45 +00:00
|
|
|
void setGeometry(const Geometry& geometry);
|
2013-03-15 13:11:33 +00:00
|
|
|
void setSelection(unsigned row);
|
|
|
|
|
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();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|