-
Notifications
You must be signed in to change notification settings - Fork 0
/
innfosWizard.h
58 lines (49 loc) · 1.13 KB
/
innfosWizard.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
#ifndef INNFOSWIZARD_H
#define INNFOSWIZARD_H
#include <QWidget>
#include <QMap>
class InnfosWizardPage;
class QPushButton;
class InnfosWizard : public QWidget
{
Q_OBJECT
public:
typedef QMap<int,InnfosWizardPage *> WizardsMap;
explicit InnfosWizard(QWidget *parent = 0);
void addPage(InnfosWizardPage * page);
virtual ~InnfosWizard() {}
signals:
public slots:
void FindAvailablePort(int nConnectStatus);
void back();
void next();
void updateBtnStatus();
protected:
void resizeEvent(QResizeEvent *event);
private:
bool isFinal();
void Finished();
private:
int m_nCurPageId;
WizardsMap m_mPages;
QPushButton * m_pBack;
QPushButton * m_pNext;
QPushButton * m_pCancel;
};
class InnfosWizardPage : public QWidget
{
Q_OBJECT
public:
InnfosWizardPage(QWidget *parent = 0);
virtual ~InnfosWizardPage() {}
virtual bool isComplete();
static InnfosWizardPage * createPage1();
static InnfosWizardPage * createPage2();
public slots:
void SetComplete(bool bComplete);
signals:
void isCompleteChange();
private:
bool m_bIsComplete;
};
#endif // INNFOSWIZARD_H