29 #include <QtGui/QLabel>
39 GMap3d :: CControlerGMap * controler )
42 HTML::decode(
"Create Regular Polygon" ),
48 FAffNom =
new QLabel ( *
HTML::decode(
" Edge number: ") ,
this ) ;
50 FSaisieNom =
new QSpinBox (
this ) ;
51 FSaisieNom -> setMinimum ( 3 );
52 FSaisieNom -> setMaximum ( 999 );
53 FSaisieNom -> setValue ( 6 ) ;
54 FSaisieNom -> setAccelerated(
true);
58 FSaisieLon =
new FloatSpinBox ( 0.2 , 0 , 1000 , 3 , 0.5 ) ;
61 addWidget(FSaisieNom);
64 addWidget(FSaisieLon);
77 QObject::connect ( FSaisieNom , SIGNAL ( valueChanged (
int ) ) ,
this,
78 SLOT ( callbackEdgesNumber() ) ) ;
80 QObject::connect ( FSaisieLon , SIGNAL ( valueChanged (
double ) ) ,
this,
81 SLOT ( callbackEdgesLength() ) ) ;
93 FSaisieLon -> setValuef (
FControler -> getPolygonEdgesLength ( ) ) ;
101 void CreationPolygone :: callbackEdgesNumber()
107 void CreationPolygone:: callbackEdgesLength()
117 return FSaisieNom -> value ();
122 return FSaisieLon -> valuef ();