-
Notifications
You must be signed in to change notification settings - Fork 0
/
outlinerviewer.h
85 lines (71 loc) · 2.34 KB
/
outlinerviewer.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef OUTLINERVIEWER_H
#define OUTLINERVIEWER_H
#include <QMainWindow>
#include <QObject>
#include<QTreeWidgetItem>
#include<QSettings>
#include<QLabel>
#include<QTextCharFormat>
#include"newnodedialog.h"
//#include "noteitem.h"
#include "nodevariant.h"
namespace Ui {
class OutLinerViewer;
}
class OutLinerViewer : public QMainWindow
{
Q_OBJECT
public:
explicit OutLinerViewer(QWidget *parent = 0);
~OutLinerViewer();
void closeEvent(QCloseEvent * event);
void saveConfig();
public slots:
void on_actionAddItem_triggered();
void on_actionRemoveItem_triggered();
void on_actionAddChild_triggered();
void on_actionInsertLink_triggered();
void on_actionIndent_triggered();
void on_actionUnindent_triggered();
void on_actionInsert_Table_triggered();
void on_actionInsert_Row_triggered();
void on_actionDelete_Table_triggered();
void on_actionDelete_Row_triggered();
void on_actionDelete_Column_triggered();
void on_actionInsert_Column_triggered();
void on_action_Save_triggered();
void on_action_Open_triggered();
void on_action_Italic_toggled(bool t);
void on_action_Underline_toggled(bool t);
void on_action_Bold_toggled(bool t);
void on_actionPrevious_triggered();
void on_actionNext_triggered();
void on_fontBox_activated(const QString &f);
void on_sizeBox_activated(const QString &f);
void on_TOC_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
void on_TOC_itemSelectionChanged();
void on_textEdit_currentCharFormatChanged(const QTextCharFormat &format);
void on_textEdit_cursorPositionChanged();
void on_textEdit_focus();
void on_TOC_focus();
void on_action_New_triggered();
void on_colorbox_colorSelected(QColor color);
void on_actionPass_word_triggered();
void textAlign(QAction *a);
void on_textEdit_anchorClicked(const QUrl &link);
private:
Ui::OutLinerViewer *ui;
int cm=false;
QString filename="toto.txt";
QSettings config;
QString password;
void setPassword(QString p);
QLabel cryptLabel;
void addChild(QTreeWidgetItem* current, QString text="");
void mergeFormatOnWordOrSelection(const QTextCharFormat &format);
void openFile();
QList<QTreeWidgetItem*> history;
bool historyManage = false;
int historyIndex = -1;
};
#endif // OUTLINERVIEWER_H