From: Milan B. <mi...@km...> - 2005-08-07 11:20:56
|
Milan Babuskov wrote: > There is another problem about this: when to create items in "window" > menu. Ideal would be: when framemanager adds/removes frames from its > collection. But, framemanager doesn't know anything about MainFrame and > it's menu. > > Manager does get the "parent" window when creating new frame, but it is > wxWindow*. Perhaps we should change it to MainFrame* ? Or devise some > other way to get it (perhaps some static helper class that stores > MainMenu in it) and has methods like: > > void setMainMenu(wxMenuBar *); I simply added pointer to "Window" menu to framemanager and now it handles things properly. So, basic functionality of "Window" menu is complete. Later we might improve it to make submenus, one for each connected database. -- Milan Babuskov http://fbexport.sourceforge.net http://www.flamerobin.org |