mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-11 22:27:42 +02:00
Remove Batch button cruft, never implemented since 2006.
This commit is contained in:
parent
6a42aa5f41
commit
24442a210f
@ -76,7 +76,6 @@ BEGIN_EVENT_TABLE(ControlToolBar, ToolBar)
|
|||||||
EVT_BUTTON(ID_PLAY_BUTTON, ControlToolBar::OnPlay)
|
EVT_BUTTON(ID_PLAY_BUTTON, ControlToolBar::OnPlay)
|
||||||
EVT_BUTTON(ID_STOP_BUTTON, ControlToolBar::OnStop)
|
EVT_BUTTON(ID_STOP_BUTTON, ControlToolBar::OnStop)
|
||||||
EVT_BUTTON(ID_RECORD_BUTTON, ControlToolBar::OnRecord)
|
EVT_BUTTON(ID_RECORD_BUTTON, ControlToolBar::OnRecord)
|
||||||
EVT_BUTTON(ID_BATCH_BUTTON, ControlToolBar::OnBatch)
|
|
||||||
EVT_BUTTON(ID_REW_BUTTON, ControlToolBar::OnRewind)
|
EVT_BUTTON(ID_REW_BUTTON, ControlToolBar::OnRewind)
|
||||||
EVT_BUTTON(ID_FF_BUTTON, ControlToolBar::OnFF)
|
EVT_BUTTON(ID_FF_BUTTON, ControlToolBar::OnFF)
|
||||||
EVT_BUTTON(ID_PAUSE_BUTTON, ControlToolBar::OnPause)
|
EVT_BUTTON(ID_PAUSE_BUTTON, ControlToolBar::OnPause)
|
||||||
@ -209,8 +208,7 @@ void ControlToolBar::Populate()
|
|||||||
void ControlToolBar::RegenerateToolsTooltips()
|
void ControlToolBar::RegenerateToolsTooltips()
|
||||||
{
|
{
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
// ID_BATCH_BUTTON is not an actual button, so use it as loop bound.
|
for (long iWinID = ID_PLAY_BUTTON; iWinID < BUTTON_COUNT; iWinID++)
|
||||||
for (long iWinID = ID_PLAY_BUTTON; iWinID < ID_BATCH_BUTTON; iWinID++)
|
|
||||||
{
|
{
|
||||||
wxWindow* pCtrl = this->FindWindow(iWinID);
|
wxWindow* pCtrl = this->FindWindow(iWinID);
|
||||||
wxString strToolTip = pCtrl->GetLabel();
|
wxString strToolTip = pCtrl->GetLabel();
|
||||||
@ -780,21 +778,6 @@ void ControlToolBar::StopPlaying(bool stopStream /* = true*/)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ControlToolBar::OnBatch(wxCommandEvent & WXUNUSED(evt))
|
|
||||||
{
|
|
||||||
AudacityProject *proj = GetActiveProject();
|
|
||||||
if (proj)
|
|
||||||
proj->OnApplyChain();
|
|
||||||
|
|
||||||
mPlay->Enable();
|
|
||||||
mStop->Enable();
|
|
||||||
mRewind->Enable();
|
|
||||||
mFF->Enable();
|
|
||||||
mPause->Disable();
|
|
||||||
//mBatch->Enable();
|
|
||||||
//mBatch->PopUp();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
||||||
{
|
{
|
||||||
if (gAudioIO->IsBusy()) {
|
if (gAudioIO->IsBusy()) {
|
||||||
|
@ -55,7 +55,6 @@ class ControlToolBar:public ToolBar {
|
|||||||
void OnRewind(wxCommandEvent & evt);
|
void OnRewind(wxCommandEvent & evt);
|
||||||
void OnPlay(wxCommandEvent & evt);
|
void OnPlay(wxCommandEvent & evt);
|
||||||
void OnStop(wxCommandEvent & evt);
|
void OnStop(wxCommandEvent & evt);
|
||||||
void OnBatch(wxCommandEvent & evt);
|
|
||||||
void OnRecord(wxCommandEvent & evt);
|
void OnRecord(wxCommandEvent & evt);
|
||||||
void OnFF(wxCommandEvent & evt);
|
void OnFF(wxCommandEvent & evt);
|
||||||
void OnPause(wxCommandEvent & evt);
|
void OnPause(wxCommandEvent & evt);
|
||||||
@ -109,14 +108,11 @@ class ControlToolBar:public ToolBar {
|
|||||||
ID_STOP_BUTTON,
|
ID_STOP_BUTTON,
|
||||||
ID_FF_BUTTON,
|
ID_FF_BUTTON,
|
||||||
ID_REW_BUTTON,
|
ID_REW_BUTTON,
|
||||||
|
BUTTON_COUNT,
|
||||||
// ID_BATCH_BUTTON is not an actual button.
|
|
||||||
ID_BATCH_BUTTON,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
AButton *mRewind;
|
AButton *mRewind;
|
||||||
AButton *mPlay;
|
AButton *mPlay;
|
||||||
//AButton *mBatch;
|
|
||||||
AButton *mRecord;
|
AButton *mRecord;
|
||||||
AButton *mPause;
|
AButton *mPause;
|
||||||
AButton *mStop;
|
AButton *mStop;
|
||||||
@ -134,7 +130,6 @@ class ControlToolBar:public ToolBar {
|
|||||||
|
|
||||||
wxString mStrLocale; // standard locale abbreviation
|
wxString mStrLocale; // standard locale abbreviation
|
||||||
|
|
||||||
//wxBoxSizer *mBatchGroup;
|
|
||||||
wxBoxSizer *mSizer;
|
wxBoxSizer *mSizer;
|
||||||
|
|
||||||
TrackList* mCutPreviewTracks;
|
TrackList* mCutPreviewTracks;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user