1 #ifndef Tab2Space_H 2 #define Tab2Space_H 3 4 #include <sdk.h> // Code::Blocks SDK 5 #ifndef CB_PRECOMP 6 #include "scrollingdialog.h" 7 #endif 8 9 10 class cbEditor; 11 12 //(*Headers(Tab2Space) 13 #include <wx/checkbox.h> 14 #include <wx/dialog.h> 15 #include <wx/radiobut.h> 16 #include <wx/stattext.h> 17 #include <wx/spinctrl.h> 18 //*) 19 20 enum Tab2SpaceIn 21 { 22 t2siProject = 0, 23 t2siFile, 24 t2siSelection, 25 }; 26 27 class Tab2Space: public wxScrollingDialog 28 { 29 public: 30 31 Tab2Space(wxWindow* parent); 32 virtual ~Tab2Space(); 33 34 //(*Declarations(Tab2Space) 35 wxRadioButton* rb_ChCActiveProject; 36 wxRadioButton* rb_ChCCurrentFile; 37 wxRadioButton* rb_ChCSelection; 38 wxStaticText* StaticText1; 39 wxStaticText* StaticText2; 40 wxSpinCtrl* sc_TabSize; 41 //*) 42 43 protected: 44 45 //(*Identifiers(Tab2Space) 46 //*) 47 48 private: 49 50 //(*Handlers(Tab2Space) 51 //*) 52 void OnOK(wxCommandEvent& event); 53 void MakeTab2Space(Tab2SpaceIn chin, int tabSize); 54 void FileTab2Space(wxString filename, Tab2SpaceIn chin, int tabSize); 55 bool EditorTab2Space(cbEditor* ed, Tab2SpaceIn chin, int tabSize); 56 57 DECLARE_EVENT_TABLE() 58 }; 59 60 #endif 61