source: titan/titan/settings_bluebutton.h @ 26912

Last change on this file since 26912 was 25928, checked in by obi, 10 years ago

next step translate

File size: 1.6 KB
Line 
1#ifndef SETTINGS_BLUEBUTTON_H
2#define SETTINGS_BLUEBUTTON_H
3
4void screensettings_bluebutton()
5{
6        char* skintitle = _("Blue Key Action - Setup");
7        struct skin* plugin = getscreen("plugin");
8        struct skin* child = plugin->child;
9        char* tmpstr = NULL;
10        struct menulist* mlist = NULL, *mbox = NULL;
11       
12        addmenulist(&mlist, _("TV / Radio Switch"), NULL, NULL, 0, 0);
13        if(checkemu() == 1)
14                addmenulist(&mlist, _("Softcam Panel"), NULL, NULL, 0, 0);
15        addmenulist(&mlist, _("Extensions List"), NULL, NULL, 0, 0);
16        addmenulist(&mlist, _("Multi EPG"), NULL, NULL, 0, 0);
17        addmenulist(&mlist, _("Graphic Multi EPG"), NULL, NULL, 0, 0);
18        addmenulist(&mlist, _("Sleep Timer"), NULL, NULL, 0, 0);
19        addmenulist(&mlist, _("Child Protection"), NULL, NULL, 0, 0);
20        addmenulist(&mlist, _("Subchannel"), NULL, NULL, 0, 0);
21        addmenulist(&mlist, _("Downloads"), NULL, NULL, 0, 0);
22
23        while(child != NULL)
24        {
25        if(child->del == PLUGINDELMARK && (status.security == 1 || (status.security == 0 && checkpluginskip(child->name) == 0)))
26                        addmenulist(&mlist, child->name, NULL, child->pic, 0, 0);
27                child = child->next;
28        }
29       
30        char* bluekey = getconfig("bluekey", NULL);
31        debug(60, "Bluekey: %s (default)", bluekey);
32
33        setmenulistdefault(mlist, bluekey);
34        mbox = menulistbox(mlist, NULL, skintitle, NULL, NULL, 1, 0);
35
36        if(mbox == NULL)
37        {
38                free(tmpstr); tmpstr = NULL;
39                return;
40        }
41        debug(60, "(new) Bluekey=%s", mbox->name);
42
43        if(ostrcmp(mbox->name, _("TV / Radio Switch")) == 0)
44                delconfig("bluekey");
45        else
46                addconfig("bluekey", mbox->name);
47
48        freemenulist(mlist, 1); mlist = NULL;
49        free(tmpstr); tmpstr = NULL;
50        return;
51}
52
53#endif
Note: See TracBrowser for help on using the repository browser.