source: titan/plugins/mc/mc_pictureplayer_settings.h @ 15521

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

[titan] mc disable views

File size: 3.5 KB
Line 
1#ifndef MC_PICTUREPLAYER_SETTINGS_H
2#define MC_PICTUREPLAYER_SETTINGS_H
3
4void screenmc_pictureplayer_settings()
5{
6        int rcret = 0;
7        struct skin* tmp = NULL;
8
9        struct skin* mc_pictureplayer_settings = getscreen("mc_pictureplayer_settings");
10        struct skin* listbox = getscreennode(mc_pictureplayer_settings, "listbox");
11        struct skin* dirsort = getscreennode(mc_pictureplayer_settings, "sort");
12        struct skin* view = getscreennode(mc_pictureplayer_settings, "view");
13        struct skin* sound = getscreennode(mc_pictureplayer_settings, "sound");
14        struct skin* pp_interval = getscreennode(mc_pictureplayer_settings, "interval");
15        struct skin* showpictitle = getscreennode(mc_pictureplayer_settings, "showpictitle");
16        struct skin* picdenom = getscreennode(mc_pictureplayer_settings, "picdenom");
17        struct skin* pichwdecode = getscreennode(mc_pictureplayer_settings, "pichwdecode");
18
19        changeinput(picdenom, "1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16");
20        setchoiceboxselection(picdenom, getskinconfig("picdenom", NULL));
21
22        addchoicebox(pichwdecode, "0", _("off"));       
23        addchoicebox(pichwdecode, "1", _("on"));       
24        setchoiceboxselection(pichwdecode, getconfig("pichwdecode", NULL));
25
26        addchoicebox(showpictitle, "0", _("off"));     
27        addchoicebox(showpictitle, "1", _("on"));       
28        setchoiceboxselection(view, getconfig("showpictitle", NULL));
29       
30        addchoicebox(dirsort, "0", _("alpha")); 
31        addchoicebox(dirsort, "1", _("reverse alpha")); 
32        addchoicebox(dirsort, "2", _("size"));
33        addchoicebox(dirsort, "3", _("reverse size"));
34        addchoicebox(dirsort, "4", _("date"));
35        addchoicebox(dirsort, "5", _("reverse date"));
36        setchoiceboxselection(dirsort, getconfig("dirsort", NULL));
37
38        addchoicebox(view, "0", "fast");
39//      addchoicebox(view, "1", "big");
40//      addchoicebox(view, "2", "cover");       
41//      addchoicebox(view, "3", "default");
42//      addchoicebox(view, "4", "details");
43////    addchoicebox(view, "5", "fullcover");
44        setchoiceboxselection(view, getconfig("view", NULL));
45
46        addchoicebox(sound, "http://stream.mth-house.de:8500/", _("MTH House"));
47        addchoicebox(sound, "http://stream.laut.fm:80/radiofunclub", _("Radio Funclub"));
48        addchoicebox(sound, "http://stream.laut.fm:80/radiofunclub80", _("Radio Funclub 80s")); 
49        addchoicebox(sound, "http://www.antennestream.at:8002/", _("Antenne Kaernten"));       
50        addchoicebox(sound, "http://webhost110.gtk.hu:9008/", _("Onkelz Rock Radio"));
51        addchoicebox(sound, "http://c22033-l.i.core.cdn.streamfarm.net/22004mdrjump/live/3087mdr_jump/live_de_128.mp3", _("Jump"));
52        addchoicebox(sound, "http://scfire-ntc-aa01.stream.aol.com:80/stream/1081", _("Raute Musik FM"));
53        addchoicebox(sound, "off", _("off"));
54        setchoiceboxselection(sound, getconfig("sound", NULL));
55
56        changeinput(pp_interval, "10\n15\n20\n30\n40\n50\n60\n70\n80\n90\n100\n2\n5");
57        setchoiceboxselection(pp_interval, getconfig("pp_interval", NULL));
58
59        drawscreen(mc_pictureplayer_settings, 0);
60        addscreenrc(mc_pictureplayer_settings, listbox);
61
62        tmp = listbox->select;
63        while(1)
64        {
65                addscreenrc(mc_pictureplayer_settings, tmp);
66                rcret = waitrc(mc_pictureplayer_settings, 0, 0);
67                tmp = listbox->select;
68       
69                if(rcret == getrcconfigint("rcexit", NULL)) break;
70                if(rcret == getrcconfigint("rcok", NULL))
71                {
72                        addconfigscreen("dirsort", dirsort);
73                        addconfigscreen("view", view);
74                        addconfigscreen("sound", sound);
75                        addconfigscreen("pp_interval", pp_interval);
76                        addconfigscreen("showpictitle", showpictitle);
77                        addconfigscreen("picdenom", picdenom);
78                        addconfigscreen("pichwdecode", pichwdecode);
79                        break;
80                }
81  }
82
83        delownerrc(mc_pictureplayer_settings);
84        clearscreen(mc_pictureplayer_settings);
85}
86
87#endif
Note: See TracBrowser for help on using the repository browser.