From: gdd Date: Wed, 22 Apr 2009 08:49:02 +0000 (+0000) Subject: Temporarely remove Attractor button from GUI X-Git-Tag: V5_1_sizemap_230409~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=19d6e7a8060064f2d35b79280be1eb4af6979e34;p=plugins%2Fblsurfplugin.git Temporarely remove Attractor button from GUI --- diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index 1f200cd..8363752 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -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); // ---