source: s10k/Vago/xmlToolsInterface/xmltoolsinterfacecommandpreview.h@ 1115

Last change on this file since 1115 was 1093, checked in by s10k, 7 years ago

Vago 1.4

File size: 1.3 KB
Line 
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
12namespace Ui {
13class XmlToolsInterfaceCommandPreview;
14}
15
16class XmlToolsInterfaceCommandPreview : public QMainWindow
17{
18 Q_OBJECT
19
20public:
21 explicit XmlToolsInterfaceCommandPreview(const QString &currentFileLocation, const QString &previewFileLocation, QWidget *parent = 0);
22 ~XmlToolsInterfaceCommandPreview();
23
24private:
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
36private 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
Note: See TracBrowser for help on using the repository browser.