1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-11 07:05:47 +01:00

Updated to demo new method of taking over TrackPanel.

This commit is contained in:
james.k.crook@gmail.com
2011-11-25 20:41:12 +00:00
parent ed66bf3fab
commit 6046d33a36
3 changed files with 85 additions and 23 deletions

View File

@@ -11,10 +11,34 @@
#ifndef __AUDACITY_TRACK_PANEL2__
#define __AUDACITY_TRACK_PANEL2__
#include "TrackPanel.h"
class TrackPanel2 {
class TrackPanel2 : public TrackPanel
{
public:
TrackPanel2(
wxWindow * parent, wxWindowID id,
const wxPoint & pos,
const wxSize & size,
TrackList * tracks,
ViewInfo * viewInfo,
TrackPanelListener * listener,
AdornedRulerPanel * ruler);
// Upgrades an existing TrackPanel to a TrackPanel2
static void Upgrade( TrackPanel ** ppTrackPanel );
virtual void OnPaint(wxPaintEvent & event);
};
// Factory function.
TrackPanel * TrackPanel2Factory(wxWindow * parent,
wxWindowID id,
const wxPoint & pos,
const wxSize & size,
TrackList * tracks,
ViewInfo * viewInfo,
TrackPanelListener * listener,
AdornedRulerPanel * ruler);
#endif