forked from unruhschuh/MrWriter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
textbox.h
39 lines (31 loc) · 876 Bytes
/
textbox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef TEXTBOX_H
#define TEXTBOX_H
#include <QTextEdit>
#include "page.h"
#include "abstracttextbox.h"
/**
* @brief The TextBox class is the widget for text insertion. It contains also the information for previous text
* display in the text box, when changing it.
*/
class TextBox : public AbstractTextBox {
Q_OBJECT
public:
TextBox(QWidget* parent = nullptr);
void setPrevColor(const QColor& color);
void setTextColor(const QColor& color);
void setPrevFont(const QFont& font);
void setTextFont(const QFont& font);
const QColor& getPrevColor() const;
const QFont& getFont() const;
const QFont& getPrevFont() const;
signals:
void updatePageSimpleText(int pageNum);
public slots:
virtual void applyText();
private:
QColor m_prevColor;
QColor m_color;
QFont m_prevFont;
QFont m_font;
};
#endif // TEXTBOX_H