35 QRect displayRect, QRect altDisplayRect,
39 void Reset(
void)
override;
40 void ResetMap(
const InfoMap &map);
42 virtual void SetText(
const QString &text);
43 QString
GetText(
void)
const {
return m_message; }
46 void SetTextFromMap(
const InfoMap &map);
51 #if 0 // Not currently used
52 void UseAlternateArea(
bool useAlt);
55 void Pulse(
void)
override;
56 QPoint CursorPosition(
int text_offset);
57 int MoveCursor(
int lines);
65 void SetFontState(
const QString &state);
66 void SetJustification(
int just);
70 int alphaMod, QRect clipRect)
override;
73 bool showWarnings)
override;
81 void CycleColor(
const QColor& startColor,
const QColor& endColor,
int numSteps);
84 int GetJustification(
void)
const;
85 void SetCutDown(Qt::TextElideMode mode);
86 Qt::TextElideMode
GetCutDown(
void)
const {
return m_cutdown; }
87 void SetMultiLine(
bool multiline);
94 void SetCanvasPosition(
int x,
int y);
95 void ShiftCanvas(
int x,
int y);
97 bool FormatTemplate(QString & paragraph, QTextLayout *layout);
98 bool Layout(QString & paragraph, QTextLayout *layout,
bool final,
99 bool & overflow, qreal width, qreal & height,
bool force,
100 qreal & last_line_width, QRectF & min_rect,
int & num_lines);
101 bool LayoutParagraphs(
const QStringList & paragraphs,
102 const QTextOption & textoption,
103 qreal width, qreal & height, QRectF & min_rect,
104 qreal & last_line_width,
int & num_lines,
bool final);
105 bool GetNarrowWidth(
const QStringList & paragraphs,
106 const QTextOption & textoption, qreal & width);
107 void FillCutMessage(
void);
109 int m_justification {Qt::AlignLeft | Qt::AlignTop};
114 QPoint m_cursorPos {-1,-1};
121 #if 0 // Not currently used
122 bool m_usingAltArea {
false};
124 bool m_shrinkNarrow {
true};
125 Qt::TextElideMode m_cutdown {Qt::ElideRight};
126 bool m_multiLine {
false};
129 int m_leftBearing {0};
130 int m_rightBearing {0};
132 int m_extraLeading {0};
133 int m_lineHeight {0};
134 int m_textCursor {-1};
141 bool m_colorCycling {
false};
156 ScrollHorizontal, ScrollVertical};
158 int m_scrollStartDelay {ScrollBounceDelay};
159 int m_scrollReturnDelay {ScrollBounceDelay};
160 float m_scrollPause {0.0};
161 float m_scrollForwardRate {1.0};
162 float m_scrollReturnRate {1.0};
163 bool m_scrollBounce {
false};
164 int m_scrollOffset {0};
165 float m_scrollPos {0};
166 int m_scrollPosWhole {0};
168 bool m_scrolling {
false};
169 int64_t m_lastUpdate {QDateTime::currentMSecsSinceEpoch()};
171 enum TextCase {CaseNormal, CaseUpper, CaseLower, CaseCapitaliseFirst,
179 friend class MythThemedMenuPrivate;