1 | #ifndef TITHEK_SETTINGS_H
|
---|
2 | #define TITHEK_SETTINGS_H
|
---|
3 |
|
---|
4 | void screentithek_settings()
|
---|
5 | {
|
---|
6 | int rcret = 0;
|
---|
7 | struct skin* tmp = NULL;
|
---|
8 |
|
---|
9 | struct skin* tithek_settings = getscreen("tithek_settings");
|
---|
10 | struct skin* listbox = getscreennode(tithek_settings, "listbox");
|
---|
11 | struct skin* view = getscreennode(tithek_settings, "view");
|
---|
12 | struct skin* cover = getscreennode(tithek_settings, "cover");
|
---|
13 | struct skin* pay = getscreennode(tithek_settings, "pay");
|
---|
14 | struct skin* picratio = getscreennode(tithek_settings, "picratio");
|
---|
15 |
|
---|
16 | addchoicebox(cover, "0", _("show auto entrys"));
|
---|
17 | addchoicebox(cover, "1", _("show 2 entrys"));
|
---|
18 | addchoicebox(cover, "2", _("show 6 entrys"));
|
---|
19 | addchoicebox(cover, "3", _("show 12 entrys"));
|
---|
20 | addchoicebox(cover, "4", _("show 20 entrys"));
|
---|
21 | addchoicebox(cover, "5", _("show 30 entrys"));
|
---|
22 | setchoiceboxselection(cover, getconfig("tithek_cover", NULL));
|
---|
23 |
|
---|
24 | addchoicebox(view, "0", _("show auto entrys"));
|
---|
25 | addchoicebox(view, "1", _("show 2 entrys"));
|
---|
26 | addchoicebox(view, "2", _("show 6 entrys"));
|
---|
27 | addchoicebox(view, "3", _("show 12 entrys"));
|
---|
28 | addchoicebox(view, "4", _("show 20 entrys"));
|
---|
29 | addchoicebox(view, "5", _("show 30 entrys"));
|
---|
30 | setchoiceboxselection(view, getconfig("tithek_view", NULL));
|
---|
31 |
|
---|
32 | addchoicebox(picratio, "0", _("no"));
|
---|
33 | addchoicebox(picratio, "1", _("yes"));
|
---|
34 | setchoiceboxselection(picratio, getconfig("tithek_pic_ratio", NULL));
|
---|
35 |
|
---|
36 | addchoicebox(pay, "0", _("no"));
|
---|
37 | addchoicebox(pay, "1", _("yes"));
|
---|
38 | setchoiceboxselection(pay, getconfig("tithek_pay", NULL));
|
---|
39 |
|
---|
40 | drawscreen(tithek_settings, 0, 0);
|
---|
41 | addscreenrc(tithek_settings, listbox);
|
---|
42 |
|
---|
43 | tmp = listbox->select;
|
---|
44 | while(1)
|
---|
45 | {
|
---|
46 | addscreenrc(tithek_settings, tmp);
|
---|
47 | rcret = waitrc(tithek_settings, 0, 0);
|
---|
48 | tmp = listbox->select;
|
---|
49 |
|
---|
50 | if(rcret == getrcconfigint("rcexit", NULL)) break;
|
---|
51 | if(rcret == getrcconfigint("rcok", NULL))
|
---|
52 | {
|
---|
53 | addconfigscreencheck("tithek_view", view, NULL);
|
---|
54 | addconfigscreencheck("tithek_cover", cover, NULL);
|
---|
55 | addconfigscreencheck("tithek_pay", pay, NULL);
|
---|
56 | addconfigscreencheck("tithek_pic_ratio", picratio, NULL);
|
---|
57 | break;
|
---|
58 | }
|
---|
59 | else if(rcret == getrcconfigint("rcgreen", NULL))
|
---|
60 | {
|
---|
61 | screenscreensaveradjust();
|
---|
62 | drawscreen(tithek_settings, 0, 0);
|
---|
63 | }
|
---|
64 | }
|
---|
65 |
|
---|
66 | delownerrc(tithek_settings);
|
---|
67 | clearscreen(tithek_settings);
|
---|
68 | }
|
---|
69 |
|
---|
70 | #endif
|
---|