Patch #923 2006-03-14 14:42

mortenmacfly

Make profiler plugin dialog resizable in all directions
Download
923-Make_profiler_p.patch (6.3 KB)
Category
 
Status
Accepted
Close date
2006-03-15 08:38
Assigned to
 
Index: src/plugins/contrib/profiler/resources/main_dialog.xrc
===================================================================
--- src/plugins/contrib/profiler/resources/main_dialog.xrc    (revision 2191)
+++ src/plugins/contrib/profiler/resources/main_dialog.xrc    (working copy)
@@ -1,655 +1,121 @@
 <?xml version="1.0" ?>
-
 <resource>
-
   <object class="wxDialog" name="dlgCBProfilerExec">
-
     <style>wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxMAXIMIZE_BOX</style>
-
     <title>C::B Profiler Results</title>
-
     <centered>1</centered>
-
     <object class="wxBoxSizer">
-
       <orient>wxVERTICAL</orient>
-
       <object class="sizeritem">
-
         <flag>wxALIGN_CENTER_HORIZONTAL|wxALL|wxADJUST_MINSIZE</flag>
-
         <border>8</border>
-
         <object class="wxStaticText" name="stxtAbout">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
           <font>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
             <size>14</size>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
             <weight>bold</weight>
-
-                        </font>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+          </font>
           <label>Gprof's Output</label>
-
-                </object>
-
-            </object>
-
+        </object>
+      </object>
       <object class="sizeritem">
-
         <flag>wxGROW|wxALL</flag>
-
         <border>5</border>
-
         <object class="wxStaticLine" name="wxID_STATIC">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
           <style>wxLI_VERTICAL</style>
-
-                </object>
-
-            </object>
-
+        </object>
+      </object>
       <object class="sizeritem">
-
         <object class="wxNotebook" name="tabs">
-
           <usenotebooksizer>1</usenotebooksizer>
-
           <object class="notebookpage">
-
             <label>Flat Profile</label>
-
             <object class="wxPanel" name="tabFlatProfile">
-
               <style>wxTAB_TRAVERSAL</style>
-
-              <object class="wxBoxSizer">
-
-                <orient>wxVERTICAL</orient>
-
+              <object class="wxGridSizer">
                 <object class="sizeritem">
-
                   <object class="wxListCtrl" name="lstFlatProfile">
-
-
-
-
-
-
-
-
-
-
-
                     <size>600,200</size>
-
-
-
-
-
-
-
-
-
-
-
                     <style>wxLC_REPORT</style>
-
                   </object>
-
-
-
                   <flag>wxALL|wxEXPAND</flag>
-
                 </object>
-
                 <object class="sizeritem">
-
                   <object class="wxTextCtrl" name="txtHelpFlatProfile">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
                     <size>600,150</size>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
                     <style>wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL</style>
-
                   </object>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
                   <flag>wxALL|wxEXPAND</flag>
-
                 </object>
-
+                <cols>1</cols>
+                <rows>2</rows>
               </object>
-
             </object>
-
           </object>
-
           <object class="notebookpage">
-
             <label>Call Graph</label>
-
             <object class="wxPanel" name="tabCallGraph">
-
-              <object class="wxBoxSizer">
-
-                <orient>wxVERTICAL</orient>
-
+              <object class="wxGridSizer">
                 <object class="sizeritem">
-
                   <object class="wxListCtrl" name="lstCallGraph">
-
-
-
-
-
-
-
-
-
-
-
                     <size>600,200</size>
-
-
-
-
-
-
-
-
-
-
-
                     <style>wxLC_REPORT</style>
-
                   </object>
-
-
-
                   <flag>wxALL|wxEXPAND</flag>
-
                 </object>
-
                 <object class="sizeritem">
-
                   <object class="wxTextCtrl" name="txtHelpCallGraph">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
                     <size>600,150</size>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
                     <style>wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL</style>
-
                   </object>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
                   <flag>wxALL|wxEXPAND</flag>
-
                 </object>
-
+                <cols>1</cols>
+                <rows>2</rows>
               </object>
-
               <style>wxTAB_TRAVERSAL</style>
-
             </object>
-
           </object>
-
           <object class="notebookpage">
-
             <label>Misc</label>
-
             <object class="wxPanel" name="tabMisc">
-
-              <object class="wxTextCtrl" name="txtMisc">
-
-
-
-
-
-
-
-                <size>600,400</size>
-
-
-
-
-
-
-
-                <style>wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL</style>
-
+              <object class="wxGridSizer">
+                <object class="sizeritem">
+                  <object class="wxTextCtrl" name="txtMisc">
+                    <size>600,400</size>
+                    <style>wxTE_MULTILINE|wxTE_READONLY|wxHSCROLL</style>
+                  </object>
+                  <f
download for full patch...
mortenmacfly 2006-03-14 14:44

The main dialog of the profiler plugin resizes it's control in one direction only. This patch enhances the controls to be resizable in all directions. Thus the control's content (profiler's ouput) radability is improved.