Rev | Line | |
---|
[930] | 1 | /////////////////////////////////////////////////////////////////////////////
|
---|
| 2 | // Name: MyFrame.h
|
---|
| 3 | /////////////////////////////////////////////////////////////////////////////
|
---|
| 4 |
|
---|
| 5 | #ifndef _WX_MYFRAME_H_
|
---|
| 6 | #define _WX_MYFRAME_H_
|
---|
| 7 |
|
---|
| 8 | #include "wx/wx.h"
|
---|
| 9 |
|
---|
| 10 |
|
---|
| 11 | class MyFrame: public wxFrame
|
---|
| 12 | {
|
---|
| 13 | private:
|
---|
| 14 | //Control IDs
|
---|
| 15 | enum
|
---|
| 16 | {
|
---|
| 17 | MAIN_EXIT = 10000,
|
---|
| 18 | MAIN_MODEL,
|
---|
| 19 | MAIN_IMAGE,
|
---|
| 20 | MAIN_START,
|
---|
| 21 | MAIN_RES,
|
---|
| 22 | };
|
---|
| 23 |
|
---|
| 24 | //Controls
|
---|
| 25 | wxStaticText * imageText;
|
---|
| 26 | wxStaticText * modelText;
|
---|
| 27 | wxButton * startButton;
|
---|
| 28 |
|
---|
| 29 | //Variables
|
---|
| 30 | wxString * modelString;
|
---|
| 31 | wxString *imageString;
|
---|
| 32 | int choices_res[3];
|
---|
| 33 | int res;
|
---|
| 34 |
|
---|
| 35 | //Functions
|
---|
| 36 | void CheckStart();
|
---|
| 37 |
|
---|
| 38 | public:
|
---|
| 39 |
|
---|
| 40 | MyFrame (const wxChar * title, int xpos, int ypos, int width, int height);
|
---|
| 41 | ~MyFrame ();
|
---|
| 42 |
|
---|
| 43 | void OnSelectModel(wxCommandEvent & event);
|
---|
| 44 | void OnSelectImage(wxCommandEvent & event);
|
---|
| 45 | void OnStart(wxCommandEvent & event);
|
---|
| 46 | void OnSelectResolution(wxCommandEvent & event);
|
---|
| 47 |
|
---|
| 48 | DECLARE_EVENT_TABLE()
|
---|
| 49 | };
|
---|
| 50 |
|
---|
| 51 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.