12#ifndef __AUDACITY_LYRICS__
13#define __AUDACITY_LYRICS__
18#include <wx/textctrl.h>
27#define LYRICS_DEFAULT_WIDTH 608
28#define LYRICS_DEFAULT_HEIGHT 280
57 const wxString& value = {},
58 const wxPoint& pos = wxDefaultPosition,
59 const wxSize&
size = wxDefaultSize);
91 const wxPoint& pos = wxDefaultPosition,
92 const wxSize&
size = wxDefaultSize);
106 void OnShow(wxShowEvent& e);
114 void OnPaint(wxPaintEvent &evt);
115 void OnSize(wxSizeEvent &evt);
129 void Finish(
double finalT);
131 void Add(
double t,
const wxString &syllable, wxString &highlightText);
168 DECLARE_EVENT_TABLE()
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
void OnMouseEvent(wxMouseEvent &evt)
LyricsPanel * mLyricsPanel
virtual ~HighlightTextCtrl()
HighlightTextCtrl(LyricsPanel *parent, wxWindowID id, const wxString &value={}, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
A LabelTrack is a Track that holds labels (LabelStruct).
LyricsPanel is a panel that paints the bouncing ball and the lyrics text.
void OnStartStop(AudioIOEvent)
void SetLyricsStyle(const LyricsStyle newLyricsStyle)
LyricsPanel(wxWindow *parent, wxWindowID id, AudacityProject *project, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
int FindSyllable(long startChar)
void HandlePaint(wxDC &dc)
void OnKeyEvent(wxKeyEvent &event)
LyricsStyle GetLyricsStyle()
int GetCurrentSyllableIndex()
void GetKaraokePosition(double t, int *outX, double *outY)
void Finish(double finalT)
Observer::Subscription mUndoSubscription
HighlightTextCtrl * mHighlightTextCtrl
wxWeakRef< AudacityProject > mProject
unsigned int mKaraokeFontSize
void OnShow(wxShowEvent &e)
Syllable * GetSyllable(int nSyl)
unsigned int GetDefaultFontSize() const
void Add(double t, const wxString &syllable, wxString &highlightText)
void AddLabels(const LabelTrack *pLT)
void OnSize(wxSizeEvent &evt)
void HandlePaint_BouncingBall(wxDC &dc)
Observer::Subscription mAudioIOSubscription
void SetCurrentSyllableIndex(int nSyl)
void OnPaint(wxPaintEvent &evt)
std::vector< Syllable > mSyllables
void UpdateLyrics(struct UndoRedoMessage)
void SetDrawnFont(wxDC *dc)
A move-only handle representing a connection to a Publisher.
used in LyricsPanel, a Syllable gives positional information to be used with the bouncing ball effect...
Syllable & operator=(const Syllable &)=default
Syllable(const Syllable &)=default
Type of message published by UndoManager.