-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcvg_page_set.h
139 lines (102 loc) · 3.12 KB
/
cvg_page_set.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
/******************************************************************************************
**** PROGRAM: cvg_page_set.h
**** AUTHOR: Chengan 4/01/05
**** [email protected]
******************************************************************************************/
#ifndef CVG_PAGE_SET_H
#define CVG_PAGE_SET_H
#include <stdlib.h>
#include <qapplication.h>
#include <qimage.h>
#include <qtabwidget.h>
#include <qfont.h>
#include <qworkspace.h>
#include <q3widgetstack.h>
#include <qwidget.h>
#include <qstring.h>
#include <qicon.h>
#include <qobject.h>
#include <q3listview.h>
#include "cvg_info_wid.h"
#include "cvg_info_level_wid.h"
class NetworkClass;
class CvgAnaDia;
class CvgThrTable;
//class CvgInfoLayerWid;
//class CvgInfoLevelWid;
class CvgInterface : public QObject
{
public:
CvgInterface(){ }
virtual ~CvgInterface() {}
virtual QString name() const = 0;
virtual QString nameSubItem( ) const = 0;
virtual QString typeSubItem() const = 0;
// virtual QIconSet cvgIcon( int i ) const = 0;
int item_index;
QString sub_item_name;
//if advance item is visibiable, this value is TRUE
bool extension;
Q3ListViewItem* m_cvg_item;
};
/*
new name
class CvgLayerPage : public CvgInterface
*/
class CvgLayerPage : public CvgInterface
{
public:
CvgLayerPage( NetworkClass*, CvgAnaDia* );
~CvgLayerPage();
QString name() const { return "Coverage analysis : Layer and SIR Layer Type"; }
QIcon icon() const;
QString nameSubItem( ) const;
void setNameSubItem( QString& );
QString typeSubItem( ) const;
// QIconSet cvgIcon( int ) const; // { return QIconSet(); }
// void itemCount() { return m_item_count; }
// void itemIndex() { return m_item_index; }
void create( NetworkClass*, CvgAnaDia* );
int layer_item_index;
CvgInfoLayerWid* m_cvg_wid;
private:
NetworkClass* np;
QString sub_item_name;
};
class CvgLevelPage : public CvgInterface
{
public:
CvgLevelPage( NetworkClass*, CvgAnaDia* );
~CvgLevelPage();
QString name() const { return "Coverage analysis : Level Type"; }
QIcon icon() const;
QString nameSubItem( ) const;
void setNameSubItem( QString& );
QString typeSubItem( ) const;
// QIconSet cvgIcon( int ) const; // { return QIconSet(); }
void create( NetworkClass*, CvgAnaDia* );
int level_item_index;
CvgInfoLevelWid* m_cvg_wid; //CvgInfoWid*
private:
NetworkClass* np;
};
// A new class as an interface for display PA infomation
class CvgPAPage : public CvgInterface
{
public:
CvgPAPage( NetworkClass*, bool bHasThrd, CvgAnaDia* );
~CvgPAPage();
QString name() const { return "Coverage analysis : Level Type"; }
QIcon icon() const;
QString nameSubItem( ) const;
void setNameSubItem( QString& );
QString typeSubItem( ) const;
// QIconSet cvgIcon( int ) const; // { return QIconSet(); }
void create( NetworkClass*, bool, CvgAnaDia* );
int level_item_index;
bool bHasThrd;
CvgInfoPAWid* m_cvg_wid; //CvgInfoWid*
private:
NetworkClass* np;
};
#endif