summaryrefslogtreecommitdiff
path: root/config.h
blob: 758702347bb2b76e8351d0729a554934be51db58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
#ifndef __NOPACITY_CONFIG_H
#define __NOPACITY_CONFIG_H

struct RssFeed {
    std::string name;
    std::string url;
};

class cNopacityConfig {
    private:
        cString checkSlashAtEnd(std::string path);
    public:
        cNopacityConfig();
        ~cNopacityConfig();
        bool SetupParse(const char *Name, const char *Value);
        void SetLogoPath(cString path);
        void SetIconPath(cString path);
        void SetEpgImagePath(cString path);
        bool logoPathSet;
        bool epgImagePathSet;
        bool iconPathSet;
        cString logoPathDefault;
        cString iconPathDefault;
        cString epgImagePathDefault;
        void setDynamicValues();
        void loadRssFeeds(void);
        //Theme Setting
        bool doBlending;
        //Common
        int fontIndex;
        const char *fontDefaultName;
        char *fontName;
        cString logoPath;
        cString logoExtension;
        cString iconPath;
        cString epgImagePath;
        bool mainMenuEntry;
        //DisplayChannel
        int channelHeight;
        int channelBorderVertical;
        int channelBorderBottom;
        int channelFadeTime;
        int channelFrameTime;
        int logoPosition;
        int logoWidth;
        int logoHeight;
        int logoBorder;
        int backgroundStyle;
        int symbolStyle;
        int roundedCornersChannel;
        int displaySignalStrength;
        int displaySourceInfo;
        int displayPrevNextChannelGroup;
        int fontChannelHeaderSize;
        int fontChannelDateSize;
        int fontEPGSize;
        int fontEPGSmallSize;
        int fontChannelGroupSize;
        int fontChannelGroupSmallSize;
        int resolutionIconSize;
        int statusIconSize;
        int progressCurrentSchedule;
        //DisplayReplay
        int replayHeight;
        int replayBorderVertical;
        int replayBorderBottom;
        int replayFadeTime;
        int replayFrameTime;
        int fontReplayHeader;
        int fontReplay;
        //Display Message
        int messageWidth;
        int messageHeight;
        int messageBorderBottom;
        int fontMessage;
        int messageFadeTime;
        int messageFrameTime;
        //DisplayTracks
        int tracksFadeTime;
        int tracksFrameTime;
        int tracksWidth;
        int tracksItemHeight;
        int tracksPosition;
        int tracksBorderHorizontal;
        int tracksBorderVertical;
        int fontTracksHeader;
        int fontTracks;
        //DisplayVolume
        int volumeFadeTime;
        int volumeFrameTime;
        int volumeWidth;
        int volumeHeight;
        int volumeBorderBottom;
        int fontVolume;
        //DisplayMenu
        int menuAdjustLeft;
        int scalePicture;
        int roundedCorners;
        int cornerRadius;
        int useMenuIcons;
        int mainMenuTitleStyle;
        int narrowMainMenu;
        int narrowScheduleMenu;
        int narrowChannelMenu;
        int narrowTimerMenu;
        int narrowRecordingMenu;
        int narrowSetupMenu;
        int displayRerunsDetailEPGView;
        int numReruns;
        int useSubtitleRerun;
        int displayAdditionalEPGPictures;
        int numAdditionalEPGPictures;
        int displayAdditionalRecEPGPictures;
        int numAdditionalRecEPGPictures;
        int menuChannelDisplayMode;
        int menuChannelDisplayTime;
        int numEPGEntriesChannelsMenu;
        int menuFadeTime;
        int menuEPGWindowFadeTime;
        int menuFrameTime;
        int menuEPGWindowFrameTime;
        int menuScrollDelay;
        int menuScrollSpeed;
        int menuScrollFrameTime;
        int menuInfoTextDelay;
        int menuInfoScrollDelay;
        int menuInfoScrollSpeed;
        int menuInfoScrollFrameTime;
        int menuWidthMain;
        int menuWidthSchedules;
        int menuWidthChannels;
        int menuWidthTimers;
        int menuWidthRecordings;
        int menuWidthSetup;
        int menuHeightInfoWindow;
        int menuWidthRightItems;
        int menuSizeDiskUsage;
        int showDiscUsage;
        int discUsageStyle;
        int showTimers;
        int numberTimers;
        int checkTimerConflict;
        int headerHeight;
        int footerHeight;
        int numDefaultMenuItems;
        int iconHeight;
        int headerIconHeight;
        int menuItemLogoWidth;
        int menuItemLogoHeight;
        int menuHeaderLogoWidth;
        int menuHeaderLogoHeight;
        int detailViewLogoWidth;
        int detailViewLogoHeight;
        int timersLogoWidth;
        int timersLogoHeight;
        int epgImageWidth;
        int epgImageHeight;
        int epgImageWidthLarge;
        int epgImageHeightLarge;
        int menuRecFolderSize;
        int fontHeader;
        int fontDate;
        int fontMenuitemLarge;
        int fontMenuitemSchedule;
        int fontMenuitemScheduleSmall;
        int fontMenuitemChannel;
        int fontMenuitemChannelSmall;
        int fontMenuitemRecordings;
        int fontMenuitemRecordingsSmall;
        int fontMenuitemTimers;
        int fontMenuitemTimersSmall;
        int fontMenuitemDefault;
        int fontDiskUsage;
        int fontDiskUsagePercent;
        int fontTimersHead;
        int fontTimers;
        int fontButtons;
        int fontMessageMenu;
        int fontDetailView;
        int fontDetailViewSmall;
        int fontDetailViewHeader;
        int fontDetailViewHeaderLarge;
        int fontEPGInfoWindow;
        //RSS Feeds
        std::vector<RssFeed> rssFeeds;
        int displayRSSFeed;
        int rssFeedHeight;
        int rssFeedHeightStandalone;
        int fontRssFeed;
        int fontRssFeedStandalone;
        int rssFeedStandalonePos;
        int rssScrollDelay;
        int rssScrollSpeed;
        int rssScrollFrameTime;
        int rssFeed[5];
};

#endif //__NOPACITY_CONFIG_H