Rev | Line | |
---|
[14] | 1 | #ifndef TR_PREF_WIND |
---|
| 2 | #define TR_PREF_WIND |
---|
| 3 | |
---|
| 4 | #include <Button.h> |
---|
| 5 | #include <TextControl.h> |
---|
| 6 | #include <Slider.h> |
---|
| 7 | #include <Window.h> |
---|
| 8 | |
---|
| 9 | #define TR_PREF_SAVE 'tSve' |
---|
| 10 | #define TR_PREF_CANCEL 'tCan' |
---|
| 11 | #define TR_PREF_DEFAULTS 'tDef' |
---|
| 12 | |
---|
| 13 | class TRPrefsWindow : public BWindow { |
---|
| 14 | public: |
---|
| 15 | TRPrefsWindow(); |
---|
| 16 | ~TRPrefsWindow(); |
---|
| 17 | |
---|
| 18 | virtual void MessageReceived(BMessage *msg); |
---|
| 19 | |
---|
| 20 | virtual void Show(); |
---|
| 21 | private: |
---|
| 22 | void ReadPrefs(); |
---|
| 23 | bool WritePrefs(); |
---|
| 24 | |
---|
| 25 | BTextControl *txtFolder; |
---|
| 26 | BTextControl *txtPort; |
---|
| 27 | BTextControl *txtUpload; |
---|
| 28 | |
---|
| 29 | BButton *btnSave; |
---|
| 30 | BButton *btnCancel; |
---|
| 31 | BButton *btnDefaults; |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | #endif /* TR_PREF_WIND */ |
---|
Note: See
TracBrowser
for help on using the repository browser.