Update of /cvsroot/audacity/audacity-src/src/effects/VST
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv22303/effects/VST
Modified Files:
VSTEffect.cpp
Log Message:
Layout 'effects' OK/Cancel buttons consistently on all platforms (I hope!).
ShuttleGUI changes by Leland.
Index: VSTEffect.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/VST/VSTEffect.cpp,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- VSTEffect.cpp 4 Apr 2007 19:14:51 -0000 1.27
+++ VSTEffect.cpp 29 Jul 2007 11:02:35 -0000 1.28
@@ -62,7 +62,7 @@
BEGIN_EVENT_TABLE(VSTEffectGUIDialog,wxDialog)
EVT_BUTTON( wxID_OK, VSTEffectGUIDialog::OnOk )
EVT_BUTTON( wxID_CANCEL, VSTEffectGUIDialog::OnCancel )
- EVT_BUTTON( PREVIEW_ID, VSTEffectGUIDialog::OnPreview )
+ EVT_BUTTON( ID_EFFECT_PREVIEW, VSTEffectGUIDialog::OnPreview )
EVT_IDLE( VSTEffectGUIDialog::OnIdle )
END_EVENT_TABLE()
@@ -84,22 +84,8 @@
mainSizer->Add(rect->right-rect->left, rect->bottom-rect->top);
- wxBoxSizer *hSizer = new wxBoxSizer(wxHORIZONTAL);
-
- wxButton *preview =
- new wxButton(this, PREVIEW_ID, mEffect->GetPreviewName());
- hSizer->Add(preview, 0, wxALIGN_CENTRE|wxALL, 5);
-
- hSizer->Add(20, 10); // horizontal spacer
-
- wxButton *cancel = new wxButton(this, wxID_CANCEL, _("&Cancel"));
- hSizer->Add(cancel, 0, wxALIGN_CENTRE|wxALL, 5);
-
- wxButton *ok = new wxButton(this, wxID_OK, _("&OK"));
- ok->SetDefault();
- hSizer->Add(ok, 0, wxALIGN_CENTRE|wxALL, 5);
-
- mainSizer->Add(hSizer, 0, wxALIGN_CENTRE|wxALIGN_CENTER_VERTICAL|wxALL, 5);
+ // Preview, OK, & Cancel buttons
+ mainSizer->Add(CreateStdButtonSizer(this,
ePreviewButton|eCancelButton|eOkButton), 0, wxEXPAND);
SetAutoLayout(true);
SetSizer(mainSizer);
-------------------------------------------------------------------------
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