-
Notifications
You must be signed in to change notification settings - Fork 0
/
editview.h
50 lines (34 loc) · 1.02 KB
/
editview.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
#ifndef EDITVIEW_H
#define EDITVIEW_H
#include <QWidget>
#include <QStandardItemModel>
#include <QStringList>
namespace Ui {
class EditView;
}
class EditView : public QWidget
{
Q_OBJECT
public:
typedef enum {GENERAL,SPECIFIC} READTYPE;
explicit EditView(const QString &fileName, QString &SpecificElabPath, QWidget *parent = 0);
void readXml(const QString &fileName, const QString &SpecificXMLFile, READTYPE RT);
void writeXml(QString fileName,READTYPE);
~EditView();
private slots:
void on_pushButton_clicked();
void on_elabComboBox_currentIndexChanged(const QString &arg1);
void on_openSpecificButton_clicked();
private:
Ui::EditView *ui;
QList<int> list_not_restrict;
QStandardItemModel *model;
QString componentType;
QString fileDirectory;
QString SpecificElabPath;
QString SpecificXMLFile;
READTYPE state;
QStringList searchElaborations();
void refreshSpecificButton(QString);
};
#endif // EDITVIEW_H