Patch #2211 2007-10-15 11:12

oswaldmi

Added directory selection for implementation files
Download
2211-Added_director.patch (7.6 KB)
Category
Plugin::Refinement
Status
Accepted
Close date
2007-10-31 11:28
Assigned to
 
Index: classwizarddlg.h
===================================================================
--- classwizarddlg.h    (revision 4532)
+++ classwizarddlg.h    (working copy)
@@ -20,7 +20,8 @@
         void OnCancelClick(wxCommandEvent& event);
         void OnNameChange(wxCommandEvent& event);
         void OnAncestorChange(wxCommandEvent& event);
-        void OnBaseDirClick(wxCommandEvent& event);
+        void OnIncludeDirClick(wxCommandEvent& event);
+        void OnImplDirClick(wxCommandEvent& event);
         void DoGuardBlock();
 
         wxString m_Header;
Index: resources/new_class.xrc
===================================================================
--- resources/new_class.xrc    (revision 4532)
+++ resources/new_class.xrc    (working copy)
@@ -147,7 +147,7 @@
                             <object class="sizeritem">
                                 <flag>wxALL|wxALIGN_LEFT|wxALIGN_TOP</flag>
                                 <object class="wxStaticText" name="ID_STATICTEXT9">
-                                    <label>Base folder:</label>
+                                    <label>Include folder:</label>
                                 </object>
                             </object>
                             <object class="sizeritem">
@@ -157,14 +157,14 @@
                                     <object class="sizeritem">
                                         <option>1</option>
                                         <flag>wxALIGN_LEFT|wxALIGN_TOP|wxEXPAND</flag>
-                                        <object class="wxTextCtrl" name="txtBaseDir">
+                                        <object class="wxTextCtrl" name="txtIncludeDir">
                                             <value>Text</value>
                                             <size>115,23</size>
                                         </object>
                                     </object>
                                     <object class="sizeritem">
                                         <flag>wxALL|wxALIGN_LEFT|wxALIGN_TOP</flag>
-                                        <object class="wxButton" name="btnBaseDir">
+                                        <object class="wxButton" name="btnIncludeDir">
                                             <label>...</label>
                                             <size>24,23</size>
                                         </object>
@@ -172,6 +172,33 @@
                                 </object>
                             </object>
                             <object class="sizeritem">
+                                <flag>wxALL|wxALIGN_LEFT|wxALIGN_TOP</flag>
+                                <object class="wxStaticText" name="ID_STATICTEXT29">
+                                    <label>Implementation folder:</label>
+                                </object>
+                            </object>
+                            <object class="sizeritem">
+                                <flag>wxALL|wxALIGN_LEFT|wxALIGN_TOP|wxEXPAND</flag>
+                                <object class="wxBoxSizer">
+                                    <orient>wxHORIZONTAL</orient>
+                                    <object class="sizeritem">
+                                        <option>1</option>
+                                        <flag>wxALIGN_LEFT|wxALIGN_TOP|wxEXPAND</flag>
+                                        <object class="wxTextCtrl" name="txtImplDir">
+                                            <value>Text</value>
+                                            <size>115,23</size>
+                                        </object>
+                                    </object>
+                                    <object class="sizeritem">
+                                        <flag>wxALL|wxALIGN_LEFT|wxALIGN_TOP</flag>
+                                        <object class="wxButton" name="btnImplDir">
+                                            <label>...</label>
+                                            <size>24,23</size>
+                                        </object>
+                                    </object>
+                                </object>
+                            </object>
+                            <object class="sizeritem">
                                 <border>4</border>
                                 <flag>wxTOP|wxALIGN_LEFT|wxALIGN_TOP</flag>
                                 <object class="wxStaticText" name="ID_STATICTEXT6">
Index: classwizarddlg.cpp
===================================================================
--- classwizarddlg.cpp    (revision 4532)
+++ classwizarddlg.cpp    (working copy)
@@ -69,7 +69,8 @@
     EVT_BUTTON(XRCID("wxID_CANCEL"), ClassWizardDlg::OnCancelClick)
     EVT_TEXT(XRCID("txtName"), ClassWizardDlg::OnNameChange)
     EVT_TEXT(XRCID("txtInheritance"), ClassWizardDlg::OnAncestorChange)
-    EVT_BUTTON(XRCID("btnBaseDir"), ClassWizardDlg::OnBaseDirClick)
+    EVT_BUTTON(XRCID("btnIncludeD
download for full patch...