summaryrefslogtreecommitdiff
path: root/geometrymanager.h
blob: f553dfd5bcfb9bb8987c8d8782c3d6861f05cc7d (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
#ifndef __NOPACITY_GEOMETRYMANAGER_H
#define __NOPACITY_GEOMETRYMANAGER_H

enum eLogoPosition {lpNone = 0, lpLeft, lpRight};
enum eBackgroundStyle {bsTrans = 0, bsFull};

class cGeometryManager {
    private:
        void SetOSDSize(void);
        void SetDisplayMenuSizes(void);
        void SetDisplayChannelSizes(void);
        void SetDisplayReplaySizes(void);
        void SetDisplayMessageSizes(void);
        void SetDisplayTrackSizes(void);
        void SetDisplayVolumeSizes(void);
    public:
        cGeometryManager();
        ~cGeometryManager();
        void SetGeometry(void);
        bool GeometryChanged(void);
        int osdWidth;
        int osdHeight;
        int osdLeft;
        int osdTop;
        //DisplayMenu Sizes
        int menuSpace;
        int menuWidthScrollbar;
        int menuDateWidth;
        int menuHeaderHeight;
        int menuFooterHeight;
        int menuContentHeight;
        int menuContentWidthMain;
        int menuContentWidthSchedules;
        int menuContentWidthChannels;
        int menuContentWidthTimers;
        int menuContentWidthRecordings;
        int menuContentWidthSetup;
        int menuContentWidthFull;
        int menuContentWidthMinimum;
        int menuItemWidthDefault;
        int menuItemWidthMain;
        int menuItemWidthSchedule;
        int menuItemWidthChannel;
        int menuItemWidthTimer;
        int menuItemWidthRecording;
        int menuItemWidthSetup;
        int menuItemWidthTracks;
        int menuItemHeightMain;
        int menuItemHeightSchedule;
        int menuItemHeightDefault;
        int menuItemHeightRecordings;
        int menuItemHeightTracks;
        int menuMainMenuIconSize;
        int menuLogoWidth;
        int menuLogoHeight;
        int menuTimersLogoWidth;
        int menuTimersLogoHeight;
        int menuHeaderVDRLogoWidth;
        int menuButtonsBorder;
        int menuButtonWidth;
        int menuButtonHeight;
        int menuDiskUsageWidth;
        int menuDiskUsageHeight;
        int menuTimersWidth;
        int menuMessageWidth;
        int menuMessageHeight;
        //DisplayChannel Sizes
        int channelX, channelTop;
        int channelWidth, channelHeight;
        int channelHeaderHeight;
        int channelFooterHeight;
        int channelContentHeight;
        int channelContentX, channelContentWidth;
        int channelLogoWidthTotal;
        int channelLogoX, channelLogoY;
        int channelLogoWidth, channelLogoHeight;
        int channelChannelNameWidth;
        int channelDateWidth;
        int channelFooterY;
        int channelProgressBarHeight;
        int channelEpgInfoHeight;
        int channelEpgInfoLineHeight;
        //DisplayReplay Sizes
        int replayWidth;
        int replayHeight;
        int replayHeaderHeight;
        int replayInfo2Height;
        int replayProgressBarHeight;
        int replayCurrentHeight;
        int replayControlsHeight;
        int replayFooterHeight;
        int replayInfoWidth;
        int replayDateWidth;
        int replayIconSize, replayIconBorder;
        int replayResolutionSize;
        int replayResolutionX, replayResolutionY;
        int replayJumpX, replayJumpY;
        int replayJumpWidth, replayJumpHeight;
        int replayMessageY;
        int replayMessageWidth, replayMessageHeight;
        //DisplayMessage Sizes
        int messageWidth;
        int messageHeight;
        //DisplayTracks Sizes
        int trackWidth;
        //DisplayVolume Sizes
        int volumeWidth;
        int volumeHeight;
        int volumeLabelHeight;
        int volumeProgressBarWidth;
        int volumeProgressBarHeight;
};

#endif //__NOPACITY_GEOMETRYMANAGER_H