Definition at line 296 of file NavigationMenus.cpp.
◆ Handler() [1/2]
NavigationActions::Handler::Handler |
( |
| ) |
|
|
inline |
◆ Handler() [2/2]
NavigationActions::Handler::Handler |
( |
const Handler & |
| ) |
|
|
delete |
◆ OnCursorDown()
void NavigationActions::Handler::OnCursorDown |
( |
const CommandContext & |
context | ) |
|
|
inline |
◆ OnCursorUp()
void NavigationActions::Handler::OnCursorUp |
( |
const CommandContext & |
context | ) |
|
|
inline |
◆ OnFirstTrack()
void NavigationActions::Handler::OnFirstTrack |
( |
const CommandContext & |
context | ) |
|
|
inline |
◆ OnLastTrack()
void NavigationActions::Handler::OnLastTrack |
( |
const CommandContext & |
context | ) |
|
|
inline |
Definition at line 473 of file NavigationMenus.cpp.
474{
480
482 if (!t)
483 return;
484
485 auto l = *
tracks.rbegin();
486 if (t != l)
487 trackFocus.Set(l);
488 if (l) {
489 viewport.ShowTrack(*l);
490 if (t != l)
491 projectHistory.ModifyState(false);
492 }
493}
Subclass & Get(const RegisteredFactory &key)
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass.
Abstract base class for an object holding data associated with points on a time axis.
References TrackFocus::Get(), ProjectHistory::Get(), TrackList::Get(), Viewport::Get(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), CommandContext::project, project, and tracks.
◆ OnNextFrame()
void NavigationActions::Handler::OnNextFrame |
( |
const CommandContext & |
context | ) |
|
|
inline |
◆ OnNextWindow()
void NavigationActions::Handler::OnNextWindow |
( |
const CommandContext & |
context | ) |
|
|
inline |
Definition at line 361 of file NavigationMenus.cpp.
362{
365 auto isEnabled = window.IsEnabled();
366
368 const auto & list = window.GetChildren();
369 auto iter = list.begin(),
end = list.end();
370
371
372
373 if (w == &window)
374 {
375 }
376
377 else
378 {
379
380
381
382 while (iter !=
end && *iter != w)
383 ++iter;
385 ++iter;
386 }
387
388
389 for (; iter !=
end; ++iter)
390 {
391
392
393
394 w = *iter;
395 if (w->IsTopLevel() && w->IsShown() && w->IsEnabled())
396 {
397 break;
398 }
399 }
400
401
402 if ((iter ==
end) && isEnabled)
403 {
404 w = &window;
405 }
406
407
408
409
410 w->Raise();
411
412
413#if defined(__WXMAC__) || defined(__WXGTK__)
414
415
416
417
418 if (dynamic_cast<wxDialog*>(w)) {
419 w->SetFocus();
420 }
421#endif
422}
AUDACITY_DLL_API wxFrame & GetProjectFrame(AudacityProject &project)
Get the top-level window associated with the project (as a wxFrame only, when you do not need to use ...
std::unique_ptr< WindowPlacement > FindFocus()
Find the window that is accepting keyboard input, if any.
const char * end(const char *str) noexcept
References details::end(), BasicUI::FindFocus(), GetProjectFrame(), CommandContext::project, and project.
◆ OnPrevFrame()
void NavigationActions::Handler::OnPrevFrame |
( |
const CommandContext & |
context | ) |
|
|
inline |
◆ OnPrevWindow()
void NavigationActions::Handler::OnPrevWindow |
( |
const CommandContext & |
context | ) |
|
|
inline |
Definition at line 302 of file NavigationMenus.cpp.
303{
306 auto isEnabled = window.IsEnabled();
307
309 const auto & list = window.GetChildren();
310 auto iter = list.rbegin(),
end = list.rend();
311
312
313
314 if (w == &window)
315 {
316 }
317
318 else
319 {
320 while (iter !=
end && *iter != w)
321 ++iter;
323 ++iter;
324 }
325
326
327 for (; iter !=
end; ++iter)
328 {
329
330
331 w = *iter;
332 if (w->IsTopLevel() && w->IsShown() && isEnabled)
333 {
334 break;
335 }
336 }
337
338
339 if ((iter ==
end) && isEnabled)
340 {
341 w = &window;
342 }
343
344
345
346
347 w->Raise();
348
349
350#if defined(__WXMAC__) || defined(__WXGTK__)
351
352
353
354
355 if (dynamic_cast<wxDialog*>(w)) {
356 w->SetFocus();
357 }
358#endif
359}
References details::end(), BasicUI::FindFocus(), GetProjectFrame(), CommandContext::project, and project.
◆ OnShiftDown()
void NavigationActions::Handler::OnShiftDown |
( |
const CommandContext & |
context | ) |
|
|
inline |
◆ OnShiftUp()
void NavigationActions::Handler::OnShiftUp |
( |
const CommandContext & |
context | ) |
|
|
inline |
◆ OnToggle()
void NavigationActions::Handler::OnToggle |
( |
const CommandContext & |
context | ) |
|
|
inline |
Definition at line 507 of file NavigationMenus.cpp.
508{
514
516
517 t = trackFocus.
Get();
518 if (!t)
519 return;
520 selectionState.SelectTrack(*t, !t->
GetSelected(),
true);
521 viewport.ShowTrack(*t);
522 projectHistory.ModifyState(false);
523
524 trackFocus.UpdateAccessibility();
525
526 return;
527}
static SelectionState & Get(AudacityProject &project)
bool GetSelected() const
Selectedness is always the same for all channels of a group.
References TrackFocus::Get(), ProjectHistory::Get(), SelectionState::Get(), Viewport::Get(), ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), Track::GetSelected(), CommandContext::project, and project.
◆ operator=()
◆ UpdatePrefs()
void NavigationActions::Handler::UpdatePrefs |
( |
| ) |
|
|
inlineoverridevirtual |
◆ mCircularTrackNavigation
bool NavigationActions::Handler::mCircularTrackNavigation {} |
The documentation for this struct was generated from the following file: