-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreeinterface.h
More file actions
48 lines (38 loc) · 826 Bytes
/
treeinterface.h
File metadata and controls
48 lines (38 loc) · 826 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
#ifndef TREEINTERFACE_H
#define TREEINTERFACE_H
#include <QDialog>
#include <QFileDialog>
#include <QLineEdit>
#include <tree.h>
#include <QMessageBox>
#include <stdio.h>
#include <QFile>
#include <QTextStream>
using namespace std;
namespace Ui {
class TreeInterface;
}
class TreeInterface : public QDialog
{
Q_OBJECT
public:
explicit TreeInterface(QWidget *parent = 0);
std::shared_ptr<Tree> getCurrentTree();
~TreeInterface();
public slots:
void enableBackupPath();
void browsePath();
void browseBackupPath();
void createTree();
signals:
void signalReturnTree();
private:
Ui::TreeInterface *ui;
std::shared_ptr<Tree> currentTree;
void browse(bool pathType);
QDir path;
QDir backupPath;
QString treeName;
QDateTime updateDate;
};
#endif // TREEINTERFACE_H