mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 09:01:12 +01:00
New base classes of TrackPanel just for the bitmap backing and overlay system...
... to make it reusable by other classes. Also, don't create a second DC when repainting TrackPanel.
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include "Audacity.h"
|
||||
#include "Experimental.h"
|
||||
|
||||
#include "widgets/OverlayPanel.h"
|
||||
|
||||
#include "DirManager.h"
|
||||
#include "ViewInfo.h"
|
||||
#include "TrackPanelListener.h"
|
||||
@@ -62,7 +64,6 @@ class Tags;
|
||||
class EffectPlugs;
|
||||
|
||||
class TrackPanel;
|
||||
class TrackPanelOverlay;
|
||||
class FreqWindow;
|
||||
class ContrastDialog;
|
||||
class Meter;
|
||||
@@ -710,11 +711,11 @@ public:
|
||||
friend class CommandManager;
|
||||
|
||||
// TrackPanelOverlay objects
|
||||
std::unique_ptr<TrackPanelOverlay>
|
||||
std::unique_ptr<Overlay>
|
||||
mIndicatorOverlay, mCursorOverlay;
|
||||
|
||||
#ifdef EXPERIMENTAL_SCRUBBING_BASIC
|
||||
std::unique_ptr<TrackPanelOverlay> mScrubOverlay;
|
||||
std::unique_ptr<Overlay> mScrubOverlay;
|
||||
std::unique_ptr<Scrubber> mScrubber;
|
||||
public:
|
||||
Scrubber &GetScrubber() { return *mScrubber; }
|
||||
|
||||
Reference in New Issue
Block a user