![]() |
Audacity 3.2.0
|
#include <SelectionState.h>
Public Member Functions | |
SelectionState ()=default | |
SelectionState (const SelectionState &)=delete | |
SelectionState & | operator= (const SelectionState &)=delete |
void | SelectTrack (Track &track, bool selected, bool updateLastPicked) |
void | SelectRangeOfTracks (TrackList &tracks, Track &sTrack, Track &eTrack) |
void | SelectNone (TrackList &tracks) |
void | ChangeSelectionOnShiftClick (TrackList &tracks, Track &track) |
void | HandleListSelection (TrackList &tracks, ViewInfo &viewInfo, Track &track, bool shift, bool ctrl, bool syncLocked) |
![]() | |
virtual | ~Base () |
Static Public Member Functions | |
static SelectionState & | Get (AudacityProject &project) |
static const SelectionState & | Get (const AudacityProject &project) |
static void | SelectTrackLength (ViewInfo &viewInfo, Track &track, bool syncLocked) |
Private Attributes | |
std::weak_ptr< Track > | mLastPickedTrack |
Friends | |
class | SelectionStateChanger |
Definition at line 21 of file SelectionState.h.
|
default |
|
delete |
Definition at line 103 of file SelectionState.cpp.
References PackedArray::begin(), TrackList::FindLeader(), TrackList::Leaders(), TrackList::Lock(), mLastPickedTrack, TrackList::Selected(), SelectNone(), SelectRangeOfTracks(), SelectTrack(), and Track::SharedPointer().
Referenced by HandleListSelection().
|
static |
Definition at line 20 of file SelectionState.cpp.
References key.
Referenced by LabelGlyphHandle::Click(), SelectHandle::Click(), BackgroundHandle::Click(), SelectUtilities::DoListSelection(), anonymous_namespace{NavigationMenus.cpp}::DoNextTrack(), anonymous_namespace{NavigationMenus.cpp}::DoPrevTrack(), SelectHandle::Drag(), Get(), LabelGlyphHandle::HandleGlyphDragRelease(), NavigationActions::Handler::OnToggle(), and AffordanceHandle::Release().
|
static |
Definition at line 25 of file SelectionState.cpp.
References Get().
void SelectionState::HandleListSelection | ( | TrackList & | tracks, |
ViewInfo & | viewInfo, | ||
Track & | track, | ||
bool | shift, | ||
bool | ctrl, | ||
bool | syncLocked | ||
) |
Definition at line 137 of file SelectionState.cpp.
References ChangeSelectionOnShiftClick(), Track::GetSelected(), mLastPickedTrack, SelectNone(), SelectTrack(), and SelectTrackLength().
|
delete |
void SelectionState::SelectNone | ( | TrackList & | tracks | ) |
Definition at line 97 of file SelectionState.cpp.
References TrackList::Any(), and SelectTrack().
Referenced by ChangeSelectionOnShiftClick(), BackgroundHandle::Click(), and HandleListSelection().
Definition at line 79 of file SelectionState.cpp.
References TrackList::Any(), PackedArray::begin(), TrackList::FindLeader(), TrackList::Leaders(), SelectTrack(), and anonymous_namespace{NoteTrack.cpp}::swap().
Referenced by ChangeSelectionOnShiftClick().
void SelectionState::SelectTrack | ( | Track & | track, |
bool | selected, | ||
bool | updateLastPicked | ||
) |
Definition at line 52 of file SelectionState.cpp.
References mLastPickedTrack, Track::SetSelected(), and Track::SharedPointer().
Referenced by ChangeSelectionOnShiftClick(), HandleListSelection(), SelectNone(), and SelectRangeOfTracks().
|
static |
Definition at line 33 of file SelectionState.cpp.
References TrackList::Channels(), Track::GetEndTime(), Track::GetOffset(), SyncLock::Group(), ViewInfo::selectedRegion, and NotifyingSelectedRegion::setTimes().
Referenced by SelectHandle::Click(), HandleListSelection(), and NoteTrackAffordanceHandle::SelectAt().
|
friend |
Definition at line 48 of file SelectionState.h.
|
private |
Definition at line 50 of file SelectionState.h.
Referenced by ChangeSelectionOnShiftClick(), HandleListSelection(), SelectTrack(), and SelectionStateChanger::~SelectionStateChanger().