-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheksixml.h
More file actions
49 lines (39 loc) · 974 Bytes
/
Copy patheksixml.h
File metadata and controls
49 lines (39 loc) · 974 Bytes
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
#ifndef EKSIXML_H
#define EKSIXML_H
#include <QMainWindow>
#include <QApplication>
#include <QPrinter>
#include <QTextDocument>
#include <QDomDocument>
#include <QFile>
#include <QFileInfo>
#include <QtGlobal>
#include <QTextStream>
#include <QFileDialog>
#include <QRegularExpression>
#include <QRegExp>
#include <QTextBrowser>
#include <iostream>
namespace Ui {
class EksiXML;
}
class EksiXML : public QMainWindow
{
Q_OBJECT
public:
explicit EksiXML(QWidget *parent = nullptr);
void replaceAll(QString& str, const QString& from, const QString& to);
void replaceAllTag(QString& str, const QString& from, const QString& to, const QString& to2);
void convert(QString& str);
~EksiXML();
private slots:
void on_openXMLBtn_clicked();
void on_convertBtn_clicked();
void on_saveBtn_clicked();
private:
Ui::EksiXML *ui;
QString fileName, saveFileName;
QFileInfo fileInfo;
QTextDocument document;
};
#endif // EKSIXML_H