Audacity 3.2.0
Public Types | Public Member Functions | Public Attributes | List of all members
LabelTrackEvent Struct Reference

#include <LabelTrack.h>

Collaboration diagram for LabelTrackEvent:
[legend]

Public Types

enum  Type { Addition , Deletion , Permutation , Selection }
 

Public Member Functions

 LabelTrackEvent (Type type, const std::shared_ptr< LabelTrack > &pTrack, const wxString &title, int formerPosition, int presentPosition)
 

Public Attributes

enum LabelTrackEvent::Type type
 
const std::weak_ptr< TrackmpTrack
 
wxString mTitle
 
int mFormerPosition
 
int mPresentPosition
 

Detailed Description

Definition at line 202 of file LabelTrack.h.

Member Enumeration Documentation

◆ Type

Enumerator
Addition 
Deletion 
Permutation 
Selection 

Definition at line 204 of file LabelTrack.h.

204 {
205 Addition,
206 Deletion,
208 Selection,
209 } type;
enum LabelTrackEvent::Type type

Constructor & Destructor Documentation

◆ LabelTrackEvent()

LabelTrackEvent::LabelTrackEvent ( Type  type,
const std::shared_ptr< LabelTrack > &  pTrack,
const wxString &  title,
int  formerPosition,
int  presentPosition 
)
inline

Definition at line 222 of file LabelTrack.h.

226 : type{ type }
227 , mpTrack{ pTrack }
228 , mTitle{ title }
229 , mFormerPosition{ formerPosition }
230 , mPresentPosition{ presentPosition }
231 {}
static const auto title
const std::weak_ptr< Track > mpTrack
Definition: LabelTrack.h:211
wxString mTitle
Definition: LabelTrack.h:214

Member Data Documentation

◆ mFormerPosition

int LabelTrackEvent::mFormerPosition

◆ mPresentPosition

int LabelTrackEvent::mPresentPosition

◆ mpTrack

const std::weak_ptr<Track> LabelTrackEvent::mpTrack

◆ mTitle

wxString LabelTrackEvent::mTitle

Definition at line 214 of file LabelTrack.h.

Referenced by LabelTrackView::OnLabelAdded().

◆ type

enum LabelTrackEvent::Type LabelTrackEvent::type

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