-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathips.h
47 lines (37 loc) · 917 Bytes
/
ips.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
#ifndef _IPS_H_
#define _IPS_H_
#include <QtGui>
#include "ui_ips.h"
class IpsUI: public QDialog, public Ui::IpsUI
{
Q_OBJECT
public:
IpsUI(QWidget *parent = 0);
void init();
bool checkAvailable(const QString & = "");
void parseRelations();
public slots:
void parse(QTreeWidgetItem *, QTreeWidgetItem *, const QString & = "", const QString & = "");
void updateList();
void save();
void clear();
void applyRelations(QTreeWidgetItem * = NULL, int = 0);
private:
QStringList ipsLangs;
QString ipspath;
QStringList datFiles;
bool stopListenRelations;
QList <QStringList> confTable;
QMultiHash <QString, QStringList> depTable;
QHash <QString, int> itemStateTable;
enum
{
ITR_SAVE = 0,
ITR_CLEAR,
ITR_RELATIONS
};
void validateConf(const QString &);
void validateDep(const QString &);
void iterateItems(QTreeWidgetItem *, int);
};
#endif