source: titan/titan/recordpath.h @ 15297

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

[titan] change all save buttons to ok

File size: 1.7 KB
Line 
1#ifndef RECORDPATH_H
2#define RECORDPATH_H
3
4void screenrecordpath()
5{
6        int rcret = 0;
7        struct skin* recordpath = getscreen("recordpath");
8        struct skin* listbox = getscreennode(recordpath, "listbox");
9        struct skin* moviepath = getscreennode(recordpath, "moviepath");
10        struct skin* timerpath = getscreennode(recordpath, "timerpath");
11        struct skin* recpath = getscreennode(recordpath, "recpath");
12        struct skin* timeshiftpath = getscreennode(recordpath, "timeshiftpath");
13        struct skin* streampath = getscreennode(recordpath, "streampath");
14        char* ret = NULL;
15
16        changeinput(moviepath, getconfig("rec_moviepath", NULL));
17        changeinput(timerpath, getconfig("rec_timerpath", NULL));
18        changeinput(recpath, getconfig("rec_path", NULL));
19        changeinput(timeshiftpath, getconfig("rec_timeshiftpath", NULL));
20        changeinput(streampath, getconfig("rec_streampath", NULL));
21
22        drawscreen(recordpath, 0);
23        addscreenrc(recordpath, listbox);
24
25        while(1)
26        {
27                rcret = waitrc(recordpath, 0, 0);
28
29                if(rcret == getrcconfigint("rcexit", NULL)) break;
30                if(rcret == getrcconfigint("rcok", NULL))
31                {
32                        addconfigscreen("rec_moviepath", moviepath);
33                        addconfigscreen("rec_timerpath", timerpath);
34                        addconfigscreen("rec_path", recpath);
35                        addconfigscreen("rec_timeshiftpath", timeshiftpath);
36                        addconfigscreen("rec_streampath", streampath);
37                        break;
38                }
39                if(rcret == getrcconfigint("rcred", NULL))
40                {
41                        if(listbox->select != NULL)
42                        {
43                                clearscreen(recordpath);
44                                ret = screendir(listbox->select->ret, "", NULL, NULL, NULL, NULL, 0, "SELECT", 0, NULL, 0, NULL, 0, 700, 0, 650, 0, 0);
45                                if(ret != NULL)
46                                        changeinput(listbox->select, ret);
47                                free(ret);
48
49                                drawscreen(recordpath, 0);
50                        }
51                }
52        }
53
54        delownerrc(recordpath);
55        clearscreen(recordpath);
56}
57
58#endif
Note: See TracBrowser for help on using the repository browser.