Author Topic: Manager Window  (Read 5196 times)

Offline puneet_m

  • Multiple posting newcomer
  • *
  • Posts: 73
Manager Window
« on: August 16, 2007, 07:32:01 pm »
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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Manager Window
« Reply #1 on: August 16, 2007, 07:38:32 pm »
main.cpp, 619ff.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline puneet_m

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: Manager Window
« Reply #2 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","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));

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Manager Window
« Reply #3 on: August 16, 2007, 08:06:58 pm »
I can see the following code creating the management window. But where is the code which create the tabs "Projects"

projectmanager.cpp (see InitPane called by the ProjectManager constructor)

Quote
"Symbols"

code completion plugin: plugins\codecompletion\nativeparser.cpp, in the NativeParser method CreateClassBrowser

Quote
"Resources"

wxsmith plugin (search for AddPage or InsertPage)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Manager Window
« Reply #4 on: August 16, 2007, 08:31:47 pm »
But where is the code...

There:
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));

ProjectManager (found in projectmanager.cpp) has a function GetNotebook(), which returns a notebook, and this is added in the above line of code.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."