source: titan/plugins/tithek/tithek_settings.h @ 17717

Last change on this file since 17717 was 17717, checked in by obi, 12 years ago

update tithek add page count and buttonnbar

File size: 1.1 KB
Line 
1#ifndef TITHEK_SETTINGS_H
2#define TITHEK_SETTINGS_H
3
4void 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
Note: See TracBrowser for help on using the repository browser.