From: <pst...@us...> - 2008-12-26 21:06:50
|
Revision: 651 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=651&view=rev Author: pstieber Date: 2008-12-26 21:06:47 +0000 (Fri, 26 Dec 2008) Log Message: ----------- Added code to store the window position and size in the configuration object when the destructor is called. Modified Paths: -------------- trunk/jazz/src/PianoFrame.cpp Modified: trunk/jazz/src/PianoFrame.cpp =================================================================== --- trunk/jazz/src/PianoFrame.cpp 2008-12-26 19:34:52 UTC (rev 650) +++ trunk/jazz/src/PianoFrame.cpp 2008-12-26 21:06:47 UTC (rev 651) @@ -262,6 +262,16 @@ //----------------------------------------------------------------------------- JZPianoFrame::~JZPianoFrame() { + int XPosition, YPosition, Width, Height; + + GetPosition(&XPosition, &YPosition); + GetSize(&Width, &Height); + + gpConfig->Put(C_PianoWinXpos, XPosition); + gpConfig->Put(C_PianoWinYpos, YPosition); + gpConfig->Put(C_PianoWinWidth, Width); + gpConfig->Put(C_PianoWinHeight, Height); + delete mpPianoWindow; delete MixerForm; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |