Update of /cvsroot/audacity/audacity-src/src/effects/ladspa
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv22303/effects/ladspa
Modified Files:
LadspaEffect.cpp
Log Message:
Layout 'effects' OK/Cancel buttons consistently on all platforms (I hope!).
ShuttleGUI changes by Leland.
Index: LadspaEffect.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ladspa/LadspaEffect.cpp,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- LadspaEffect.cpp 15 Apr 2007 02:23:13 -0000 1.41
+++ LadspaEffect.cpp 29 Jul 2007 11:02:35 -0000 1.42
@@ -506,13 +506,12 @@
EVT_SET_FOCUS(TextCtrl::OnSetFocus)
END_EVENT_TABLE()
-const int LADSPA_PREVIEW_ID = 13100;
const int LADSPA_SECONDS_ID = 13101;
BEGIN_EVENT_TABLE(LadspaEffectDialog, wxDialog)
EVT_BUTTON(wxID_OK, LadspaEffectDialog::OnOK)
EVT_BUTTON(wxID_CANCEL, LadspaEffectDialog::OnCancel)
- EVT_BUTTON(LADSPA_PREVIEW_ID, LadspaEffectDialog::OnPreview)
+ EVT_BUTTON(ID_EFFECT_PREVIEW, LadspaEffectDialog::OnPreview)
EVT_SLIDER(wxID_ANY, LadspaEffectDialog::OnSlider)
EVT_TEXT(wxID_ANY, LadspaEffectDialog::OnTextCtrl)
EVT_CHECKBOX(wxID_ANY, LadspaEffectDialog::OnCheckBox)
@@ -599,21 +598,8 @@
w->SetScrollRate(0, 20);
vSizer->Add(w, 1, wxEXPAND|wxALL, 5);
- wxBoxSizer *okSizer = new wxBoxSizer(wxHORIZONTAL);
-
- wxButton *button;
-
- button = new wxButton(this, LADSPA_PREVIEW_ID, effect->GetPreviewName());
- okSizer->Add(button, 0, wxALIGN_CENTRE | wxALL, 5);
-
- button = new wxButton(this, wxID_CANCEL, _("&Cancel"));
- okSizer->Add(button, 0, wxALIGN_CENTRE | wxALL, 5);
-
- button = new wxButton(this, wxID_OK, _("&OK"));
- button->SetDefault();
- okSizer->Add(button, 0, wxALIGN_CENTRE | wxALL, 5);
-
- vSizer->Add(okSizer, 0, wxALIGN_CENTRE | wxALL, 5);
+ // Preview, OK, & Cancel buttons
+ vSizer->Add(CreateStdButtonSizer(this,
ePreviewButton|eCancelButton|eOkButton), 0, wxEXPAND);
SetSizer(vSizer);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs