|
From: <pst...@us...> - 2008-03-21 05:58:23
|
Revision: 346
http://jazzplusplus.svn.sourceforge.net/jazzplusplus/?rev=346&view=rev
Author: pstieber
Date: 2008-03-20 22:58:22 -0700 (Thu, 20 Mar 2008)
Log Message:
-----------
Updated some piano window related code.
Modified Paths:
--------------
trunk/jazz/src/Harmony.cpp
Modified: trunk/jazz/src/Harmony.cpp
===================================================================
--- trunk/jazz/src/Harmony.cpp 2008-03-21 05:57:34 UTC (rev 345)
+++ trunk/jazz/src/Harmony.cpp 2008-03-21 05:58:22 UTC (rev 346)
@@ -29,6 +29,7 @@
#include "TrackFrame.h"
#include "TrackWindow.h"
#include "PianoFrame.h"
+#include "PianoWindow.h"
#include "GuitarFrame.h"
#include "Song.h"
#include "Filter.h"
@@ -835,7 +836,7 @@
if (cnvs->mark_piano)
{
- tEventArray &buf = gpTrackFrame->GetPianoWindow()->PasteBuffer;
+ tEventArray &buf = gpTrackFrame->GetPianoWindow()->mPasteBuffer;
for (int i = 0; i < buf.nEvents; i++)
{
tKeyOn *on = buf.Events[i]->IsKeyOn();
@@ -1011,7 +1012,7 @@
player.StartPlay(context);
}
- if ((e.LeftDown() || e.MiddleDown()) ) // && context != mouse_context)
+ if (e.LeftDown() || e.MiddleDown()) // && context != mouse_context)
{
DrawMarkers(mouse_context, dc);
mouse_context = context;
@@ -1021,10 +1022,10 @@
// paste to PianoWin buffer
if (!mark_piano)
{
- tEventArray &buf = gpTrackFrame->GetPianoWindow()->PasteBuffer;
+ tEventArray &buf = gpTrackFrame->GetPianoWindow()->mPasteBuffer;
buf.Clear();
player.Paste(buf);
- gpTrackFrame->GetPianoWindow()->Redraw();
+ gpTrackFrame->GetPianoWindow()->Refresh();
}
// Show in GuitarWin
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|