1 #ifndef MYTHUIGUIDEGRID_H_
2 #define MYTHUIGUIDEGRID_H_
51 int alphaMod, QRect clipRect)
override;
53 enum FillType { Alpha = 10, Dense, Eco, Solid };
59 void SetCategoryColors(
const QMap<QString, QString> &catColors);
62 void SetArrow(
int direction,
const QString &
file);
63 void LoadImage(
int recType,
const QString &
file);
64 void SetProgramInfo(
int row,
int col, QRect area,
65 const QString &title,
const QString &genre,
66 int arrow,
int recType,
int recStat,
bool selected);
68 void ResetRow(
int row);
69 void SetProgPast(
int ppast);
70 void SetMultiLine(
bool multiline);
72 QPoint GetRowAndColumn(QPoint position);
77 bool showWarnings)
override;
81 static bool parseDefaultCategoryColors(QMap<QString, QString> &catColors);
89 UIGTCon(
const QRect drawArea, QString title,
90 const QString &category,
int arrow,
int recType,
int recStat) :
91 m_drawArea(drawArea), m_title(
std::move(title)),
92 m_category(category.trimmed()), m_arrow(arrow),
93 m_recType(recType), m_recStat(recStat)
108 void drawBackground(
MythPainter *
p,
int xoffset,
int yoffset,
111 const QColor &color,
int alphaMod);
114 void drawRecDecoration(
MythPainter *
p,
int xoffset,
int yoffset,
119 static QColor calcColor(
const QColor &color,
int alpha);
121 QList<UIGTCon*> *m_allData {
nullptr};
124 std::array<MythUIImage*,RECSTATUSSIZE> m_recImages {};
125 std::array<MythUIImage*,ARROWIMAGESIZE> m_arrowImages {};
128 int m_channelCount {5};
130 bool m_verticalLayout {
false};
134 int m_justification {Qt::AlignLeft | Qt::AlignTop |
136 bool m_multilineText {
true};
137 bool m_cutdown {
true};
139 QString m_selType {
"box"};
140 QPen m_drawSelLine {Qt::NoPen};
141 QBrush m_drawSelFill {Qt::NoBrush};
147 int m_fillType {Solid};
150 int m_progPastCol {0};
152 bool m_drawCategoryColors {
true};
153 bool m_drawCategoryText {
true};
154 int m_categoryAlpha {255};