-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcvg_page_set.cpp
155 lines (134 loc) · 3.44 KB
/
cvg_page_set.cpp
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/******************************************************************************************
**** PROGRAM: cvg_page_set.cpp
**** AUTHOR: Chengan 4/01/05
**** [email protected]
******************************************************************************************/
#include "cvg_page_set.h"
#include "icons_test.h"
#include "cvg_info_wid.h"
#include "cvg_maindia.h"
#include "cvg_info_level_wid.h"
#include "wisim.h"
CvgLayerPage::CvgLayerPage( NetworkClass* np_param, CvgAnaDia* v_cvg_dia )
: np( np_param )
{
extension = false; //TRUE;
sub_item_name = QString( "xxx" );
create( np_param, v_cvg_dia );
}
CvgLayerPage::~CvgLayerPage()
{
if (m_cvg_wid)
delete m_cvg_wid;
if (m_cvg_item)
delete m_cvg_item;
}
void CvgLayerPage::setNameSubItem( QString& sb )
{
sub_item_name = sb;
}
QString CvgLayerPage::nameSubItem( ) const
{
return sub_item_name;
}
QString CvgLayerPage::typeSubItem( ) const
{
return QString( "Layer");
}
/*
QIconSet CvgLayerPage::cvgIcon(int i ) const
{
return QPixmap( QString::null );
}
*/
void CvgLayerPage::create( NetworkClass* np_param, CvgAnaDia* v_cvg_dia )
{
m_cvg_wid = new CvgInfoLayerWid( np );
Q3ListViewItem* xxx = v_cvg_dia->top_level_item;
m_cvg_item = new Q3ListViewItem(xxx , 0);
v_cvg_dia->top_level_item->insertItem( m_cvg_item );
}
/*
level type of coverage
*/
CvgLevelPage::CvgLevelPage( NetworkClass* np_param, CvgAnaDia* v_cvg_dia )
: np( np_param )
{
extension = false; //TRUE;
sub_item_name = QString( "xxx" );
create( np_param, v_cvg_dia );
}
CvgLevelPage::~CvgLevelPage()
{
if (m_cvg_wid)
delete m_cvg_wid;
if (m_cvg_item)
delete m_cvg_item;
}
void CvgLevelPage::setNameSubItem( QString& sb )
{
sub_item_name = sb;
}
QString CvgLevelPage::nameSubItem( ) const
{
return sub_item_name;
}
QString CvgLevelPage::typeSubItem( ) const
{
return QString( "level");
}
/*
QIconSet CvgLevelPage::cvgIcon(int i ) const
{
return QPixmap( QString::null );
}
*/
void CvgLevelPage::create( NetworkClass* np_param, CvgAnaDia* v_cvg_dia )
{
m_cvg_wid = new CvgInfoLevelWid(np);
Q3ListViewItem* xxx = v_cvg_dia->top_level_item;
m_cvg_item = new Q3ListViewItem(xxx , 0); //define in interface head file
// v_cvg_dia->top_level_item->insertItem( m_cvg_item ); //modifing
}
// ----------------------------
// Memebers of CvgPAPage class
// ----------------------------
CvgPAPage::CvgPAPage( NetworkClass* np_param, bool bHasThrd, CvgAnaDia* v_cvg_dia )
: np( np_param )
{
extension = false; //TRUE;
sub_item_name = QString( "xxx" );
create( np_param, bHasThrd, v_cvg_dia );
}
CvgPAPage::~CvgPAPage()
{
if (m_cvg_wid)
delete m_cvg_wid;
if (m_cvg_item)
delete m_cvg_item;
}
void CvgPAPage::setNameSubItem( QString& sb )
{
sub_item_name = sb;
}
QString CvgPAPage::nameSubItem( ) const
{
return sub_item_name;
}
QString CvgPAPage::typeSubItem( ) const
{
return QString( "PA");
}
/*
QIconSet CvgPAPage::cvgIcon(int i ) const
{
return QPixmap( QString::null );
}
*/
void CvgPAPage::create( NetworkClass* np_param, bool bHasThrd, CvgAnaDia* v_cvg_dia )
{
m_cvg_wid = new CvgInfoPAWid( np, bHasThrd );
Q3ListViewItem* xxx = v_cvg_dia->top_level_item;
m_cvg_item = new Q3ListViewItem(xxx , 0);
v_cvg_dia->top_level_item->insertItem( m_cvg_item );
}