1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-16 15:57:52 +01:00

Move some handle and cell classes into their own files

This commit is contained in:
Paul Licameli
2017-07-04 11:39:32 -04:00
parent 4e68df55da
commit c1f667f170
20 changed files with 1314 additions and 980 deletions

View File

@@ -0,0 +1,27 @@
/**********************************************************************
Audacity: A Digital Audio Editor
TrackPanelResizeHandle.cpp
Paul Licameli split from TrackPanel.cpp
**********************************************************************/
#include "Audacity.h"
#include "TrackPanelResizerCell.h"
#include "TrackPanelResizeHandle.h"
#include "HitTestResult.h"
TrackPanelResizerCell::TrackPanelResizerCell( std::shared_ptr<Track> pTrack )
: mpTrack{ pTrack }
{}
HitTestResult TrackPanelResizerCell::HitTest
(const TrackPanelMouseEvent &event, const AudacityProject *pProject)
{
return {
TrackPanelResizeHandle::HitPreview( mBetweenTracks ),
&TrackPanelResizeHandle::Instance()
};
}