18#ifndef Q_TEXT_ORIENTATION_WIDGET_H
19#define Q_TEXT_ORIENTATION_WIDGET_H
Definition qtextorientationwidget.h:24
double squares_interval_
Interval between commonly used angles (represented by squares), in degrees.
Definition qtextorientationwidget.h:66
QFont text_font_
Font used to render the example text.
Definition qtextorientationwidget.h:72
double orientation() const
Definition qtextorientationwidget.cpp:75
bool read_only_
Whether this widget is read only.
Definition qtextorientationwidget.h:80
~QTextOrientationWidget() override
Definition qtextorientationwidget.cpp:56
bool must_highlight_angle_
Whether to highlight a specific angle.
Definition qtextorientationwidget.h:78
QHash< QString, qreal > text_size_hash_
Associate available example texts with their length (in pixels)
Definition qtextorientationwidget.h:74
QTextOrientationWidget & operator=(const QTextOrientationWidget &)
void setUsableTexts(const QStringList &)
Definition qtextorientationwidget.cpp:123
double current_orientation_
current angle
Definition qtextorientationwidget.h:68
bool textDisplayed() const
Definition qtextorientationwidget.cpp:111
bool isReadOnly() const
Definition qtextorientationwidget.cpp:153
void mouseReleaseEvent(QMouseEvent *) override
Definition qtextorientationwidget.cpp:277
QSize sizeHint() const override
Definition qtextorientationwidget.cpp:168
void mouseMoveEvent(QMouseEvent *) override
Definition qtextorientationwidget.cpp:256
void setReadOnly(bool)
Definition qtextorientationwidget.cpp:161
int heightForWidth(int) const override
Definition qtextorientationwidget.cpp:178
void orientationChanged(double)
void paintEvent(QPaintEvent *) override
Definition qtextorientationwidget.cpp:187
double highlight_angle_
Specific angle to be highlighted.
Definition qtextorientationwidget.h:76
bool positionIsASquare(const QPointF &, double *=nullptr)
Definition qtextorientationwidget.cpp:347
void generateTextSizeHash()
Definition qtextorientationwidget.cpp:330
QStringList usableTexts() const
Definition qtextorientationwidget.cpp:145
QTextOrientationWidget(const QTextOrientationWidget &)
void setOrientation(const double &)
Definition qtextorientationwidget.cpp:65
QString getMostUsableStringForRadius(const qreal &)
Definition qtextorientationwidget.cpp:301
void setDisplayText(bool)
Definition qtextorientationwidget.cpp:104
QFont font() const
Definition qtextorientationwidget.cpp:96
bool display_text_
Whether to display an example text.
Definition qtextorientationwidget.h:70
void setFont(const QFont &)
Definition qtextorientationwidget.cpp:84