Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Manager Window
(1/1)
puneet_m:
In codeBlock, manager window displays three tabs i.e Projects, Symbols and Resources. I am looking for the wxWidget code where this manager window is getting created. Can anyone tell me the source file(.cpp) where manager window gets created.
Thanks,
Puneet
thomas:
main.cpp, 619ff.
puneet_m:
I can see the following code creating the management window. But where is the code which create the tabs "Projects","Symbols" and "Resources".
Manager::Get(this);
m_LayoutManager.AddPane(Manager::Get()->GetProjectManager()->GetNotebook(), wxAuiPaneInfo().
Name(wxT("ManagementPane")).Caption(_("Management")).
BestSize(wxSize(leftW, clientsize.GetHeight())).MinSize(wxSize(100,100)).
Left().Layer(1));
dmoore:
--- Quote from: puneet_m on August 16, 2007, 07:44:20 pm ---I can see the following code creating the management window. But where is the code which create the tabs "Projects"
--- End quote ---
projectmanager.cpp (see InitPane called by the ProjectManager constructor)
--- Quote ---"Symbols"
--- End quote ---
code completion plugin: plugins\codecompletion\nativeparser.cpp, in the NativeParser method CreateClassBrowser
--- Quote ---"Resources"
--- End quote ---
wxsmith plugin (search for AddPage or InsertPage)
thomas:
--- Quote from: puneet_m on August 16, 2007, 07:44:20 pm ---But where is the code...
--- End quote ---
There:
--- Quote from: puneet_m on August 16, 2007, 07:44:20 pm ---m_LayoutManager.AddPane(Manager::Get()->GetProjectManager()->GetNotebook(), wxAuiPaneInfo().
Name(wxT("ManagementPane")).Caption(_("Management")).
BestSize(wxSize(leftW, clientsize.GetHeight())).MinSize(wxSize(100,100)).
Left().Layer(1));
--- End quote ---
ProjectManager (found in projectmanager.cpp) has a function GetNotebook(), which returns a notebook, and this is added in the above line of code.
Navigation
[0] Message Index
Go to full version