Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{ClipMenus.cpp}::FoundTrack Struct Reference
Inheritance diagram for anonymous_namespace{ClipMenus.cpp}::FoundTrack:
[legend]
Collaboration diagram for anonymous_namespace{ClipMenus.cpp}::FoundTrack:
[legend]

Public Member Functions

wxString ComposeTrackName () const
 

Public Attributes

const WaveTrackwaveTrack {}
 
int trackNum {}
 
bool channel {}
 

Detailed Description

Definition at line 17 of file ClipMenus.cpp.

Member Function Documentation

◆ ComposeTrackName()

wxString anonymous_namespace{ClipMenus.cpp}::FoundTrack::ComposeTrackName ( ) const
inline

Definition at line 22 of file ClipMenus.cpp.

23 {
24 /* i18n-hint: The %d is replaced by the number of the track.*/
25 auto shortName = wxString::Format(_("Track %d"), trackNum).Append(" " + waveTrack->GetName());
26 if (channel) {
27 // TODO: more-than-two-channels-message
28 if ( waveTrack->IsLeader() )
29 /* i18n-hint: given the name of a track, specify its left channel */
30 return XO("%s left").Translation().Format(shortName);
31 else
32 /* i18n-hint: given the name of a track, specify its right channel */
33 return XO("%s right").Translation().Format(shortName);
34 }
35 return shortName;
36 }
XO("Cut/Copy/Paste")
#define _(s)
Definition: Internat.h:75
wxString GetName() const
Definition: Track.h:466
bool IsLeader() const
Definition: Track.cpp:405

References _, and XO().

Here is the call graph for this function:

Member Data Documentation

◆ channel

bool anonymous_namespace{ClipMenus.cpp}::FoundTrack::channel {}

Definition at line 20 of file ClipMenus.cpp.

◆ trackNum

int anonymous_namespace{ClipMenus.cpp}::FoundTrack::trackNum {}

Definition at line 19 of file ClipMenus.cpp.

◆ waveTrack

const WaveTrack* anonymous_namespace{ClipMenus.cpp}::FoundTrack::waveTrack {}

The documentation for this struct was generated from the following file: