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

enum eLogoPosition {lpNone = 0, lpLeft, lpRight};

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 menuRssFeedHeight;
        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 menuButtonsBorder;
        int menuButtonWidth;
        int menuButtonHeight;
        int menuDiskUsageWidth;
        int menuDiskUsageHeight;
        int menuTimersWidth;
        int menuMessageWidth;
        int menuMessageHeight;
        //DisplayChannel Sizes
        int channelTop, channelHeight;
        int channelWidth;
        int channelX;
        int channelInfoWidth;
        int channelInfoHeight;
        int channelDateWidth;
        int channelProgressBarHeight;
        int channelEpgInfoHeight;
        int channelEpgInfoLineHeight;
        int channelStreamInfoHeight;
        int channelStreamInfoY;
        int channelIconSize;
        int channelIconsWidth;
        int channelSignalWidth, channelSignalHeight, channelSignalX;
        //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 replayResolutionX, replayResolutionY; 
        int replayJumpX, replayJumpY; 
        int replayJumpWidth, replayJumpHeight;
        //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