mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-21 08:15:54 +01:00
Remove trailing spaces.
This commit is contained in:
@@ -43,24 +43,24 @@ END_EVENT_TABLE()
|
||||
const wxSize gSize = wxSize(LYRICS_DEFAULT_WIDTH, LYRICS_DEFAULT_HEIGHT);
|
||||
|
||||
LyricsWindow::LyricsWindow(AudacityProject *parent):
|
||||
wxFrame(parent, -1,
|
||||
wxString::Format(_("Audacity Karaoke%s"),
|
||||
((parent->GetName() == wxEmptyString) ?
|
||||
wxFrame(parent, -1,
|
||||
wxString::Format(_("Audacity Karaoke%s"),
|
||||
((parent->GetName() == wxEmptyString) ?
|
||||
wxT("") :
|
||||
wxString::Format(
|
||||
wxT(" - %s"),
|
||||
parent->GetName().c_str()).c_str())),
|
||||
wxPoint(100, 300), gSize,
|
||||
wxPoint(100, 300), gSize,
|
||||
//v Bug in wxFRAME_FLOAT_ON_PARENT:
|
||||
// If both the project frame and LyricsWindow are minimized and you restore LyricsWindow,
|
||||
// you can't restore project frame until you close LyricsWindow, but then project frame and
|
||||
// If both the project frame and LyricsWindow are minimized and you restore LyricsWindow,
|
||||
// you can't restore project frame until you close LyricsWindow, but then project frame and
|
||||
// LyricsWindow are restored but LyricsWindow is unresponsive because it thinks it's not shown.
|
||||
// wxDEFAULT_FRAME_STYLE | wxFRAME_FLOAT_ON_PARENT)
|
||||
wxDEFAULT_FRAME_STYLE)
|
||||
{
|
||||
//vvv Still necessary? It's commented out in ToolManager and Meter, so I did so here.
|
||||
// #ifdef __WXMAC__
|
||||
// // WXMAC doesn't support wxFRAME_FLOAT_ON_PARENT, so we do
|
||||
// // WXMAC doesn't support wxFRAME_FLOAT_ON_PARENT, so we do
|
||||
// SetWindowClass((WindowRef) MacGetWindowRef(), kFloatingWindowClass);
|
||||
// #endif
|
||||
mProject = parent;
|
||||
@@ -79,15 +79,15 @@ LyricsWindow::LyricsWindow(AudacityProject *parent):
|
||||
wxSize panelSize = gSize;
|
||||
|
||||
//vvv not yet working right in ported version, so choice is disabled.
|
||||
// It seems when you select highlight style, the TrackPanel timer stops working, but
|
||||
// It seems when you select highlight style, the TrackPanel timer stops working, but
|
||||
// going back to bouncing ball style starts it up again (!!!), per breakpoints in TrackPanel::OnTimer().
|
||||
//
|
||||
//wxToolBar* pToolBar = this->CreateToolBar();
|
||||
//const int kHorizMargin = 8;
|
||||
//wxRadioButton* pRadioButton_BouncingBall =
|
||||
//wxRadioButton* pRadioButton_BouncingBall =
|
||||
// new wxRadioButton(pToolBar, kID_RadioButton_BouncingBall, _("Bouncing Ball"), wxPoint(kHorizMargin, 4),
|
||||
// wxDefaultSize, wxRB_GROUP);
|
||||
//// Reposition to center vertically.
|
||||
//// Reposition to center vertically.
|
||||
//wxSize tbSize = pToolBar->GetSize();
|
||||
//wxSize btnSize = pRadioButton_BouncingBall->GetSize();
|
||||
//int top = (tbSize.GetHeight() - btnSize.GetHeight()) / 2;
|
||||
@@ -95,7 +95,7 @@ LyricsWindow::LyricsWindow(AudacityProject *parent):
|
||||
//pToolBar->AddControl(pRadioButton_BouncingBall);
|
||||
//
|
||||
//int left = kHorizMargin + btnSize.GetWidth() + kHorizMargin; //vvv Doesn't actually work. Probably need sizers.
|
||||
//wxRadioButton* pRadioButton_Highlight =
|
||||
//wxRadioButton* pRadioButton_Highlight =
|
||||
// new wxRadioButton(pToolBar, kID_RadioButton_Highlight, _("Highlight"), wxPoint(left, top));
|
||||
//pToolBar->AddControl(pRadioButton_Highlight);
|
||||
//
|
||||
@@ -113,7 +113,7 @@ LyricsWindow::LyricsWindow(AudacityProject *parent):
|
||||
mLyricsPanel = new Lyrics(this, -1, panelPos, panelSize);
|
||||
|
||||
//vvv Highlight style is broken in ported version.
|
||||
//switch (mLyricsPanel->GetLyricsStyle())
|
||||
//switch (mLyricsPanel->GetLyricsStyle())
|
||||
//{
|
||||
// case Lyrics::kBouncingBallLyrics:
|
||||
// pRadioButton_BouncingBall->SetValue(true); break;
|
||||
|
||||
Reference in New Issue
Block a user