- public:
- wxPanel *panel;
- MyTextWindow *text_window;
- MyWindow *canvas;
- MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
- void OnSize(wxSizeEvent& event);
- void Draw(wxDC& dc, bool draw_bitmaps = TRUE);
-
- void LoadFile(wxCommandEvent& event);
- void Quit(wxCommandEvent& event);
- void TestSizers(wxCommandEvent& event);
- void TestNewSizers(wxCommandEvent& event);
- void About(wxCommandEvent& event);
-
- DECLARE_EVENT_TABLE()
+public:
+ MyProportionsFrame(wxFrame *parent);
+
+protected:
+ void UpdateProportions();
+
+ void OnProportionChanged(wxSpinEvent& event);
+ void OnProportionUpdated(wxCommandEvent& event);
+
+ wxSpinCtrl *m_spins[3]; // size can be changed without changing anything else
+ wxSizer *m_sizer;