28 #include <QtGui/QGridLayout>
29 #include <QtGui/QLabel>
30 #include <QtGui/QVBoxLayout>
31 #include <QtGui/QHBoxLayout>
37 QTabWidget * parentTab )
39 QWidget ( parentTab ) ,
44 QVBoxLayout * placement =
new QVBoxLayout (
this ) ;
48 QHBoxLayout * elmts_hbl =
new QHBoxLayout ( FElements ) ;
50 QWidget * pElmts =
new QWidget ();
51 QVBoxLayout * pElmtsLayout =
new QVBoxLayout ( pElmts ) ;
53 FENormale =
new QCheckBox (
"Normal ( Meta-F9 )" ) ;
54 pElmtsLayout -> addWidget( FENormale );
56 connect ( FENormale , SIGNAL ( clicked ( ) ) ,
59 FECoutures =
new QCheckBox (
"Sews (F9)" ) ;
60 pElmtsLayout -> addWidget( FECoutures );
62 connect ( FECoutures , SIGNAL ( clicked ( ) ) ,
65 FESommets =
new QCheckBox (
"Vertices (F10)" ) ;
66 pElmtsLayout -> addWidget( FESommets );
68 connect ( FESommets , SIGNAL ( clicked ( ) ) ,
71 FEFacesPleines =
new QCheckBox (
"Faces filled (F11)" );
72 pElmtsLayout -> addWidget( FEFacesPleines );
74 connect ( FEFacesPleines , SIGNAL ( clicked ( ) ) ,
82 QHBoxLayout * grp_hbl =
new QHBoxLayout ( bgroup ) ;
84 QWidget * pAffich =
new QWidget ();
85 QVBoxLayout * plcmtAffich =
new QVBoxLayout ( pAffich ) ;
87 FECoulGlobale =
new QRadioButton(
"inactive" );
88 FECouleursAleatoire =
new QRadioButton(
"of faces" );
89 FECoulVolumesAleatoire =
new QRadioButton(
"of volumes" );
91 FECouleursAleatoire -> setChecked(
true);
93 plcmtAffich -> addWidget( FECoulGlobale );
94 plcmtAffich -> addWidget( FECouleursAleatoire );
95 plcmtAffich -> addWidget( FECoulVolumesAleatoire );
97 connect ( FECoulGlobale, SIGNAL ( toggled (
bool ) ) ,
100 connect ( FECouleursAleatoire , SIGNAL ( toggled (
bool ) ) ,
103 connect ( FECoulVolumesAleatoire, SIGNAL ( toggled (
bool ) ) ,
106 connect ( FECoulGlobale, SIGNAL ( toggled (
bool ) ) ,
112 QVBoxLayout * grp2_hbl =
new QVBoxLayout ( bgroup2 ) ;
114 FECoulTopologie =
new QRadioButton(
"topology" );
115 FECoulGeometry =
new QRadioButton( *
HTML::decode(
"geometry") );
117 grp2_hbl -> addWidget( FECoulTopologie );
119 #ifdef MODULE_ARCHITECTURE
120 FECoulSemantique =
new QRadioButton( *
HTML::decode(
"semantic") );
121 grp2_hbl -> addWidget( FECoulSemantique );
122 connect (FECoulSemantique , SIGNAL ( clicked ( ) ) ,
123 this , SLOT (callbackCoulSemantique( ) ) ) ;
126 grp2_hbl -> addWidget( FECoulGeometry );
128 FECoulTopologie -> setChecked(
true);
130 connect (FECoulTopologie , SIGNAL ( clicked ( ) ) ,
133 connect (FECoulGeometry , SIGNAL ( clicked ( ) ) ,
136 grp_hbl -> addWidget(pAffich);
137 grp_hbl -> addWidget(bgroup2);
140 elmts_hbl -> addWidget( pElmts, 0, Qt::AlignLeft );
141 elmts_hbl -> addWidget( bgroup, 0, Qt::AlignLeft );
142 elmts_hbl -> addSpacing( 40 );
145 QWidget* widget =
new QWidget ;
146 QHBoxLayout* wid_hbl =
new QHBoxLayout(widget);
149 FGrille =
new QGroupBox (
"Grid (F12)" ) ;
150 FGrille -> setCheckable (
true );
152 QVBoxLayout* gri_vbl =
new QVBoxLayout(FGrille);
154 QWidget * pTaille =
new QWidget ;
155 QHBoxLayout * plcmtTaille =
new QHBoxLayout ( pTaille ) ;
156 plcmtTaille -> setSpacing ( 0 );
158 FSaisieTaille =
new QSpinBox;
159 FSaisieTaille -> setMinimum ( 0 );
160 FSaisieTaille -> setMaximum ( 1000 );
161 FSaisieTaille -> setAccelerated(
true);
163 plcmtTaille -> addWidget (
new QLabel (
"Size: " ), 0, Qt::AlignLeft ) ;
164 plcmtTaille -> addWidget ( FSaisieTaille, 1, Qt::AlignLeft ) ;
165 gri_vbl -> addWidget( pTaille );
167 QWidget * pPlan =
new QWidget ( FGrille ) ;
168 QGridLayout * plcmtPlan =
new QGridLayout ( pPlan );
170 FPlanXY =
new QCheckBox (
"Plane XY" ) ;
171 FValOx =
new QCheckBox (
"Positive values over Ox" ) ;
173 FPlanXZ =
new QCheckBox (
"Plan XZ" ) ;
174 FValOy =
new QCheckBox (
"Positive values over Oy" ) ;
176 FPlanYZ =
new QCheckBox (
"Plan YZ" ) ;
177 FValOz =
new QCheckBox (
"Positive values over Oz" ) ;
179 plcmtPlan -> addWidget ( FPlanXY , 0 , 0 ) ;
180 plcmtPlan -> addWidget ( FValOx , 0 , 1 ) ;
181 plcmtPlan -> addWidget ( FPlanXZ , 1 , 0 ) ;
182 plcmtPlan -> addWidget ( FValOy , 1 , 1 ) ;
183 plcmtPlan -> addWidget ( FPlanYZ , 2 , 0 ) ;
184 plcmtPlan -> addWidget ( FValOz , 2 , 1 ) ;
186 gri_vbl -> addWidget( pPlan );
189 FPlacage =
new QGroupBox (
"Placage" ) ;
190 QVBoxLayout * plc_vbl =
new QVBoxLayout(FPlacage);
192 FOrientation =
new QCheckBox (
"Orientation " ) ;
193 FTaille =
new QCheckBox (
"Size " ) ;
194 FPosition =
new QCheckBox (
"Position " ) ;
196 plc_vbl -> setSpacing ( 0 ) ;
197 plc_vbl -> addWidget ( FOrientation ) ;
198 plc_vbl -> addWidget ( FTaille ) ;
199 plc_vbl -> addWidget ( FPosition ) ;
202 FAffAxes =
new QCheckBox (
"Display axis (F12)" ) ;
204 wid_hbl -> addWidget ( FGrille ) ;
205 wid_hbl -> addWidget ( FPlacage ) ;
207 placement -> addWidget ( FElements ) ;
208 placement -> addWidget ( widget ) ;
209 placement -> addWidget ( FAffAxes );
212 connect ( FGrille , SIGNAL ( clicked ( ) ) ,
215 connect ( FAffAxes , SIGNAL ( clicked ( ) ) ,
218 connect ( FSaisieTaille , SIGNAL ( valueChanged (
int ) ) ,
221 connect ( FPlanXY , SIGNAL ( clicked ( ) ) ,
224 connect ( FPlanXZ , SIGNAL ( clicked ( ) ) ,
227 connect ( FPlanYZ , SIGNAL ( clicked ( ) ) ,
230 connect ( FValOx , SIGNAL ( clicked ( ) ) ,
233 connect ( FValOy , SIGNAL ( clicked ( ) ) ,
236 connect ( FValOz , SIGNAL ( clicked ( ) ) ,
239 connect ( FOrientation , SIGNAL ( clicked ( ) ) ,
242 connect ( FTaille , SIGNAL ( clicked ( ) ) ,
245 connect ( FPosition , SIGNAL ( clicked ( ) ) ,
255 #ifdef MODULE_ARCHITECTURE
256 void OptionsAffichage :: hideSemantiqueColoration ( )
258 if (FParent -> getParameterArchi() -> isModeArchi())
260 FECoulSemantique -> setVisible(
true);
261 FECoulSemantique -> setChecked ( FParent -> getCoulSemantique() );
266 if (FECoulSemantique -> isChecked())
270 FParent -> repaint ( ) ;
272 FECoulSemantique -> setVisible(
false);
275 #endif // MODULE_ARCHITECTURE
296 FECoulTopologie -> setChecked (
297 #ifdef MODULE_ARCHITECTURE
298 (!(FParent -> getCoulSemantique()))&&
302 FECoulGeometry -> setChecked (
303 #ifdef MODULE_ARCHITECTURE
304 (!(FParent -> getCoulSemantique()))&&
308 #ifdef MODULE_ARCHITECTURE
309 FECoulSemantique -> setChecked ( FParent -> getCoulSemantique() );
318 FSaisieTaille -> setValue( FParent -> getParameterGrid ( ) -> getLGGrid ( ) ) ;
320 FPlanXY -> setChecked ( FParent -> getParameterGrid ( ) -> getDisplayGridXY ( ) ) ;
321 FPlanXZ -> setChecked ( FParent -> getParameterGrid ( ) -> getDisplayGridXZ ( ) ) ;
322 FPlanYZ -> setChecked ( FParent -> getParameterGrid ( ) -> getDisplayGridYZ ( ) ) ;
324 FValOx -> setChecked ( FParent -> getParameterGrid ( ) -> getDisplayPositiveGridX ( ) ) ;
325 FValOy -> setChecked ( FParent -> getParameterGrid ( ) -> getDisplayPositiveGridY ( ) ) ;
326 FValOz -> setChecked ( FParent -> getParameterGrid ( ) -> getDisplayPositiveGridZ ( ) ) ;
328 CParameterOperations * p = FParent -> getControler ( ) -> getParameterOperations ( ) ;
331 setScale ( p -> getScaleCells ( ) ) ;
334 FParent -> repaint ( ) ;
414 #ifdef MODULE_ARCHITECTURE
416 void OptionsAffichage :: callbackCoulSemantique( )
425 void OptionsAffichage :: setCoulSemantique()
427 FParent -> setCoulSemantique () ;
431 bool OptionsAffichage :: getCoulSemantique( )
const
434 return FECoulSemantique -> isChecked ( );
436 return ! (FECoulSemantique -> isChecked ( ) ) ;
545 setScale ( FTaille -> isChecked ( ) ) ;
566 return FESommets -> isChecked ( ) ;
568 return ! (FESommets -> isChecked ( ) ) ;
575 return FECoutures -> isChecked ( ) ;
577 return ! ( FECoutures -> isChecked ( ) );
583 return FENormale -> isChecked ( ) ;
585 return ! ( FENormale -> isChecked ( ) ) ;
591 return FEFacesPleines -> isChecked ( ) ;
593 return ! ( FEFacesPleines -> isChecked ( ) ) ;
599 return FECouleursAleatoire -> isChecked ( );
601 return ! (FECouleursAleatoire -> isChecked ( ) ) ;
607 return FECoulVolumesAleatoire -> isChecked ( );
609 return ! (FECoulVolumesAleatoire -> isChecked ( ) ) ;
614 return FECoulGlobale -> isChecked ( );
616 return ! (FECoulGlobale -> isChecked ( ) ) ;
622 return FECoulTopologie -> isChecked ( );
624 return ! (FECoulTopologie -> isChecked ( ) ) ;
631 return FECoulGeometry -> isChecked ( );
633 return ! (FECoulGeometry -> isChecked ( ) ) ;
640 return FGrille -> isChecked ( );
642 return ! (FGrille -> isChecked ( ) ) ;
648 return FAffAxes -> isChecked ( );
650 return ! ( FAffAxes -> isChecked ( ) ) ;
655 return FSaisieTaille -> value ( ) ;
660 return FPlanXY -> isChecked ( );
665 return FPlanXZ -> isChecked ( );
670 return FPlanYZ -> isChecked ( );
675 return FValOx -> isChecked ( );
680 return FValOy -> isChecked ( );
685 return FValOz -> isChecked ( );
749 FOrientation -> setChecked ( b ) ;
750 FParent -> getControler ( ) ->getParameterOperations ( ) -> setRotateCells ( b ) ;
755 FTaille -> setChecked ( b ) ;
756 FParent -> getControler ( ) -> getParameterOperations ( ) -> setScaleCells ( b ) ;
761 FPosition -> setChecked ( b ) ;
762 FParent -> getControler ( ) -> getParameterOperations ( ) -> setTranslateCells ( b ) ;
773 FParent -> repaint ( ) ;
785 FGrille -> setChecked ( b ) ;
786 FSaisieTaille -> setEnabled ( b ) ;
787 FPlanXY -> setEnabled ( b ) ;
788 FValOx -> setEnabled ( b ) ;
789 FPlanXZ -> setEnabled ( b ) ;
790 FValOy -> setEnabled ( b ) ;
791 FPlanYZ -> setEnabled ( b ) ;
792 FValOz -> setEnabled ( b ) ;
798 FAffAxes -> setChecked ( b ) ;
806 FSaisieTaille -> setValue ( s ) ;
807 FParent -> getParameterGrid ( ) -> setLGGrid ( s ) ;
812 FPlanXY -> setChecked ( b ) ;
813 FParent -> getParameterGrid ( ) -> setDisplayGridXY ( b ) ;
818 FPlanXZ -> setChecked ( b ) ;
819 FParent -> getParameterGrid ( ) -> setDisplayGridXZ ( b ) ;
824 FPlanYZ -> setChecked ( b ) ;
825 FParent -> getParameterGrid ( ) -> setDisplayGridYZ ( b ) ;
830 FValOx -> setChecked ( b ) ;
831 FParent -> getParameterGrid ( ) -> setDisplayPositiveGridX ( b ) ;
836 FValOy -> setChecked ( b ) ;
837 FParent -> getParameterGrid ( ) -> setDisplayPositiveGridY ( b ) ;
842 FValOz -> setChecked ( b ) ;
843 FParent -> getParameterGrid ( ) -> setDisplayPositiveGridZ ( b ) ;