|
From: <pst...@us...> - 2010-04-27 13:55:05
|
Revision: 765
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=765&view=rev
Author: pstieber
Date: 2010-04-27 13:54:59 +0000 (Tue, 27 Apr 2010)
Log Message:
-----------
Removed the old channel event dialog. This dialog added a channel (1-16) select control
to the event dialog.
Modified Paths:
--------------
trunk/jazz/src/Dialogs.cpp
Modified: trunk/jazz/src/Dialogs.cpp
===================================================================
--- trunk/jazz/src/Dialogs.cpp 2010-04-27 03:39:37 UTC (rev 764)
+++ trunk/jazz/src/Dialogs.cpp 2010-04-27 13:54:59 UTC (rev 765)
@@ -313,42 +313,6 @@
gpHelpInstance->ShowTopic("Piano Window");
}
-// --------------------------- ChannelEvent ----------------------------
-
-
-class tChEventDlg : public tEventDlg
-{
- public:
-
- int Channel;
-
- tChEventDlg(JZChannelEvent* pChannelEvent, JZPianoWindow* w, JZTrack *pTrack)
- : tEventDlg(pChannelEvent, w, pTrack)
- {
- Channel = pChannelEvent->GetChannel() + 1; // 1..16
- }
- void AddProperties();
- bool OnClose();
-};
-
-void tChEventDlg::AddProperties()
-{
- sheet->AddProperty(new wxProperty(
- "Channel",
- wxPropertyValue(&Channel),
- "integer",
- new wxIntegerListValidator(1, 16)));
- tEventDlg::AddProperties();
-}
-
-
-bool tChEventDlg::OnClose()
-{
- ((JZChannelEvent *)Copy)->SetChannel(Channel - 1);
- tEventDlg::OnClose();
- return false;
-}
-
// -------------------------------- Play track ---------------------------
class tPlayTrackDlg : public tEventDlg
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|