QElectroTech  0.8-dev
qtextorientationspinboxwidget.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef Q_TEXT_ORIENTATION_SPINBOX_WIDGET_H
19 #define Q_TEXT_ORIENTATION_SPINBOX_WIDGET_H
20 #include <QtWidgets>
21 #include "qtextorientationwidget.h"
27 class QTextOrientationSpinBoxWidget : public QWidget {
28  Q_OBJECT
29 
30  // constructors, destructor
31  public:
32  QTextOrientationSpinBoxWidget(QWidget * = nullptr);
34  private:
36 
37  signals:
41  void editingFinished(double);
43 
44  // methods
45  public:
47  QDoubleSpinBox *spinBox() const;
48  double orientation() const;
49  double value() const;
50  bool isReadOnly() const;
51 
52  public slots:
53  void setOrientation(const double &);
54  void setValue(const double &);
55  void setReadOnly(bool);
56 
57  private:
58  void build();
59 
60  private slots:
61  void emitChangeSignals();
62 
63  // attributes
64  private:
66  QDoubleSpinBox *spin_box_;
67 };
68 #endif
QTextOrientationWidget
Definition: qtextorientationwidget.h:24
QTextOrientationSpinBoxWidget::editingFinished
void editingFinished()
qtextorientationwidget.h
QTextOrientationSpinBoxWidget::orientation
double orientation() const
Definition: qtextorientationspinboxwidget.cpp:53
QTextOrientationSpinBoxWidget::setValue
void setValue(const double &)
Definition: qtextorientationspinboxwidget.cpp:86
QTextOrientationSpinBoxWidget::orientation_widget_
QTextOrientationWidget * orientation_widget_
Definition: qtextorientationspinboxwidget.h:65
QTextOrientationSpinBoxWidget::setOrientation
void setOrientation(const double &)
Definition: qtextorientationspinboxwidget.cpp:76
QTextOrientationSpinBoxWidget::spinBox
QDoubleSpinBox * spinBox() const
Definition: qtextorientationspinboxwidget.cpp:46
QTextOrientationSpinBoxWidget::orientationWidget
QTextOrientationWidget * orientationWidget() const
Definition: qtextorientationspinboxwidget.cpp:39
QTextOrientationSpinBoxWidget::build
void build()
Definition: qtextorientationspinboxwidget.cpp:101
QTextOrientationSpinBoxWidget::editingFinished
void editingFinished(double)
QTextOrientationSpinBoxWidget::setReadOnly
void setReadOnly(bool)
Definition: qtextorientationspinboxwidget.cpp:93
QTextOrientationSpinBoxWidget::QTextOrientationSpinBoxWidget
QTextOrientationSpinBoxWidget(const QTextOrientationSpinBoxWidget &)
qtextorientationspinboxwidget.h
QTextOrientationSpinBoxWidget::isReadOnly
bool isReadOnly() const
Definition: qtextorientationspinboxwidget.cpp:69
QTextOrientationSpinBoxWidget
Definition: qtextorientationspinboxwidget.h:27
QTextOrientationSpinBoxWidget::emitChangeSignals
void emitChangeSignals()
Definition: qtextorientationspinboxwidget.cpp:131
QTextOrientationSpinBoxWidget::~QTextOrientationSpinBoxWidget
~QTextOrientationSpinBoxWidget() override
Definition: qtextorientationspinboxwidget.cpp:33
QTextOrientationSpinBoxWidget::value
double value() const
Definition: qtextorientationspinboxwidget.cpp:62
QTextOrientationSpinBoxWidget::spin_box_
QDoubleSpinBox * spin_box_
Definition: qtextorientationspinboxwidget.h:66
QET::Icons::ro
QIcon ro
Definition: qeticons.cpp:200
QTextOrientationSpinBoxWidget::QTextOrientationSpinBoxWidget
QTextOrientationSpinBoxWidget(QWidget *=nullptr)
Definition: qtextorientationspinboxwidget.cpp:24