|
From: <pst...@us...> - 2009-02-17 02:10:46
|
Revision: 711
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=711&view=rev
Author: pstieber
Date: 2009-02-17 02:07:25 +0000 (Tue, 17 Feb 2009)
Log Message:
-----------
1. Added a comment header.
2. Fixed a cut & paste error in the length menu handler.
3. Removed an unneeded Redraw command.
Modified Paths:
--------------
trunk/jazz/src/EventFrame.cpp
trunk/jazz/src/EventFrame.h
Modified: trunk/jazz/src/EventFrame.cpp
===================================================================
--- trunk/jazz/src/EventFrame.cpp 2009-02-17 01:21:46 UTC (rev 710)
+++ trunk/jazz/src/EventFrame.cpp 2009-02-17 02:07:25 UTC (rev 711)
@@ -1,3 +1,23 @@
+//*****************************************************************************
+// The JAZZ++ Midi Sequencer
+//
+// Copyright (C) 2009 Peter J. Stieber, all rights reserved.
+//
+// This program is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+//*****************************************************************************
+
#include "EventFrame.h"
#include "EventWindow.h"
@@ -35,7 +55,7 @@
EVT_MENU(ID_VELOCITY, JZEventFrame::OnVelocity)
EVT_UPDATE_UI(ID_LENGTH, JZEventFrame::OnUpdateEventsSelected)
- EVT_MENU(ID_VELOCITY, JZEventFrame::OnLength)
+ EVT_MENU(ID_LENGTH, JZEventFrame::OnLength)
END_EVENT_TABLE()
@@ -79,24 +99,6 @@
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-void JZEventFrame::Redraw()
-{
-// wxDC* dc=new wxClientDC(this);
-// wxPaintEvent PaintEvent;
-// cout<<"FIXME JZEventFrame::Redraw"<<endl;
-// mpEventWindow->OnDraw(*dc); //this will in turn call the eventwin onpaintsub
-// // the problem is that onpaint no longer takes arguments, and is supposed
-// // to be called from the framework only, so it should be split.
-// delete dc;
-
-// if (mpEventWindow)
-// {
-// mpEventWindow->Refresh();
-// }
-}
-
-//-----------------------------------------------------------------------------
-//-----------------------------------------------------------------------------
void JZEventFrame::OnUpdateEventsSelected(wxUpdateUIEvent& Event)
{
if (mpEventWindow)
Modified: trunk/jazz/src/EventFrame.h
===================================================================
--- trunk/jazz/src/EventFrame.h 2009-02-17 01:21:46 UTC (rev 710)
+++ trunk/jazz/src/EventFrame.h 2009-02-17 02:07:25 UTC (rev 711)
@@ -1,9 +1,7 @@
//*****************************************************************************
// The JAZZ++ Midi Sequencer
//
-// Copyright (C) 1994-2000 Andreas Voss and Per Sigmond, all rights reserved.
-// Modifications Copyright (C) 2004 Patrick Earl
-// Modifications Copyright (C) 2008-2009 Peter J. Stieber
+// Copyright (C) 2009 Peter J. Stieber, all rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -57,9 +55,6 @@
virtual bool OnClose();
- // Redraw - nach Aenderungen von Parametern, kein GUI-Event
- virtual void Redraw();
-
private:
void OnUpdateEventsSelected(wxUpdateUIEvent& Event);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|