2013-03-15 13:11:33 +00:00
|
|
|
@interface CocoaLineEdit : NSTextField <NSTextFieldDelegate> {
|
|
|
|
@public
|
|
|
|
phoenix::LineEdit *lineEdit;
|
|
|
|
}
|
2013-03-21 12:59:01 +00:00
|
|
|
-(id) initWith:(phoenix::LineEdit&)lineEdit;
|
|
|
|
-(void) textDidChange:(NSNotification*)n;
|
|
|
|
-(IBAction) activate:(id)sender;
|
2013-03-15 13:11:33 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
namespace phoenix {
|
|
|
|
|
|
|
|
struct pLineEdit : public pWidget {
|
|
|
|
LineEdit &lineEdit;
|
2013-03-21 12:59:01 +00:00
|
|
|
CocoaLineEdit *cocoaLineEdit = nullptr;
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
Size minimumSize();
|
|
|
|
void setEditable(bool editable);
|
|
|
|
void setText(const string &text);
|
|
|
|
string text();
|
|
|
|
|
|
|
|
pLineEdit(LineEdit &lineEdit) : pWidget(lineEdit), lineEdit(lineEdit) {}
|
|
|
|
void constructor();
|
|
|
|
void destructor();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|