summaryrefslogtreecommitdiff
path: root/vdr_setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'vdr_setup.c')
-rw-r--r--vdr_setup.c97
1 files changed, 51 insertions, 46 deletions
diff --git a/vdr_setup.c b/vdr_setup.c
index e6aa816..36a3b46 100644
--- a/vdr_setup.c
+++ b/vdr_setup.c
@@ -9,7 +9,7 @@
*
* $Id$
*
- * Partially adapted from
+ * Partially adapted from
* MP3/MPlayer plugin to VDR (C++)
* (C) 2001,2002 Stefan Huelswitt <huels@iname.com>
*/
@@ -23,61 +23,66 @@ mgSetup the_setup;
// --- mgMenuSetup -----------------------------------------------------------
-mgMenuSetup::mgMenuSetup()
+mgMenuSetup::mgMenuSetup ()
{
- static const char allowed[] = { "abcdefghijklmnopqrstuvwxyz0123456789-_" };
+ m_data = the_setup;
- m_data = the_setup;
+ SetSection (tr ("Muggle"));
- SetSection( tr("Muggle") );
-
- Add(new cMenuEditBoolItem(tr("Setup.Muggle$Initial loop mode"), &m_data.InitLoopMode));
- Add(new cMenuEditBoolItem(tr("Setup.Muggle$Initial shuffle mode"), &m_data.InitShuffleMode));
- Add(new cMenuEditBoolItem(tr("Setup.Muggle$Audio mode"), &m_data.AudioMode, tr("Round"), tr("Dither")));
- Add(new cMenuEditBoolItem(tr("Setup.Muggle$Use 48kHz mode only"), &m_data.Only48kHz));
- Add(new cMenuEditIntItem( tr("Setup.Muggle$Display mode"), &m_data.DisplayMode, 1, 3));
- Add(new cMenuEditBoolItem(tr("Setup.Muggle$Background mode"), &m_data.BackgrMode, tr("Black"), tr("Live")));
- Add(new cMenuEditIntItem( tr("Setup.Muggle$Normalizer level"), &m_data.TargetLevel, 0, MAX_TARGET_LEVEL));
- Add(new cMenuEditIntItem( tr("Setup.Muggle$Limiter level"), &m_data.LimiterLevel, MIN_LIMITER_LEVEL, 100));
-
- Add(new cMenuEditBoolItem(tr("Setup.Muggle$Start replay with open display"), &m_data.visible ));
- Add(new cMenuEditBoolItem(tr("Setup.Muggle$Start replay with progress display"), &m_data.progressview ));
- Add(new cMenuEditBoolItem(tr("Setup.Muggle$Start replay with track display"), &m_data.trackview ));
+ Add (new
+ cMenuEditBoolItem (tr ("Setup.Muggle$Initial loop mode"),
+ &m_data.InitLoopMode));
+ Add (new
+ cMenuEditBoolItem (tr ("Setup.Muggle$Initial shuffle mode"),
+ &m_data.InitShuffleMode));
+ Add (new
+ cMenuEditBoolItem (tr ("Setup.Muggle$Audio mode"), &m_data.AudioMode,
+ tr ("Round"), tr ("Dither")));
+ Add (new
+ cMenuEditBoolItem (tr ("Setup.Muggle$Use 48kHz mode only"),
+ &m_data.Only48kHz));
+ Add (new
+ cMenuEditIntItem (tr ("Setup.Muggle$Display mode"),
+ &m_data.DisplayMode, 1, 3));
+ Add (new
+ cMenuEditBoolItem (tr ("Setup.Muggle$Background mode"),
+ &m_data.BackgrMode, tr ("Black"), tr ("Live")));
+ Add (new
+ cMenuEditIntItem (tr ("Setup.Muggle$Normalizer level"),
+ &m_data.TargetLevel, 0, MAX_TARGET_LEVEL));
+ Add (new
+ cMenuEditIntItem (tr ("Setup.Muggle$Limiter level"),
+ &m_data.LimiterLevel, MIN_LIMITER_LEVEL, 100));
}
-void mgMenuSetup::Store(void)
-{
- the_setup = m_data;
- SetupStore("InitLoopMode", the_setup.InitLoopMode );
- SetupStore("InitShuffleMode", the_setup.InitShuffleMode);
- SetupStore("AudioMode", the_setup.AudioMode );
- SetupStore("DisplayMode", the_setup.DisplayMode );
- SetupStore("BackgrMode", the_setup.BackgrMode );
- SetupStore("TargetLevel", the_setup.TargetLevel );
- SetupStore("LimiterLevel", the_setup.LimiterLevel );
- SetupStore("Only48kHz", the_setup.Only48kHz );
+void
+mgMenuSetup::Store (void)
+{
+ the_setup = m_data;
- SetupStore("Visible", the_setup.visible );
- SetupStore("TrackView", the_setup.trackview );
- SetupStore("ProgressView", the_setup.progressview );
+ SetupStore ("InitLoopMode", the_setup.InitLoopMode);
+ SetupStore ("InitShuffleMode", the_setup.InitShuffleMode);
+ SetupStore ("AudioMode", the_setup.AudioMode);
+ SetupStore ("DisplayMode", the_setup.DisplayMode);
+ SetupStore ("BackgrMode", the_setup.BackgrMode);
+ SetupStore ("TargetLevel", the_setup.TargetLevel);
+ SetupStore ("LimiterLevel", the_setup.LimiterLevel);
+ SetupStore ("Only48kHz", the_setup.Only48kHz);
}
+
// --- mgSetup ---------------------------------------------------------------
-mgSetup::mgSetup()
+mgSetup::mgSetup ()
{
- InitLoopMode = 0;
- InitShuffleMode = 0;
- AudioMode = 1;
- DisplayMode = 3;
- BackgrMode = 1;
- TargetLevel = DEFAULT_TARGET_LEVEL;
- LimiterLevel = DEFAULT_LIMITER_LEVEL;
- Only48kHz = 0;
- ToplevelDir = "/mnt/music/";
-
- visible = 1;
- trackview = 1;
- progressview = 1;
+ InitLoopMode = 0;
+ InitShuffleMode = 0;
+ AudioMode = 1;
+ DisplayMode = 3;
+ BackgrMode = 1;
+ TargetLevel = DEFAULT_TARGET_LEVEL;
+ LimiterLevel = DEFAULT_LIMITER_LEVEL;
+ Only48kHz = 0;
+ ToplevelDir = "/mnt/music/";
}