From: <pst...@us...> - 2009-01-20 03:39:57
|
Revision: 690 http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=690&view=rev Author: pstieber Date: 2009-01-20 03:39:55 +0000 (Tue, 20 Jan 2009) Log Message: ----------- Commented out tShiftDlg. Modified Paths: -------------- trunk/jazz/src/Dialogs.cpp trunk/jazz/src/Dialogs.h Modified: trunk/jazz/src/Dialogs.cpp =================================================================== --- trunk/jazz/src/Dialogs.cpp 2009-01-20 03:37:24 UTC (rev 689) +++ trunk/jazz/src/Dialogs.cpp 2009-01-20 03:39:55 UTC (rev 690) @@ -53,56 +53,54 @@ // ************************************************************************* //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- -tShiftDlg::tShiftDlg(JZEventFrame* pEventWindow, JZFilter* pFilter, long unit) - : tPropertyListDlg("Shift events left/right"), - mSteps(0), - mUnit(unit), - mpFilter(pFilter), - mpSong(pFilter->GetSong()) -{ -} +//tShiftDlg::tShiftDlg(JZEventFrame* pEventWindow, JZFilter* pFilter, long unit) +// : tPropertyListDlg("Shift events left/right"), +// mSteps(0), +// mUnit(unit), +// mpFilter(pFilter), +// mpSong(pFilter->GetSong()) +//{ +//} //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- -bool tShiftDlg::OnClose() -{ - cout << "tShiftDlg::OnClose " << mSteps << endl; - tCmdShift cmd(mpFilter, mSteps * mUnit); - cmd.Execute(); +//bool tShiftDlg::OnClose() +//{ +// cout << "tShiftDlg::OnClose " << mSteps << endl; +// tCmdShift cmd(mpFilter, mSteps * mUnit); +// cmd.Execute(); +// +// JZProjectManager::Instance()->UpdateAllViews(); +// +// // wxForm::OnOk(); +// return false; +//} - JZProjectManager::Instance()->UpdateAllViews(); - - // wxForm::OnOk(); - return false; -} - //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- -void tShiftDlg::OnHelp() -{ - gpHelpInstance->ShowTopic("Shift"); -} +//void tShiftDlg::OnHelp() +//{ +// gpHelpInstance->ShowTopic("Shift"); +//} //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- -void tShiftDlg::AddProperties() -{ -//send wxPropertyValue REFERENCE not POINTER - sheet->AddProperty(new wxProperty( - "Snaps", - wxPropertyValue(&mSteps), - "integer", - new wxIntegerListValidator(-16, 16))); +//void tShiftDlg::AddProperties() +//{ +////send wxPropertyValue REFERENCE not POINTER +// sheet->AddProperty(new wxProperty( +// "Snaps", +// wxPropertyValue(&mSteps), +// "integer", +// new wxIntegerListValidator(-16, 16))); +// +// sheet->AddProperty(new wxProperty( +// "clocks per snap", +// (long)mUnit, +// "integer")); // informational only +//} - sheet->AddProperty(new wxProperty( - "clocks per snap", - (long)mUnit, - "integer")); // informational only -} - - - // ************************************************************************** // Cleanup // ************************************************************************* Modified: trunk/jazz/src/Dialogs.h =================================================================== --- trunk/jazz/src/Dialogs.h 2009-01-20 03:37:24 UTC (rev 689) +++ trunk/jazz/src/Dialogs.h 2009-01-20 03:39:55 UTC (rev 690) @@ -33,22 +33,22 @@ class JZTrack; class JZEvent; -class tShiftDlg : public tPropertyListDlg -{ - public: +//class tShiftDlg : public tPropertyListDlg +//{ +// public: +// +// long mSteps; // 0 was static +// long mUnit; +// +// JZFilter* mpFilter; +// JZSong* mpSong; +// +// tShiftDlg(JZEventFrame* pEventWindow, JZFilter* pFilter, long Unit); +// void AddProperties(); +// bool OnClose(); +// void OnHelp(); +//}; - long mSteps; // 0 was static - long mUnit; - - JZFilter* mpFilter; - JZSong* mpSong; - - tShiftDlg(JZEventFrame* pEventWindow, JZFilter* pFilter, long Unit); - void AddProperties(); - bool OnClose(); - void OnHelp(); -}; - class tCleanupDlg : public tPropertyListDlg { public: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |