#include "GEOMBase_Skeleton.h"
#include "GEOMBase.h"
+#include <DlgRef.h>
#include <GeometryGUI.h>
-#include <GEOM_DlgRef.h>
#include <SalomeApp_Application.h>
#include <LightApp_Application.h>
#include <SUIT_MessageBox.h>
#include <QKeyEvent>
+#include <QSpinBox>
#include <QDoubleSpinBox>
-using namespace std;
-
//=================================================================================
// class : GEOMBase_Skeleton()
// purpose : Constructs a GEOMBase_Skeleton which is a child of 'parent', with the
topLayout->setMargin( 0 ); topLayout->setSpacing( 0 );
topLayout->addWidget( myMainFrame );
+ myMainFrame->GroupBoxName->setTitle( tr( "GEOM_RESULT_NAME_GRP" ) );
+ myMainFrame->NameLabel->setText( tr( "GEOM_RESULT_NAME_LBL" ) );
buttonCancel()->setText( tr( "GEOM_BUT_CLOSE" ) );
buttonOk()->setText( tr( "GEOM_BUT_OK" )) ;
buttonApply()->setText( tr( "GEOM_BUT_APPLY" ) );
myMainFrame->RadioButton4->hide();
}
+void GEOMBase_Skeleton::initSpinBox( QSpinBox* spinBox,
+ int min, int max, int step )
+{
+ spinBox->setRange( min, max );
+ spinBox->setSingleStep( step );
+}
+
void GEOMBase_Skeleton::initSpinBox( QDoubleSpinBox* spinBox,
double min, double max,
double step, int decimals )
//=================================================================================
int GEOMBase_Skeleton::getConstructorId() const
{
- /*if ( GroupConstructors != NULL && GroupConstructors->selected() != NULL )
- return GroupConstructors->id( GroupConstructors->selected() );
- return -1;*/
-
- if ( myRBGroup != NULL )
+ if ( myRBGroup )
return myRBGroup->checkedId();
return -1;
}
+void GEOMBase_Skeleton::setConstructorId( const int id )
+{
+ if ( myRBGroup && myRBGroup->button( id ) )
+ myRBGroup->button( id )->setChecked( true );
+}
+
//=================================================================================
// function : ClickOnHelp()
// purpose :