Update of /cvsroot/audacity/audacity-src/src/prefs
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16258
Modified Files:
PlaybackPrefs.cpp ProjectsPrefs.cpp RecordingPrefs.cpp
Log Message:
Provide units information to VI users (the text after an edit box).
Index: RecordingPrefs.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/RecordingPrefs.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- RecordingPrefs.cpp 22 May 2009 05:46:00 -0000 1.1
+++ RecordingPrefs.cpp 7 Jun 2009 09:00:25 -0000 1.2
@@ -52,6 +52,8 @@
void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
{
+ wxWindow *w;
+
S.SetBorder(2);
S.StartStatic(_("Playthrough"));
@@ -79,17 +81,19 @@
{
// only show the following controls if we use Portaudio v19, because
// for Portaudio v18 we always use default buffer sizes
- S.TieTextBox(_("Audio to buffer:"),
- wxT("/AudioIO/LatencyDuration"),
- DEFAULT_LATENCY_DURATION,
- 9);
+ w = S.TieTextBox(_("Audio to buffer:"),
+ wxT("/AudioIO/LatencyDuration"),
+ DEFAULT_LATENCY_DURATION,
+ 9);
S.AddUnits(_("milliseconds (higher = more latency)"));
+ w->SetName(w->GetName() + wxT(" ") + _("milliseconds (higher = more
latency)"));
- S.TieTextBox(_("Latency correction:"),
- wxT("/AudioIO/LatencyCorrection"),
- DEFAULT_LATENCY_CORRECTION,
- 9);
+ w = S.TieTextBox(_("Latency correction:"),
+ wxT("/AudioIO/LatencyCorrection"),
+ DEFAULT_LATENCY_CORRECTION,
+ 9);
S.AddUnits(_("milliseconds (negative = backwards)"));
+ w->SetName(w->GetName() + wxT(" ") + _("milliseconds (negative =
backwards)"));
}
S.EndThreeColumn();
}
Index: PlaybackPrefs.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/PlaybackPrefs.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- PlaybackPrefs.cpp 22 May 2009 05:46:00 -0000 1.1
+++ PlaybackPrefs.cpp 7 Jun 2009 09:00:25 -0000 1.2
@@ -49,17 +49,20 @@
void PlaybackPrefs::PopulateOrExchange(ShuttleGui & S)
{
+ wxWindow *w;
+
S.SetBorder(2);
S.StartStatic(_("Effects Preview"));
{
S.StartThreeColumn();
{
- S.TieTextBox(_("Length of preview:"),
- wxT("/AudioIO/EffectsPreviewLen"),
- 3.0,
- 9);
+ w = S.TieTextBox(_("Length of preview:"),
+ wxT("/AudioIO/EffectsPreviewLen"),
+ 3.0,
+ 9);
S.AddUnits(_("seconds"));
+ w->SetName(w->GetName() + wxT(" ") + _("seconds"));
}
S.EndThreeColumn();
}
@@ -69,17 +72,19 @@
{
S.StartThreeColumn();
{
- S.TieTextBox(_("Preview before cut region:"),
- wxT("/AudioIO/CutPreviewBeforeLen"),
- 1.0,
- 9);
+ w = S.TieTextBox(_("Preview before cut region:"),
+ wxT("/AudioIO/CutPreviewBeforeLen"),
+ 1.0,
+ 9);
S.AddUnits(_("seconds"));
+ w->SetName(w->GetName() + wxT(" ") + _("seconds"));
- S.TieTextBox(_("Preview after cut region:"),
- wxT("/AudioIO/CutPreviewAfterLen"),
- 1.0,
- 9);
+ w = S.TieTextBox(_("Preview after cut region:"),
+ wxT("/AudioIO/CutPreviewAfterLen"),
+ 1.0,
+ 9);
S.AddUnits(_("seconds"));
+ w->SetName(w->GetName() + wxT(" ") + _("seconds"));
}
S.EndThreeColumn();
}
@@ -89,17 +94,19 @@
{
S.StartThreeColumn();
{
- S.TieTextBox(_("Short period:"),
- wxT("/AudioIO/SeekShortPeriod"),
- 1.0,
- 9);
+ w = S.TieTextBox(_("Short period:"),
+ wxT("/AudioIO/SeekShortPeriod"),
+ 1.0,
+ 9);
S.AddUnits(_("seconds"));
+ w->SetName(w->GetName() + wxT(" ") + _("seconds"));
- S.TieTextBox(_("Long period:"),
- wxT("/AudioIO/SeekLongPeriod"),
- 15.0,
- 9);
+ w = S.TieTextBox(_("Long period:"),
+ wxT("/AudioIO/SeekLongPeriod"),
+ 15.0,
+ 9);
S.AddUnits(_("seconds"));
+ w->SetName(w->GetName() + wxT(" ") + _("seconds"));
}
S.EndThreeColumn();
}
Index: ProjectsPrefs.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/prefs/ProjectsPrefs.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ProjectsPrefs.cpp 22 May 2009 05:46:00 -0000 1.1
+++ ProjectsPrefs.cpp 7 Jun 2009 09:00:25 -0000 1.2
@@ -51,6 +51,8 @@
void ProjectsPrefs::PopulateOrExchange(ShuttleGui & S)
{
+ wxWindow *w;
+
S.SetBorder(2);
S.StartStatic(_("When saving a project that depends on other audio files"));
@@ -76,11 +78,12 @@
S.StartThreeColumn();
{
- S.TieTextBox(_("Auto save interval:"),
- wxT("/Directories/AutoSaveMinutes"),
- 2.0,
- 9);
+ w = S.TieTextBox(_("Auto save interval:"),
+ wxT("/Directories/AutoSaveMinutes"),
+ 2.0,
+ 9);
S.AddUnits(_("minutes"));
+ w->SetName(w->GetName() + wxT(" ") + _("minutes"));
}
S.EndThreeColumn();
}
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs