source: titan/plugins/mc/mc_audioplayer_settings.h @ 15606

Last change on this file since 15606 was 15606, checked in by obi, 8 years ago

[titan] fix mc enable view modis

File size: 3.7 KB
Line 
1#ifndef MC_AUDIOPLAYER_SETTINGS_H
2#define MC_AUDIOPLAYER_SETTINGS_H
3
4void screenmc_audioplayer_settings()
5{
6        int rcret = 0;
7        struct skin* mc_audioplayer_settings = getscreen("mc_audioplayer_settings");
8        struct skin* listbox = getscreennode(mc_audioplayer_settings, "listbox");
9        struct skin* dirsort = getscreennode(mc_audioplayer_settings, "sort");
10        struct skin* view = getscreennode(mc_audioplayer_settings, "view");
11        struct skin* ap_autostart_playlist = getscreennode(mc_audioplayer_settings, "autostart_playlist");
12       
13//      struct skin* dimmer = getscreennode(mc_audioplayer_settings, "dimmer");
14//      struct skin* dimmer_delay = getscreennode(mc_audioplayer_settings, "dimmer_delay");
15//      struct skin* autosleep = getscreennode(mc_audioplayer_settings, "autosleep");
16//      struct skin* autosleep_delay = getscreennode(mc_audioplayer_settings, "autosleep_delay");
17//      struct skin* repeat = getscreennode(mc_audioplayer_settings, "repeat");
18
19        struct skin* tmp = NULL;
20
21        addchoicebox(dirsort, "0", _("alpha")); 
22        addchoicebox(dirsort, "1", _("reverse alpha")); 
23        addchoicebox(dirsort, "2", _("size"));
24        addchoicebox(dirsort, "3", _("reverse size"));
25        addchoicebox(dirsort, "4", _("date"));
26        addchoicebox(dirsort, "5", _("reverse date"));
27        setchoiceboxselection(dirsort, getconfig("dirsort", NULL));
28
29        addchoicebox(view, "0", _("fast"));
30        addchoicebox(view, "1", _("big"));     
31        addchoicebox(view, "2", _("cover"));   
32        addchoicebox(view, "3", _("default"));
33        addchoicebox(view, "4", _("details"));
34//      addchoicebox(view, "5", _("fullcover"));
35        setchoiceboxselection(view, getconfig("ap_view", NULL));
36
37
38        addchoicebox(ap_autostart_playlist, "0", _("no"));     
39        addchoicebox(ap_autostart_playlist, "1", _("yes"));
40        setchoiceboxselection(ap_autostart_playlist, getconfig("ap_autostart_playlist", NULL));
41
42//      addchoicebox(dimmer, "0", _("no"));     
43//      addchoicebox(dimmer, "1", _("yes"));
44//      setchoiceboxselection(dimmer, getconfig("dimmer", NULL));
45
46//      changeinput(dimmer_delay, "10\n20\n30\n40\n50\n60\n70\n80\n90\n100");
47//      setchoiceboxselection(dimmer_delay, getconfig("dimmer_delay", NULL));
48
49//      addchoicebox(autosleep, "0", _("no")); 
50//      addchoicebox(autosleep, "1", _("yes"));
51//      setchoiceboxselection(autosleep, getconfig("autosleep", NULL));
52
53//      changeinput(autosleep_delay, "300\n600\n900\n1200\n1500\n1800\n2100\n2400");
54//      setchoiceboxselection(autosleep_delay, getconfig("autosleep_delay", NULL));
55
56//      addchoicebox(repeat, "0", _("no"));     
57//      addchoicebox(repeat, "1", _("yes"));
58//      setchoiceboxselection(repeat, getconfig("repeat", NULL));
59
60
61        drawscreen(mc_audioplayer_settings, 0);
62        addscreenrc(mc_audioplayer_settings, listbox);
63
64        tmp = listbox->select;
65        while(1)
66        {
67                addscreenrc(mc_audioplayer_settings, tmp);
68                rcret = waitrc(mc_audioplayer_settings, 0, 0);
69                tmp = listbox->select;
70       
71                if(rcret == getrcconfigint("rcexit", NULL)) 
72                        break;
73                else if(rcret == getrcconfigint("rcok", NULL))
74                {
75                        addconfigscreencheck("dirsort", dirsort, NULL);
76                        addconfigscreencheck("ap_view", view, NULL);
77                        addconfigscreencheck("ap_autostart_playlist", ap_autostart_playlist, NULL);                                             
78//                      addconfigscreencheck("dimmer", dimmer, NULL);
79//                      addconfigscreencheck("dimmer_delay", dimmer_delay, NULL);
80//                      addconfigscreencheck("autosleep", autosleep, NULL);
81//                      addconfigscreencheck("autosleep_delay", autosleep_delay, NULL);
82//                      addconfigscreencheck("repeat", repeat, NULL);
83                        break;
84                }
85                else if(rcret == getrcconfigint("rcgreen", NULL))
86                {
87                        struct skin* screen = getscreen("networkmenu");
88                        menu(screen);
89                        drawscreen(mc_audioplayer_settings, 0);
90                }
91                else if(rcret == getrcconfigint("rcred", NULL))
92                {
93                        screenscreensaveradjust();
94                        drawscreen(mc_audioplayer_settings, 0);
95                }
96        }
97        delownerrc(mc_audioplayer_settings);
98        clearscreen(mc_audioplayer_settings);
99        writeallconfig(0);
100}
101
102#endif
Note: See TracBrowser for help on using the repository browser.