-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
42 lines (33 loc) · 974 Bytes
/
mainwindow.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
#pragma once
#include <QMainWindow>
#include <QDir>
#include <QTreeWidgetItem>
#include "textviewwithscrollevent.h"
#include "opendirdialog.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void textViewScrolled(QWheelEvent*);
void on_action_Open_triggered();
void openDlgCompleted();
void on_treeWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
private:
Ui::MainWindow *ui;
TextViewWithScrollEvent *textView1, *textView2;
void ShowDifferenceFiles(QString one, QString two);
void goToLine(QPlainTextEdit* ctrl, int line);
int countNewLines(QString text);
void openDirectories();
void processDir(QTreeWidgetItem* treeParent, QString dirBase, QDir dir);
void processFile(QTreeWidgetItem* parent, QString path);
QString dir1, dir2;
QStringList files;
OpenDirDialog* openDirDialog;
};