| 1 |
@interface CocoaLineEdit : NSTextField <NSTextFieldDelegate> { |
| 2 |
@public |
| 3 |
phoenix::LineEdit* lineEdit; |
| 4 |
} |
| 5 |
-(id) initWith:(phoenix::LineEdit&)lineEdit; |
| 6 |
-(void) textDidChange:(NSNotification*)n; |
| 7 |
-(IBAction) activate:(id)sender; |
| 8 |
@end |
| 9 |
|
| 10 |
namespace phoenix { |
| 11 |
|
| 12 |
struct pLineEdit : public pWidget { |
| 13 |
LineEdit& lineEdit; |
| 14 |
CocoaLineEdit* cocoaLineEdit = nullptr; |
| 15 |
|
| 16 |
Size minimumSize(); |
| 17 |
void setEditable(bool editable); |
| 18 |
void setText(string text); |
| 19 |
string text(); |
| 20 |
|
| 21 |
pLineEdit(LineEdit& lineEdit) : pWidget(lineEdit), lineEdit(lineEdit) {} |
| 22 |
void constructor(); |
| 23 |
void destructor(); |
| 24 |
}; |
| 25 |
|
| 26 |
} |