Audacity 3.2.0
Classes | Functions | Variables
anonymous_namespace{SnappingToolBar.cpp} Namespace Reference

Classes

class  SnapModePopup
 

Functions

TranslatableString GetSnapToLabel (Identifier snapTo)
 

Variables

const TranslatableString SnapLabel = XO("Snap")
 
AttachedToolBarMenuItem sAttachment
 

Function Documentation

◆ GetSnapToLabel()

TranslatableString anonymous_namespace{SnappingToolBar.cpp}::GetSnapToLabel ( Identifier  snapTo)

Definition at line 46 of file SnappingToolBar.cpp.

47{
48 auto item = SnapFunctionsRegistry::Find(snapTo);
49 return item != nullptr ? item->label : XO("Unknown");
50}
XO("Cut/Copy/Paste")
static const SnapRegistryItem * Find(const Identifier &id)
Definition: SnapUtils.cpp:121

References SnapFunctionsRegistry::Find(), and XO().

Referenced by anonymous_namespace{SnappingToolBar.cpp}::SnapModePopup::GetStringValue(), and anonymous_namespace{SnappingToolBar.cpp}::SnapModePopup::SnapModePopup().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sAttachment

AttachedToolBarMenuItem anonymous_namespace{SnappingToolBar.cpp}::sAttachment
Initial value:
{
SnappingToolBar::ID(), wxT("ShowSnappingTB"), XXO("&Snapping Toolbar")
}
wxT("CloseDown"))
XXO("&Cut/Copy/Paste Toolbar")
static Identifier ID()

Definition at line 435 of file SnappingToolBar.cpp.

◆ SnapLabel

const TranslatableString anonymous_namespace{SnappingToolBar.cpp}::SnapLabel = XO("Snap")

Definition at line 45 of file SnappingToolBar.cpp.

Referenced by SnappingToolBar::Populate().