1 //-----------------------------------------------------------------------------
3 // Purpose: XML resources sample: Object references and ID ranges dialog
4 // Author: David Hart, Vaclav Slavik
6 // Copyright: (c) Vaclav Slavik
7 // Licence: wxWindows licence
8 //-----------------------------------------------------------------------------
10 //-----------------------------------------------------------------------------
11 // Begin single inclusion of this .h file condition
12 //-----------------------------------------------------------------------------
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 #include "wx/dialog.h"
22 #include "wx/notebook.h"
24 //-----------------------------------------------------------------------------
25 // Class definition: ObjrefDialog
26 //-----------------------------------------------------------------------------
28 class ObjrefDialog
: public wxDialog
34 ObjrefDialog( wxWindow
* parent
);
40 enum PageNumbers
{ first_page
, copy_page
, icons_page
, calc_page
};
41 enum CalcOperator
{ operator_plus
, operator_minus
, operator_multiply
, operator_divide
, operator_equals
};
43 void OnNotebookPageChanged( wxNotebookEvent
&event
);
44 void OnUpdateUIFirst(wxUpdateUIEvent
& event
);
45 void OnUpdateUISecond(wxUpdateUIEvent
& event
);
46 void OnUpdateUIThird(wxUpdateUIEvent
& event
);
47 void OnNumeralClick(wxCommandEvent
& event
);
48 void OnOperatorClick(wxCommandEvent
& event
);
50 void ClearCalculator();
54 wxTextCtrl
*result_txt
;
59 bool operator_expected
;
60 CalcOperator curr_operator
;
64 #endif //_OBJREFDLG_H_