Changeset View
Changeset View
Standalone View
Standalone View
src/viewer/ircview.h
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Line(s) | 279 | protected: | |||
---|---|---|---|---|---|
282 | void mousePressEvent(QMouseEvent* ev) Q_DECL_OVERRIDE; | 282 | void mousePressEvent(QMouseEvent* ev) Q_DECL_OVERRIDE; | ||
283 | void mouseMoveEvent(QMouseEvent* ev) Q_DECL_OVERRIDE; | 283 | void mouseMoveEvent(QMouseEvent* ev) Q_DECL_OVERRIDE; | ||
284 | void keyPressEvent(QKeyEvent* ev) Q_DECL_OVERRIDE; | 284 | void keyPressEvent(QKeyEvent* ev) Q_DECL_OVERRIDE; | ||
285 | void contextMenuEvent(QContextMenuEvent* ev) Q_DECL_OVERRIDE; | 285 | void contextMenuEvent(QContextMenuEvent* ev) Q_DECL_OVERRIDE; | ||
286 | void wheelEvent(QWheelEvent* ev) Q_DECL_OVERRIDE; | 286 | void wheelEvent(QWheelEvent* ev) Q_DECL_OVERRIDE; | ||
287 | 287 | | |||
288 | QChar::Direction basicDirection(const QString &string); | 288 | QChar::Direction basicDirection(const QString &string); | ||
289 | 289 | | |||
290 | /// Returns true if the timestamp string is RTL, otherwise false | ||||
291 | bool dateRtlDirection(); | ||||
292 | | ||||
293 | /// Format the line by adding needed bidi marks | ||||
294 | QString formatFinalLine(bool rtl, QString lineColor, QString label, QString nickLine, QString nickStar, QString text); | ||||
295 | | ||||
290 | /// Returns a formated timestamp if timestamps are enabled else it returns QString::null | 296 | /// Returns a formated timestamp if timestamps are enabled else it returns QString::null | ||
291 | QString timeStamp(QHash<QString, QString> messageTags); | 297 | QString timeStamp(QHash<QString, QString> messageTags, bool rtl); | ||
292 | 298 | | |||
293 | /// Returns a formated nick string | 299 | /// Returns a formated nick string | ||
294 | //! FIXME formatted in what way? | 300 | //! FIXME formatted in what way? | ||
295 | QString createNickLine(const QString& nick, const QString& defaultColor, | 301 | QString createNickLine(const QString& nick, const QString& defaultColor, | ||
296 | bool encapsulateNick = true, bool privMsg = false); | 302 | bool encapsulateNick = true, bool privMsg = false); | ||
297 | 303 | | |||
298 | //// Search | 304 | //// Search | ||
299 | QTextDocument::FindFlags m_searchFlags; | 305 | QTextDocument::FindFlags m_searchFlags; | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |