1 #ifndef CHANGECASE_H 2 #define CHANGECASE_H 3 4 #include <sdk.h> 5 #ifndef CB_PRECOMP 6 #include "scrollingdialog.h" 7 #endif 8 9 class cbEditor; 10 11 //(*Headers(ChangeCase) 12 #include <wx/checkbox.h> 13 #include <wx/dialog.h> 14 #include <wx/radiobut.h> 15 #include <wx/stattext.h> 16 //*) 17 18 enum ChangeCaseIn 19 { 20 chciProject = 0, 21 chciFile, 22 chciSelection, 23 }; 24 25 enum ChangeCaseFor 26 { 27 chcfKeywords = 0x0001, 28 chcfOther = 0x0002, 29 }; 30 31 enum ChangeCaseTo 32 { 33 chctAllCaps = 0, 34 chctFirstCap, 35 chctAllLower, 36 }; 37 38 class ChangeCase: public wxScrollingDialog 39 { 40 public: 41 42 ChangeCase(wxWindow* parent); 43 virtual ~ChangeCase(); 44 45 //(*Declarations(ChangeCase) 46 wxRadioButton* rb_ChCActiveProject; 47 wxRadioButton* rb_ChCFirstCap; 48 wxRadioButton* rb_ChCAllLower; 49 wxStaticText* StaticText1; 50 wxRadioButton* rb_ChCAllCaps; 51 wxStaticText* StaticText3; 52 wxRadioButton* rb_ChCSelection; 53 wxCheckBox* cb_ChCOtherItems; 54 wxCheckBox* cb_ChCKeywords; 55 wxRadioButton* rb_ChCCurrentFile; 56 wxStaticText* StaticText2; 57 //*) 58 59 protected: 60 61 //(*Identifiers(ChangeCase) 62 //*) 63 64 private: 65 66 //(*Handlers(ChangeCase) 67 //*) 68 void OnOK(wxCommandEvent& event); 69 void MakeChangeCase(ChangeCaseIn chin, int chfor, ChangeCaseTo chto); 70 void FileChangeCase(wxString filename, ChangeCaseIn chin, int chfor, ChangeCaseTo chto); 71 bool EditorChangeCase(cbEditor* ed, ChangeCaseIn chin, int chfor, ChangeCaseTo chto); 72 73 DECLARE_EVENT_TABLE() 74 }; 75 76 #endif 77