Patch #961 2006-03-28 19:24

sethjackson

CreateIDE()
Download
961-CreateIDE_.patch (2.3 KB)
Category
Application::Refinement
Status
Out of date
Close date
2007-04-12 11:29
Assigned to
 
Index: src/src/main.cpp
===================================================================
--- src/src/main.cpp    (revision 2272)
+++ src/src/main.cpp    (working copy)
@@ -521,18 +521,26 @@
     m_pCloseFullScreenBtn = new wxButton(this, idCloseFullScreen, _( "Close Fullscreen" ), wxDefaultPosition );
     m_pCloseFullScreenBtn->Show( false );
 
+    Manager::Get(this);
+
     // project manager
-    Manager::Get(this);
-    m_LayoutManager.AddPane(Manager::Get()->GetProjectManager()->GetNotebook(), wxPaneInfo().
-                              Name(wxT("ManagementPane")).Caption(_("Management")).
-                              BestSize(wxSize(leftW, clientsize.GetHeight())).MinSize(wxSize(100,100)).
-                              Left().Layer(1));
+    m_LayoutManager.AddPane(Manager::Get()->GetProjectManager()->GetNotebook(),
+                            wxPaneInfo().Name(wxT("ManagementPane")).Caption(_("Management")).
+                            BestSize(wxSize(leftW, clientsize.GetHeight())).
+                            MinSize(wxSize(100, 100)).
+                            Left().Layer(1));
 
+    // editor manager
+    m_LayoutManager.AddPane(Manager::Get()->GetEditorManager()->GetNotebook(),
+                            wxPaneInfo().Name(wxT("MainPane")).
+                            CenterPane());
+
     // message manager
-    m_LayoutManager.AddPane(Manager::Get()->GetMessageManager()->GetNotebook(), wxPaneInfo().
-                              Name(wxT("MessagesPane")).Caption(_("Messages")).
-                              BestSize(wxSize(clientsize.GetWidth(), bottomH)).//MinSize(wxSize(50,50)).
-                              Bottom());
+    m_LayoutManager.AddPane(Manager::Get()->GetMessageManager()->GetNotebook(),
+                            wxPaneInfo().Name(wxT("MessagesPane")).Caption(_("Messages")).
+                            BestSize(wxSize(clientsize.GetWidth(), bottomH)).
+                            MinSize(wxSize(50, 50)).
+                            Bottom());
 
     CreateMenubar();
 
@@ -543,10 +551,6 @@
     CreateToolbars();
     SetToolBar(0);
 
-    // editor manager
-    m_LayoutManager.AddPane(m_pEdMan->GetNotebook(), wxPaneInfo().Name(wxT("MainPane")).
-                            CenterPane());
-
     DoUpdateLayout();
     DoUpdateLayoutColors();
     DoUpdateEditorStyle();
thomasdenk 2006-03-28 21:00

Hmm... purpose?

sethjackson 2006-03-29 02:24

In the initial code it looks like Manager::Get(this) is part of project manager. Also the EditorManager is added, at the same times as the other panes. Basically this patch is just for clarification. It is pretty harmless I think. BTW did you see my initial comment? When I post a patch to the tracker I always give the purpose in the original submisson. Maybe it doesn't show up?

mandrav 2006-03-31 10:09

No, it seems original comments don't show up...