From: <pst...@us...> - 2009-01-19 17:58:19
|
Revision: 686 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=686&view=rev Author: pstieber Date: 2009-01-19 17:58:10 +0000 (Mon, 19 Jan 2009) Log Message: ----------- Made the parent an event window instead of an event frame. Still haven't hooked up the actual command. This is a WIP. Modified Paths: -------------- trunk/jazz/src/Dialogs/ShiftDialog.cpp trunk/jazz/src/Dialogs/ShiftDialog.h Modified: trunk/jazz/src/Dialogs/ShiftDialog.cpp =================================================================== --- trunk/jazz/src/Dialogs/ShiftDialog.cpp 2009-01-19 17:56:29 UTC (rev 685) +++ trunk/jazz/src/Dialogs/ShiftDialog.cpp 2009-01-19 17:58:10 UTC (rev 686) @@ -20,7 +20,9 @@ #include "ShiftDialog.h" +#include "../Command.h" #include "../Filter.h" +#include "../ProjectManager.h" #include "IntegerEdit.h" #include <wx/button.h> @@ -47,7 +49,7 @@ //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- JZShiftDialog::JZShiftDialog( - JZEventFrame& EventWindow, + JZEventWindow& EventWindow, JZFilter& Filter, wxWindow* pParent) : wxDialog(pParent, wxID_ANY, wxString("Shift")), @@ -526,6 +528,11 @@ mFilter.SetFilterOther(mpOtherBox->GetValue()); +// tCmdShift ShiftCommand(&mFilter, mSteps * mUnit); +// ShiftCommand.Execute(); + + JZProjectManager::Instance()->UpdateAllViews(); + return true; } Modified: trunk/jazz/src/Dialogs/ShiftDialog.h =================================================================== --- trunk/jazz/src/Dialogs/ShiftDialog.h 2009-01-19 17:56:29 UTC (rev 685) +++ trunk/jazz/src/Dialogs/ShiftDialog.h 2009-01-19 17:58:10 UTC (rev 686) @@ -23,7 +23,7 @@ #include <wx/dialog.h> -class JZEventFrame; +class JZEventWindow; class JZFilter; class JZIntegerEdit; class wxCheckBox; @@ -36,7 +36,7 @@ public: JZShiftDialog( - JZEventFrame& EventWindow, + JZEventWindow& EventWindow, JZFilter& Filter, wxWindow* pParent); @@ -89,5 +89,4 @@ DECLARE_EVENT_TABLE(); }; - #endif // !defined(JZ_SHIFTDIALOG_H) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |