#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGridLayout>
-#include <qvariant.h>
+#include <QVariant>
#include <QCheckBox>
#include <QKeyEvent>
+#include <QButtonGroup>
#define SPACING 6
#define MARGIN 11
/***************************************************************/
GroupConstructors = new QGroupBox(buttonGrTitle, this);
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout(GroupConstructors);
GroupConstructorsLayout->setSpacing(SPACING);
GroupConstructorsLayout->setMargin(MARGIN);
Constructor1->setChecked(true);
GroupConstructorsLayout->addWidget(Constructor1);
- GroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton( Constructor1, 0 );
/***************************************************************/
GroupC1 = new QGroupBox(grBoxTitle, this);
#include <QCheckBox>
#include <QTableWidget>
#include <QKeyEvent>
+#include <QButtonGroup>
// STL includes
#include <vector>
/***************************************************************/
GroupConstructors = new QGroupBox(constructorGrTitle, this);
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* aGroupConstructorsLayout = new QHBoxLayout(GroupConstructors);
aGroupConstructorsLayout->setSpacing(SPACING);
aGroupConstructorsLayout->setMargin(MARGIN);
myRadioButton1 = new QRadioButton(GroupConstructors);
myRadioButton1->setIcon(image0);
aGroupConstructorsLayout->addWidget(myRadioButton1);
- aGroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton(myRadioButton1, 0);
/***************************************************************/
GroupArguments = new QGroupBox(argumentsGrTitle, this);
// clear table
for ( int row = 0; row < myTable->rowCount(); row++ )
for ( int col = 0; col < myTable->columnCount(); col++ )
- myTable->item(row, col)->setText("");
+ if ( QTableWidgetItem* aTWI = myTable->item(row, col) ) aTWI->setText("");
myTable->setEnabled( false );
}
#include <QCheckBox>
#include <QComboBox>
#include <QKeyEvent>
+#include <QButtonGroup>
// STL includes
#include <set>
/***************************************************************/
GroupConstructors = new QGroupBox(tr("COMPOUND"), this);
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout(GroupConstructors);
GroupConstructorsLayout->setSpacing(SPACING);
GroupConstructorsLayout->setMargin(MARGIN);
Constructor1->setIcon(image0);
Constructor1->setChecked(true);
GroupConstructorsLayout->addWidget(Constructor1);
- GroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton(Constructor1, 0);
/***************************************************************/
GroupName = new QGroupBox(tr("RESULT_NAME"), this);
#include <QGridLayout>
#include <QHBoxLayout>
#include <QVBoxLayout>
+#include <QButtonGroup>
// VTK includes
#include <vtkProperty.h>
// constructor
QGroupBox* aPixGrp = new QGroupBox(tr("CONSTRUCTOR"), aFrame);
+ QButtonGroup* aBtnGrp = new QButtonGroup(this);
QHBoxLayout* aPixGrpLayout = new QHBoxLayout(aPixGrp);
aPixGrpLayout->setMargin(MARGIN); aPixGrpLayout->setSpacing(SPACING);
aRBut->setIcon(iconCompute);
aRBut->setChecked(true);
aPixGrpLayout->addWidget(aRBut);
+ aBtnGrp->addButton(aRBut, 0);
// Mesh name
#include <QVBoxLayout>
#include <QGridLayout>
#include <QKeyEvent>
+#include <QButtonGroup>
#define SPACING 6
#define MARGIN 11
tr("SMESH_MERGE_NODES"),
this);
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout(GroupConstructors);
GroupConstructorsLayout->setSpacing(SPACING);
GroupConstructorsLayout->setMargin(MARGIN);
RadioButton->setIcon(myAction == 1 ? IconMergeElems : IconMergeNodes);
RadioButton->setChecked(true);
GroupConstructorsLayout->addWidget(RadioButton);
- GroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton(RadioButton, 0);
/***************************************************************/
// Controls for mesh defining
#include <QLabel>
#include <QRadioButton>
#include <QCheckBox>
+#include <QButtonGroup>
// VTK includes
#include <vtkProperty.h>
// constructor
QGroupBox* aPixGrp = new QGroupBox(tr("MESH_PASS_THROUGH_POINT"), aFrame);
+ QButtonGroup* aBtnGrp = new QButtonGroup(this);
QHBoxLayout* aPixGrpLayout = new QHBoxLayout(aPixGrp);
aPixGrpLayout->setMargin(MARGIN);
aPixGrpLayout->setSpacing(SPACING);
aRBut->setIcon(iconMoveNode);
aRBut->setChecked(true);
aPixGrpLayout->addWidget(aRBut);
+ aBtnGrp->addButton(aRBut, 0);
// coordinates
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QKeyEvent>
+#include <QButtonGroup>
// IDL includes
#include <SALOMEconfig.h>
//------------------------------------------------------------
QGroupBox* aPixGrp = new QGroupBox(tr("MESH_NODE"), aFrame);
+ QButtonGroup* aBtnGrp = new QButtonGroup(this);
QHBoxLayout* aPixGrpLayout = new QHBoxLayout(aPixGrp);
aPixGrpLayout->setSpacing(SPACING);
aPixGrpLayout->setMargin(MARGIN);
aRBut->setChecked(true);
aPixGrpLayout->addWidget(aRBut);
- aPixGrpLayout->addStretch();
+ aBtnGrp->addButton(aRBut, 0);
//------------------------------------------------------------
QGroupBox* anIdGrp = new QGroupBox(tr("SMESH_MOVE"), aFrame);
if (myEntityTypeGrp)
connect(myEntityTypeGrp, SIGNAL(buttonClicked(int)), SLOT(on3d2dChanged(int)));
- connect(myListBox, SIGNAL(selectionChanged()), SLOT(onListSelectionChanged()));
+ connect(myListBox, SIGNAL(itemSelectionChanged()), SLOT(onListSelectionChanged()));
onSelectionDone();
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QKeyEvent>
+#include <QButtonGroup>
// IDL includes
#include <SALOMEconfig.h>
{
setModal( false );
setAttribute( Qt::WA_DeleteOnClose, true );
- setWindowTitle( "MESH_NODE_TITLE" );
+ setWindowTitle( tr("MESH_NODE_TITLE") );
setSizeGripEnabled( true );
mySimulation = new SMESH::TNodeSimulation( SMESH::GetViewWindow( mySMESHGUI ) );
/***************************************************************/
GroupConstructors = new QGroupBox( tr( "MESH_NODE" ), this );
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout( GroupConstructors );
GroupConstructorsLayout->setSpacing( SPACING );
GroupConstructorsLayout->setMargin( MARGIN );
Constructor1 = new QRadioButton( GroupConstructors );
Constructor1->setIcon( image0 );
Constructor1->setChecked( true );
-
+
GroupConstructorsLayout->addWidget( Constructor1 );
- GroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton( Constructor1, 0 );
/***************************************************************/
GroupCoordinates = new QGroupBox( tr( "SMESH_COORDINATES" ), this );
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QKeyEvent>
+#include <QButtonGroup>
// IDL includes
#include <SALOMEconfig.h>
/***************************************************************/
GroupConstructors = new QGroupBox(tr("SMESH_ELEMENTS"), this);
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout(GroupConstructors);
GroupConstructorsLayout->setSpacing(SPACING);
GroupConstructorsLayout->setMargin(MARGIN);
Constructor1->setChecked(true);
GroupConstructorsLayout->addWidget(Constructor1);
- GroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton(Constructor1, 0);
/***************************************************************/
GroupC1 = new QGroupBox(tr("SMESH_REMOVE"), this);
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QKeyEvent>
+#include <QButtonGroup>
// IDL includes
#include <SALOMEconfig.h>
/***************************************************************/
GroupConstructors = new QGroupBox(tr("SMESH_NODES"), this);
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout(GroupConstructors);
GroupConstructorsLayout->setSpacing(SPACING);
GroupConstructorsLayout->setMargin(MARGIN);
Constructor1->setChecked(true);
GroupConstructorsLayout->addWidget(Constructor1);
- GroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton(Constructor1, 0);
/***************************************************************/
GroupC1 = new QGroupBox(tr("SMESH_REMOVE"), this);
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QKeyEvent>
+#include <QButtonGroup>
// IDL includes
#include <SALOMEconfig.h>
"renumbering_nodes_and_elements_page.html#renumbering_nodes_anchor" :
"renumbering_nodes_and_elements_page.html#renumbering_elements_anchor";
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout(GroupConstructors);
GroupConstructorsLayout->setSpacing(SPACING);
GroupConstructorsLayout->setMargin(MARGIN);
Constructor1->setChecked(true);
GroupConstructorsLayout->addWidget(Constructor1);
- GroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton(Constructor1, 0);
/***************************************************************/
GroupMesh = new QGroupBox(tr("SMESH_RENUMBERING"), this);
/***************************************************************/
GroupConstructors = new QGroupBox(tr("SMESH_ROTATION"), this);
+ QButtonGroup* ButtonGroup = new QButtonGroup(this);
QHBoxLayout* GroupConstructorsLayout = new QHBoxLayout(GroupConstructors);
GroupConstructorsLayout->setSpacing(SPACING);
GroupConstructorsLayout->setMargin(MARGIN);
RadioButton1->setIcon(image0);
GroupConstructorsLayout->addWidget(RadioButton1);
- GroupConstructorsLayout->addStretch();
+ ButtonGroup->addButton(RadioButton1, 0);
/***************************************************************/
GroupArguments = new QGroupBox(tr("SMESH_ARGUMENTS"), this);
SpinBox_Angle = new SMESHGUI_SpinBox(GroupArguments);
// action switch
- ActionBox = new QGroupBox(tr("ACTION"), GroupArguments);
+ ActionBox = new QGroupBox(GroupArguments);
ActionGroup = new QButtonGroup(GroupArguments);
QVBoxLayout* ActionBoxLayout = new QVBoxLayout(ActionBox);
ActionBoxLayout->setSpacing(SPACING);
GroupMirrorLayout->addWidget(SpinBox_DZ, 1, 7);
// switch of action type
- ActionBox = new QGroupBox(tr("ACTION"), GroupArguments);
+ ActionBox = new QGroupBox(GroupArguments);
ActionGroup = new QButtonGroup(GroupArguments);
QVBoxLayout* ActionBoxLayout = new QVBoxLayout(ActionBox);
ActionBoxLayout->addSpacing(SPACING);
SpinBox2_3 = new SMESHGUI_SpinBox(GroupArguments);
// switch of action type
- ActionBox = new QGroupBox(tr("ACTION"), GroupArguments);
+ ActionBox = new QGroupBox(GroupArguments);
ActionGroup = new QButtonGroup(GroupArguments);
QVBoxLayout* ActionBoxLayout = new QVBoxLayout(ActionBox);
ActionBoxLayout->addSpacing(SPACING);