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:
27
src/TrackPanelResizerCell.cpp
Normal file
27
src/TrackPanelResizerCell.cpp
Normal 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()
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user