1 /////////////////////////////////////////////////////////////////////////////// 2 // Name: MadSortDialog.h 3 // Description: Sort Options Dialog 4 // Author: madedit@gmail.com 5 // Licence: GPL 6 /////////////////////////////////////////////////////////////////////////////// 7 8 #ifndef _MADSORTDIALOG_H_ 9 #define _MADSORTDIALOG_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/checkbox.h> 27 #include <wx/radiobox.h> 28 #include <wx/sizer.h> 29 ////Header Include End 30 31 //Compatibility for 2.4 code 32 #ifndef wxCLOSE_BOX 33 #define wxCLOSE_BOX 0x1000 34 #endif 35 #ifndef wxFIXED_MINSIZE 36 #define wxFIXED_MINSIZE 0 37 #endif 38 39 ////Dialog Style Start 40 #undef MadSortDialog_STYLE 41 #define MadSortDialog_STYLE wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxDIALOG_NO_PARENT | wxCLOSE_BOX 42 ////Dialog Style End 43 44 class MadSortDialog : public wxDialog 45 { 46 private: 47 DECLARE_EVENT_TABLE(); 48 49 public: 50 MadSortDialog(wxWindow *parent, wxWindowID id = 1, const wxString &title = wxT("Sort Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = MadSortDialog_STYLE); 51 virtual ~MadSortDialog(); 52 53 public: 54 //Do not add custom control declarations 55 //wxDev-C++ will remove them. Add custom code after the block. 56 ////GUI Control Declaration Start 57 wxButton *WxButtonCancel; 58 wxButton *WxButtonSort; 59 wxBoxSizer *WxBoxSizer2; 60 wxCheckBox *WxCheckBoxRemoveDup; 61 wxCheckBox *WxCheckBoxNumeric; 62 wxCheckBox *WxCheckBoxCase; 63 wxRadioBox *WxRadioBoxOrder; 64 wxBoxSizer *WxBoxSizer1; 65 ////GUI Control Declaration End 66 67 public: 68 //Note: if you receive any error with these enum IDs, then you need to 69 //change your old form code that are based on the #define control IDs. 70 //#defines may replace a numeric value for the enum names. 71 //Try copy and pasting the below block in your old form header files. 72 enum 73 { 74 ////GUI Enum Control ID Start 75 ID_WXCHECKBOXREMOVEDUP = 1007, 76 ID_WXCHECKBOXNUMERIC = 1006, 77 ID_WXCHECKBOXCASE = 1004, 78 ID_WXRADIOBOXORDER = 1003, 79 ////GUI Enum Control ID End 80 ID_DUMMY_VALUE_ //don't remove this value unless you have other enum values 81 }; //End of Enum 82 83 public: 84 void MadSortDialogClose(wxCloseEvent& event); 85 void CreateGUIControls(void); 86 }; 87 88 #endif 89