1 ///////////////////////////////////////////////////////////////////////////////
2 // Name:        MadWordCountDialog.h
3 // Description: WordCount Dialog
4 // Author:      madedit@gmail.com
5 // Licence:     GPL
6 ///////////////////////////////////////////////////////////////////////////////
7 
8 #ifndef _MADWORDCOUNTDIALOG_H_
9 #define _MADWORDCOUNTDIALOG_H_
10 
11 #ifdef __BORLANDC__
12 	#pragma hdrstop
13 #endif
14 
15 #ifndef WX_PRECOMP
16 	#include <wx/wx.h>
17 	#include <wx/dialog.h>
18 #else
19 	#include <wx/wxprec.h>
20 #endif
21 
22 //Do not add custom headers
23 //wxDev-C++ designer will remove them
24 ////Header Include Start
25 #include <wx/button.h>
26 #include <wx/textctrl.h>
27 #include <wx/statline.h>
28 #include <wx/stattext.h>
29 #include <wx/sizer.h>
30 ////Header Include End
31 
32 //Compatibility for 2.4 code
33 #ifndef wxCLOSE_BOX
34 	#define wxCLOSE_BOX 0x1000
35 #endif
36 #ifndef wxFIXED_MINSIZE
37 	#define wxFIXED_MINSIZE 0
38 #endif
39 
40 ////Dialog Style Start
41 #undef MadWordCountDialog_STYLE
42 #define MadWordCountDialog_STYLE wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxDIALOG_NO_PARENT | wxMAXIMIZE_BOX | wxCLOSE_BOX
43 ////Dialog Style End
44 
45 class MadWordCountDialog : public wxDialog
46 {
47 	private:
48 		DECLARE_EVENT_TABLE();
49 
50 	public:
51 		MadWordCountDialog(wxWindow *parent, wxWindowID id = 1, const wxString &title = wxT("Word Count"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = MadWordCountDialog_STYLE);
52 		virtual ~MadWordCountDialog();
53 
54 	public:
55 		//Do not add custom control declarations
56 		//wxDev-C++ will remove them. Add custom code after the block.
57 		////GUI Control Declaration Start
58 		wxButton *WxButton1;
59 		wxTextCtrl *WxMemo1;
60 		wxStaticText *WxStaticText6;
61 		wxStaticLine *WxStaticLine1;
62 		wxStaticText *WxStaticTextLineCount;
63 		wxStaticText *WxStaticText7;
64 		wxStaticText *WxStaticTextFullwidthCount;
65 		wxStaticText *WxStaticText5;
66 		wxStaticText *WxStaticTextHalfwidthCount;
67 		wxStaticText *WxStaticText4;
68 		wxStaticText *WxStaticTextSpaceCount;
69 		wxStaticText *WxStaticText3;
70 		wxStaticText *WxStaticTextCharCount;
71 		wxStaticText *WxStaticText2;
72 		wxStaticText *WxStaticTextWordCount;
73 		wxStaticText *WxStaticText1;
74 		wxFlexGridSizer *WxFlexGridSizer1;
75 		wxBoxSizer *WxBoxSizer1;
76 		////GUI Control Declaration End
77 
78 	public:
79 		//Note: if you receive any error with these enum IDs, then you need to
80 		//change your old form code that are based on the #define control IDs.
81 		//#defines may replace a numeric value for the enum names.
82 		//Try copy and pasting the below block in your old form header files.
83 		enum
84 		{
85 			////GUI Enum Control ID Start
86 			ID_WXMEMO1 = 1019,
87 			ID_WXSTATICTEXT6 = 1018,
88 			ID_WXSTATICLINE1 = 1017,
89 			ID_WXSTATICTEXTLINECOUNT = 1022,
90 			ID_WXSTATICTEXT7 = 1021,
91 			ID_WXSTATICTEXTFULLWIDTHCOUNT = 1013,
92 			ID_WXSTATICTEXT5 = 1012,
93 			ID_WXSTATICTEXTHALFWIDTHCOUNT = 1011,
94 			ID_WXSTATICTEXT4 = 1010,
95 			ID_WXSTATICTEXTSPACECOUNT = 1009,
96 			ID_WXSTATICTEXT3 = 1008,
97 			ID_WXSTATICTEXTCHARCOUNT = 1007,
98 			ID_WXSTATICTEXT2 = 1006,
99 			ID_WXSTATICTEXTWORDCOUNT = 1005,
100 			ID_WXSTATICTEXT1 = 1004,
101 			////GUI Enum Control ID End
102 			ID_DUMMY_VALUE_ //don't remove this value unless you have other enum values
103 		}; //End of Enum
104 
105 	public:
106 		void MadWordCountDialogClose(wxCloseEvent& event);
107 		void CreateGUIControls(void);
108 };
109 
110 #endif
111