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 |
|
---|
13 | addchoicebox(view, "0", _("show 6 entrys"));
|
---|
14 | addchoicebox(view, "1", _("show 12 entrys"));
|
---|
15 | setchoiceboxselection(view, getconfig("tithek_view", NULL));
|
---|
16 |
|
---|
17 | drawscreen(tithek_settings, 0, 0);
|
---|
18 | addscreenrc(tithek_settings, listbox);
|
---|
19 |
|
---|
20 | tmp = listbox->select;
|
---|
21 | while(1)
|
---|
22 | {
|
---|
23 | addscreenrc(tithek_settings, tmp);
|
---|
24 | rcret = waitrc(tithek_settings, 0, 0);
|
---|
25 | tmp = listbox->select;
|
---|
26 |
|
---|
27 | if(rcret == getrcconfigint("rcexit", NULL)) break;
|
---|
28 | if(rcret == getrcconfigint("rcok", NULL))
|
---|
29 | {
|
---|
30 | addconfigscreencheck("tithek_view", view, NULL);
|
---|
31 | break;
|
---|
32 | }
|
---|
33 | else if(rcret == getrcconfigint("rcgreen", NULL))
|
---|
34 | {
|
---|
35 | screenscreensaveradjust();
|
---|
36 | drawscreen(tithek_settings, 0, 0);
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|
40 | delownerrc(tithek_settings);
|
---|
41 | clearscreen(tithek_settings);
|
---|
42 | }
|
---|
43 |
|
---|
44 | #endif
|
---|