29 #include <QtGui/QLabel>
39 GMap3d :: CControlerGMap * controler) :
44 FAffSub =
new QLabel(
" Subdivisions: " ,
this) ;
45 FAffPar =
new QLabel(*
HTML::decode(
"Parallels: ") ,
this) ;
47 FSaisiePar =
new QSpinBox(
this) ;
48 FSaisiePar -> setMinimum(1);
49 FSaisiePar -> setMaximum(1000);
50 FSaisiePar -> setAccelerated(
true);
52 FAffMer =
new QLabel(*
HTML::decode(
"Meridians : ") ,
this) ;
53 FSaisieMer =
new QSpinBox(
this) ;
54 FSaisieMer -> setMinimum(3);
55 FSaisieMer -> setMaximum(1000);
56 FSaisieMer -> setAccelerated(
true);
58 FAffFaces =
new QLabel(*
HTML::decode(
"Faces created: ") ,
60 FFace1 =
new QCheckBox(
"Face 1" ,
this) ;
61 FFace2 =
new QCheckBox(
"Face 2" ,
this) ;
65 addWidget(FSaisiePar);
68 addWidget(FSaisieMer);
85 QObject::connect(FSaisiePar , SIGNAL(valueChanged(
int)) ,
this,
86 SLOT(callbackParallels())) ;
87 QObject::connect(FSaisieMer , SIGNAL(valueChanged(
int)) ,
this,
88 SLOT(callbackMeridians())) ;
89 QObject::connect(FFace1 , SIGNAL(clicked()) ,
this ,
90 SLOT(callbackCheckedButton1())) ;
91 QObject::connect(FFace2 , SIGNAL(clicked()) ,
this ,
92 SLOT(callbackCheckedButton2())) ;
105 FSaisieMer -> setValue(
FControler -> getParameterCreation()
106 -> getCylinderNbMeridians());
107 FSaisiePar -> setValue(
FControler->getParameterCreation()
108 ->getCylinderNbParallels());
110 FFace1 -> setChecked(
FControler->getParameterCreation()
111 ->getCylinderClosedUp());
112 FFace2 -> setChecked(
FControler->getParameterCreation()
113 ->getCylinderClosedDown());
118 void CreationCylindre :: setMeridians(
int m)
120 FControler ->getParameterCreation()->setCylinderNbMeridians(m);
125 void CreationCylindre :: setParallels(
int p)
127 FControler ->getParameterCreation()->setCylinderNbParallels(p);
132 void CreationCylindre :: setClosedBorder1(
bool b)
134 FControler->getParameterCreation()->setCylinderClosedUp(b);
139 void CreationCylindre :: setClosedBorder2(
bool b)
141 FControler->getParameterCreation()->setCylinderClosedDown(b);
149 void CreationCylindre :: callbackMeridians()
151 setMeridians(FSaisieMer -> value());
154 void CreationCylindre :: callbackParallels()
156 setParallels(FSaisiePar->value());
159 void CreationCylindre :: callbackCheckedButton1()
161 setClosedBorder1(FFace1->isChecked());
164 void CreationCylindre :: callbackCheckedButton2()
166 setClosedBorder2(FFace2->isChecked());