]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Temporarely remove Attractor button from GUI
authorgdd <gdd>
Wed, 22 Apr 2009 08:49:02 +0000 (08:49 +0000)
committergdd <gdd>
Wed, 22 Apr 2009 08:49:02 +0000 (08:49 +0000)
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx

index 1f200cd0533292b7f1fce21598045e385166998f..8363752b2574d5bc5aaa4813526cd20e681c8382 100644 (file)
@@ -101,7 +101,16 @@ enum {
   SMP_NB_COLUMNS
 };
 
-
+enum {
+  SMP_BTNS,
+//   SMP_ATTRACTOR_BTN,
+//   SMP_SEPARATOR1,
+  SMP_SURFACE_BTN,
+  SMP_EDGE_BTN,
+  SMP_POINT_BTN,
+  SMP_SEPARATOR2,
+  SMP_REMOVE_BTN,
+}
 
 typedef struct {
   PyObject_HEAD
@@ -503,30 +512,31 @@ QFrame* BLSURFPluginGUI_HypothesisCreator::buildFrame()
   mySizeMapTable->setAlternatingRowColors(true);
   mySizeMapTable->verticalHeader()->hide();
 
+/*
   addAttractorButton = new QPushButton(tr("BLSURF_SM_ATTRACTOR"),mySmpGroup);
-  anSmpLayout->addWidget(addAttractorButton, 1, 1, 1, 1);
+  anSmpLayout->addWidget(addAttractorButton, SMP_ATTRACTOR_BTN, 1, 1, 1);
 
   QFrame *line = new QFrame(mySmpGroup);
   line->setFrameShape(QFrame::HLine);
   line->setFrameShadow(QFrame::Sunken);
-  anSmpLayout->addWidget(line, 2, 1, 1, 1);
-
+  anSmpLayout->addWidget(line, SMP_SEPARATOR1, 1, 1, 1);
+*/
   addSurfaceButton = new QPushButton(tr("BLSURF_SM_SURFACE"),mySmpGroup);
-  anSmpLayout->addWidget(addSurfaceButton, 3, 1, 1, 1);
+  anSmpLayout->addWidget(addSurfaceButton, SMP_SURFACE_BTN, 1, 1, 1);
 
   addEdgeButton = new QPushButton(tr("BLSURF_SM_EDGE"),mySmpGroup);
-  anSmpLayout->addWidget(addEdgeButton, 4, 1, 1, 1);
+  anSmpLayout->addWidget(addEdgeButton, SMP_EDGE_BTN, 1, 1, 1);
 
   addPointButton = new QPushButton(tr("BLSURF_SM_POINT"),mySmpGroup);
-  anSmpLayout->addWidget(addPointButton, 5, 1, 1, 1);
+  anSmpLayout->addWidget(addPointButton, SMP_POINT_BTN, 1, 1, 1);
 
   QFrame *line2 = new QFrame(mySmpGroup);
   line2->setFrameShape(QFrame::HLine);
   line2->setFrameShadow(QFrame::Sunken);
-  anSmpLayout->addWidget(line2, 6, 1, 1, 1);
+  anSmpLayout->addWidget(line2, SMP_SEPARATOR2, 1, 1, 1);
 
   removeButton = new QPushButton(tr("BLSURF_SM_REMOVE"),mySmpGroup);
-  anSmpLayout->addWidget(removeButton, 7, 1, 1, 1);
+  anSmpLayout->addWidget(removeButton, SMP_REMOVE_BTN, 1, 1, 1);
   
 
   // ---