From: <pst...@us...> - 2008-12-26 22:22:55
|
Revision: 653 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=653&view=rev Author: pstieber Date: 2008-12-26 21:35:52 +0000 (Fri, 26 Dec 2008) Log Message: ----------- Started using the position and size in the configuration files when creating the track and piano windows. Modified Paths: -------------- trunk/jazz/src/ProjectManager.cpp Modified: trunk/jazz/src/ProjectManager.cpp =================================================================== --- trunk/jazz/src/ProjectManager.cpp 2008-12-26 21:32:59 UTC (rev 652) +++ trunk/jazz/src/ProjectManager.cpp 2008-12-26 21:35:52 UTC (rev 653) @@ -53,13 +53,24 @@ { if (!mpTrackFrame) { + int XPosition(10), YPosition(10), Width(600), Height(400); + + gpConfig->Get(C_TrackWinXpos, XPosition); + gpConfig->Get(C_TrackWinYpos, YPosition); + gpConfig->Get(C_TrackWinWidth, Width); + gpConfig->Get(C_TrackWinHeight, Height); + + wxPoint Position(XPosition, YPosition); + + wxSize Size(Width, Height); + // Create the main application window. mpTrackFrame = new JZTrackFrame( 0, "Jazz++", gpSong, - wxPoint(10, 10), - wxSize(600, 400)); + Position, + Size); } mpTrackFrame->Show(true); @@ -73,12 +84,23 @@ { if (!mpPianoFrame) { + int XPosition(10), YPosition(10), Width(640), Height(480); + + gpConfig->Get(C_PianoWinXpos, XPosition); + gpConfig->Get(C_PianoWinYpos, YPosition); + gpConfig->Get(C_PianoWinWidth, Width); + gpConfig->Get(C_PianoWinHeight, Height); + + wxPoint Position(XPosition, YPosition); + + wxSize Size(Width, Height); + mpPianoFrame = new JZPianoFrame( mpTrackFrame, "Piano", gpSong, - wxDefaultPosition, - wxSize(640, 480)); + Position, + Size); } mpPianoFrame->Show(true); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |