1 |
#ifndef XMLTOOLSINTERFACECOMMANDPREVIEW_H |
2 |
#define XMLTOOLSINTERFACECOMMANDPREVIEW_H |
3 |
|
4 |
#include <QMainWindow> |
5 |
#include <QFile> |
6 |
#include <QScrollBar> |
7 |
|
8 |
#include <BasicXMLSyntaxHighlighter/BasicXMLSyntaxHighlighter.h> |
9 |
#include <LineNumberDisplay/LineNumberDisplay.h> |
10 |
#include "util.h" |
11 |
|
12 |
namespace Ui { |
13 |
class XmlToolsInterfaceCommandPreview; |
14 |
} |
15 |
|
16 |
class XmlToolsInterfaceCommandPreview : public QMainWindow |
17 |
{ |
18 |
Q_OBJECT |
19 |
|
20 |
public: |
21 |
explicit XmlToolsInterfaceCommandPreview(const QString ¤tFileLocation, const QString &previewFileLocation, QWidget *parent = 0); |
22 |
~XmlToolsInterfaceCommandPreview(); |
23 |
|
24 |
private: |
25 |
Ui::XmlToolsInterfaceCommandPreview *ui; |
26 |
BasicXMLSyntaxHighlighter highlighterCurrentFile; |
27 |
BasicXMLSyntaxHighlighter highlighterPreviewFile; |
28 |
LineNumberDisplay *lineNumberDisplayCurrentFile; |
29 |
LineNumberDisplay *lineNumberDisplayPreviewFile; |
30 |
QString currentText; |
31 |
QString previewText; |
32 |
QStringList currentTextRows; |
33 |
QStringList previewTextRows; |
34 |
QBrush textEditDefaultBackgroundColor; |
35 |
|
36 |
private slots: |
37 |
void verticalScrollbarMoved(int value); |
38 |
void horizontalScrollbarMoved(int value); |
39 |
void on_cbWrapText_toggled(bool checked); |
40 |
void highlightDifferences(); |
41 |
void on_checkBox_toggled(bool checked); |
42 |
}; |
43 |
|
44 |
#endif // XMLTOOLSINTERFACECOMMANDPREVIEW_H |