-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
70 lines (49 loc) · 1.63 KB
/
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
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "ui_mainwindow.h"
#include "treemodel.h"
#include "treemodelcompleter.h"
#include "dragdropmodel.h"
#include <QMainWindow>
#include <QModelIndex>
#include <QStandardItemModel>
class MainWindow : public QMainWindow, private Ui::MainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
void deserializeModel(QDataStream &in, QStack<pair<TreeItem*, int>*>& s);
void serializeModel(TreeModel* model, MainWindow* mainWindow);
public slots:
void updateActions();
private slots:
void insertChild();
bool insertColumn(const QModelIndex &parent = QModelIndex());
void insertRow();
bool removeColumn(const QModelIndex &parent = QModelIndex());
void removeRow();
void highlight(const QModelIndex&);
void on_btn_parcourir_source_clicked();
void on_btn_parcourir_target_clicked();
void on_btn_add_mapping_clicked();
void on_btn_save_mapping_clicked();
void on_btn_upload_mapping_clicked();
void on_btn_upload_mapping_2_clicked();
void on_btn_transform_clicked();
void on_btn_remove_mapping_clicked();
void on_btn_add_input_clicked();
void on_btn_remove_input_clicked();
void on_btn_upload_model_target_clicked();
void on_pushButton_clicked();
void on_pushButton_2_clicked();
private:
DragDropModel* model_cible;
DragDropModel* model_source;
TreeModelCompleter *source_completer;
TreeModelCompleter *cible_completer;
QStandardItemModel* model_files_input;
QStandardItemModel* table_model;
QHash<QString, QString> mapping;
TreeModel* model_target;
};
#endif // MAINWINDOW_H