A couple of fixes to Brazilian Portuguese translations from Felipe.
[wxWidgets.git] / samples / xrc / objrefdlg.h
1 //-----------------------------------------------------------------------------
2 // Name: objref.h
3 // Purpose: XML resources sample: Object references and ID ranges dialog
4 // Author: David Hart, Vaclav Slavik
5 // Copyright: (c) Vaclav Slavik
6 // Licence: wxWindows licence
7 //-----------------------------------------------------------------------------
8
9 //-----------------------------------------------------------------------------
10 // Begin single inclusion of this .h file condition
11 //-----------------------------------------------------------------------------
12
13 #ifndef _OBJREFDLG_H_
14 #define _OBJREFDLG_H_
15
16 //-----------------------------------------------------------------------------
17 // Headers
18 //-----------------------------------------------------------------------------
19
20 #include "wx/dialog.h"
21 #include "wx/notebook.h"
22
23 //-----------------------------------------------------------------------------
24 // Class definition: ObjrefDialog
25 //-----------------------------------------------------------------------------
26
27 class ObjrefDialog : public wxDialog
28 {
29
30 public:
31
32 // Constructor.
33 ObjrefDialog( wxWindow* parent );
34
35 // Destructor.
36 ~ObjrefDialog();
37
38 private:
39 enum PageNumbers
40 {
41 first_page,
42 copy_page,
43 icons_page,
44 calc_page
45 };
46
47 enum CalcOperator
48 {
49 operator_plus,
50 operator_minus,
51 operator_multiply,
52 operator_divide,
53 operator_equals
54 };
55
56 void OnNotebookPageChanged( wxNotebookEvent &event );
57 void OnUpdateUIFirst(wxUpdateUIEvent& event);
58 void OnUpdateUISecond(wxUpdateUIEvent& event);
59 void OnUpdateUIThird(wxUpdateUIEvent& event);
60 void OnNumeralClick(wxCommandEvent& event);
61 void OnOperatorClick(wxCommandEvent& event);
62 void Calculate();
63 void ClearCalculator();
64
65 wxNotebook *nb;
66 wxTextCtrl *text;
67 wxTextCtrl *result_txt;
68 int current;
69 int previous;
70 bool operator_expected;
71 CalcOperator curr_operator;
72
73 };
74
75 #endif //_OBJREFDLG_H_