26#include <wx/toolbar.h>
27#include <wx/settings.h>
30 #include "../images/AudacityLogo.xpm"
32 #include "../images/AudacityLogo48x48.xpm"
36 #include <Carbon/Carbon.h>
39#define AudacityKaraokeTitle XO("Audacity Karaoke%s")
56 wxPoint(100, 300),
gSize,
62 wxDEFAULT_FRAME_STYLE)
69 auto pProject = parent->shared_from_this();
80#if !defined(__WXMAC__) && !defined(__WXX11__)
83 wxIcon ic{ wxICON(AudacityLogo) };
85 wxIcon ic{wxICON(AudacityLogo48x48)};
91 wxPoint panelPos(0, 0);
92 wxSize panelSize =
gSize;
164 if (
auto pProject =
mProject.lock()) {
182 if (
auto pProject =
mProject.lock()) {
183 name = pProject->GetProjectName();
212 auto &project = context.
project;
215 lyricsWindow->Show();
216 lyricsWindow->Raise();
const ReservedCommandFlag & LabelTracksExistFlag()
const TranslatableString name
XXO("&Cut/Copy/Paste Toolbar")
#define RTL_WORKAROUND(pWnd)
#define LYRICS_DEFAULT_HEIGHT
#define LYRICS_DEFAULT_WIDTH
#define AudacityKaraokeTitle
@ kID_RadioButton_BouncingBall
@ kID_RadioButton_Highlight
ProjectFileIOMessage
Subscribe to ProjectFileIO to receive messages; always in idle time.
@ ProjectTitleChange
A normal occurrence.
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 ...
AUDACITY_DLL_API AttachedWindows & GetAttachedWindows(AudacityProject &project)
accessors for certain important windows associated with each project
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Subclass & Get(const RegisteredFactory &key)
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass.
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
AudacityProject & project
LyricsPanel is a panel that paints the bouncing ball and the lyrics text.
void SetLyricsStyle(const LyricsStyle newLyricsStyle)
void UpdatePrefs() override
void OnStyle_BouncingBall(wxCommandEvent &evt)
void OnStyle_Highlight(wxCommandEvent &evt)
void OnCloseWindow(wxCloseEvent &WXUNUSED(event))
LyricsPanel * GetLyricsPanel()
std::weak_ptr< AudacityProject > mProject
LyricsPanel * mLyricsPanel
void OnTimer(Observer::Message)
Subscription Subscribe(Callback callback)
Connect a callback to the Publisher; later-connected are called earlier.
bool IsAudioActive() const
static ProjectAudioIO & Get(AudacityProject &project)
static ProjectFileIO & Get(AudacityProject &project)
PlaybackScroller & GetPlaybackScroller()
static ProjectWindow & Get(AudacityProject &project)
NotifyingSelectedRegion selectedRegion
static ViewInfo & Get(AudacityProject &project)
void OnKaraoke(const CommandContext &context)
AttachedWindows::RegisteredFactory sLyricsWindowKey
Default message type for Publisher.