1 #ifndef MYTHUIGUIDEGRID_H_
2 #define MYTHUIGUIDEGRID_H_
18 #define ARROWIMAGESIZE 4
19 #define RECSTATUSSIZE 8
23 #define MAX_DISPLAY_CHANS 40
26 #define MAX_DISPLAY_TIMES 48
28 #define GridTimeNormal 0
29 #define GridTimeStartsBefore 1
30 #define GridTimeEndsAfter 2
49 int alphaMod, QRect clipRect)
override;
51 enum FillType { Alpha = 10, Dense, Eco, Solid };
57 void SetCategoryColors(
const QMap<QString, QString> &catColors);
60 void SetArrow(
int direction,
const QString &
file);
61 void LoadImage(
int recType,
const QString &
file);
62 void SetProgramInfo(
int row,
int col, QRect area,
63 const QString &
title,
const QString &genre,
64 int arrow,
int recType,
int recStat,
bool selected);
66 void ResetRow(
int row);
67 void SetProgPast(
int ppast);
68 void SetMultiLine(
bool multiline);
70 QPoint GetRowAndColumn(QPoint position);
75 bool showWarnings)
override;
79 static bool parseDefaultCategoryColors(QMap<QString, QString> &catColors);
88 const QString &
category,
int arrow,
int recType,
int recStat) :
89 m_drawArea(drawArea), m_title(std::move(
title)),
90 m_category(
category.trimmed()), m_arrow(arrow),
91 m_recType(recType), m_recStat(recStat)
106 void drawBackground(
MythPainter *
p,
int xoffset,
int yoffset,
109 const QColor &color,
int alphaMod);
112 void drawRecDecoration(
MythPainter *
p,
int xoffset,
int yoffset,
117 static QColor calcColor(
const QColor &color,
int alpha);
119 QList<UIGTCon*> *m_allData {
nullptr};
122 std::array<MythUIImage*,RECSTATUSSIZE> m_recImages {};
123 std::array<MythUIImage*,ARROWIMAGESIZE> m_arrowImages {};
126 int m_channelCount {5};
128 bool m_verticalLayout {
false};
132 int m_justification {Qt::AlignLeft | Qt::AlignTop |
134 bool m_multilineText {
true};
135 bool m_cutdown {
true};
137 QString m_selType {
"box"};
138 QPen m_drawSelLine {Qt::NoPen};
139 QBrush m_drawSelFill {Qt::NoBrush};
145 int m_fillType {Solid};
148 int m_progPastCol {0};
150 bool m_drawCategoryColors {
true};
151 bool m_drawCategoryText {
true};
152 int m_categoryAlpha {255};