1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-02 01:44:25 +01:00

Define and use the UIHandle and TrackPanelCell protocols, but...

...no actions reimplemented to them yet.

Later commits will move special cases one at a time from TrackPanel, preserving
all click and drag capabilities at each step.  With a few exceptions, but those
lost abilities are restored in yet later commits.  (Ctrl+Click on the Label
track being one.)
This commit is contained in:
Paul Licameli
2015-07-06 23:12:16 -04:00
committed by Paul Licameli
parent 07b53b4e83
commit 14d45eda33
48 changed files with 2144 additions and 161 deletions

View File

@@ -120,6 +120,11 @@ class AUDACITY_DLL_API LabelTrack final : public Track
LabelTrack(const LabelTrack &orig);
virtual ~ LabelTrack();
HitTestResult HitTest
(const TrackPanelMouseEvent &event,
const AudacityProject *pProject) override;
void SetOffset(double dOffset) override;
static const int DefaultFontSize = 12;
@@ -284,6 +289,10 @@ private:
bool mbIsMoving;
static wxFont msFont;
protected:
TrackControls *GetControls() override;
TrackVRulerControls *GetVRulerControls() override;
};
#endif