-
Notifications
You must be signed in to change notification settings - Fork 0
/
CompareMarkersDialog.h
82 lines (61 loc) · 1.61 KB
/
CompareMarkersDialog.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
#ifndef COMPAREMARKERSDIALOG_H
#define COMPAREMARKERSDIALOG_H
#include <QTextEdit>
#include <QWidget>
#include <QFileDialog>
#include <QLabel>
namespace Ui {
class CompareMarkersDialog;
}
/*!
* @brief Class used to compare 2 markers files
*
* Class used to compare 2 markers files.
*/
class CompareMarkersDialog : public QDialog
{
Q_OBJECT
class VList : public QStringList
{
public:
explicit VList() {};
~VList(){};
//Define operator [] to get directly integer value
int operator [] (const int index) {
return this->value(index).toInt();
}
};
public:
//Constructor with two QString parameters
explicit CompareMarkersDialog(QString, QWidget *parent = 0);
~CompareMarkersDialog();
private slots:
void on_smFileBtn_clicked();
void on_extFileBtn_clicked();
void on_compareBtn_clicked();
private:
Ui::CompareMarkersDialog *ui;
QString fileName, fileName2;
// StringList to keep out text lin of markers files
QStringList *list1;
QStringList *list2;
// TextEdit where put comparation of markers
QTextEdit *f1;
QTextEdit *f2;
// List of colors for background text, text and bold format
QList<QColor> *ColList;
QTextCharFormat *textFormat;
QTextCharFormat *boldFormat;
bool copyTxt(QString, bool);
void compare_differentF(QTextCursor, QTextCursor);
void setBckCol();
// List for splitting
QString splitList(QString, int);
void fillCol();
void addCursorBlock(QTextCursor, QTextCursor, bool, int);
void c1_Bwrite(QTextCursor c1, char);
void c1_Twrite(QTextCursor c1, char);
void c2_Bwrite(QTextCursor c2, char);
void c2_Twrite(QTextCursor c2, char);
};
#endif // COMPAREMARKERSDIALOG_H