-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathedittextnode.h
More file actions
66 lines (51 loc) · 1.5 KB
/
Copy pathedittextnode.h
File metadata and controls
66 lines (51 loc) · 1.5 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef EDITTEXTNODE_H
#define EDITTEXTNODE_H
#include <QtGui>
#include <QDialog>
class EditTextNode : public QDialog
{
Q_OBJECT
static const int InputSizeLimit;
QString target;
public:
EditTextNode(const bool isBase64Value, QWidget * parent = NULL);
~EditTextNode();
void setText(const QString &pTarget);
QString getText() const ;
bool testLoadBinaryFile(const QString &filePath);
public slots:
void accept();
private slots:
void on_fromBase64_clicked();
void on_toBase64_clicked();
void onWrapChanged(int newState);
void on_loadFromBinaryFile_clicked();
void on_saveBase64IntoFile_clicked();
private:
void setWrapMode(const bool show);
void error(const QString& message);
bool onLoadFromBinaryFile(const QString &filePath);
void saveToBinaryFile(const QString &filePath);
// Ui::EditTN ui;
bool isBase64;
void init();
void retranslate();
/***************************************
************ UI *********************
****************************************/
QHBoxLayout *horizontalLayout_2;
QHBoxLayout *horizontalLayout;
QPlainTextEdit *editor;
QVBoxLayout *verticalLayout;
QDialogButtonBox *buttonBox;
QSpacerItem *verticalSpacer;
QCheckBox *wrapText;
QSpacerItem *verticalSpacer_2;
QLabel *label;
QPushButton *fromBase64;
QPushButton *toBase64;
QLabel *label_2;
QPushButton *loadFromBinaryFile;
QPushButton *saveBase64IntoFile;
};
#endif // EDITTEXTNODE_H