2015-12-30 06:41:46 +00:00
|
|
|
#if defined(Hiro_ComboButton)
|
|
|
|
|
2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaComboButton : NSPopUpButton {
|
|
|
|
@public
|
2015-12-30 06:41:46 +00:00
|
|
|
hiro::mComboButton* comboButton;
|
2013-03-15 13:11:33 +00:00
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
-(id) initWith:(hiro::mComboButton&)comboButton;
|
2013-03-21 12:59:01 +00:00
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
namespace hiro {
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
struct pComboButton : pWidget {
|
|
|
|
Declare(ComboButton, Widget)
|
|
|
|
|
|
|
|
auto append(sComboButtonItem item) -> void;
|
|
|
|
auto minimumSize() const -> Size override;
|
|
|
|
auto remove(sComboButtonItem item) -> void;
|
|
|
|
auto reset() -> void;
|
|
|
|
auto setGeometry(Geometry geometry) -> void override;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
2015-12-30 06:41:46 +00:00
|
|
|
auto _updateSelected(signed selected) -> void;
|
|
|
|
|
|
|
|
CocoaComboButton* cocoaComboButton = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2015-12-30 06:41:46 +00:00
|
|
|
|
|
|
|
#endif
|