mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-22 15:38:02 +02:00
... Remove mention of obsolete plans for TrackPanel refactor, superseded by a different refactor now accomplished. Remove detailed mention of names of functions and data members that implement drawing. Move most of Roger's comments about drawing into Overlay.h which is now the more relevant place. Commented more correctly what TrackPanelListener is.
47 lines
1.6 KiB
C++
47 lines
1.6 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
TrackPanelListener.h
|
|
|
|
Dominic Mazzoni
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_TRACK_PANEL_LISTENER__
|
|
#define __AUDACITY_TRACK_PANEL_LISTENER__
|
|
|
|
class ToolsToolBar;
|
|
class ControlToolBar;
|
|
enum class UndoPush : unsigned char;
|
|
|
|
/*
|
|
\brief A now badly named abstract class which was a failed attempt to let
|
|
TrackPanel code pretend it doesn't completely know what an AudacityProject is
|
|
and use only a limited number of its services.
|
|
*/
|
|
class AUDACITY_DLL_API TrackPanelListener /* not final */ {
|
|
|
|
public:
|
|
TrackPanelListener(){};
|
|
virtual ~TrackPanelListener(){};
|
|
|
|
virtual void TP_DisplaySelection() = 0;
|
|
virtual void TP_DisplayStatusMessage(const wxString &msg) = 0;
|
|
|
|
virtual ToolsToolBar * TP_GetToolsToolBar() = 0;
|
|
|
|
virtual void TP_PushState(const wxString &shortDesc, const wxString &longDesc,
|
|
UndoPush flags) = 0;
|
|
virtual void TP_ModifyState(bool bWantsAutoSave) = 0; // if true, writes auto-save file. Should set only if you really want the state change restored after
|
|
// a crash, as it can take many seconds for large (eg. 10 track-hours) projects
|
|
virtual void TP_RedrawScrollbars() = 0;
|
|
virtual void TP_ScrollLeft() = 0;
|
|
virtual void TP_ScrollRight() = 0;
|
|
virtual void TP_ScrollWindow(double scrollto) = 0;
|
|
virtual bool TP_ScrollUpDown(int delta) = 0;
|
|
virtual void TP_HandleResize() = 0;
|
|
};
|
|
|
|
#endif
|