This commit is contained in:
eap 2009-09-30 08:44:38 +00:00
parent 5b7eddf17a
commit 13c23ff6b0
4 changed files with 10 additions and 10 deletions

View File

@ -45,7 +45,7 @@ class SMESHGUI_EXPORT SMESHGUI_Dialog : public LightApp_Dialog
public:
SMESHGUI_Dialog( QWidget* = 0, const bool = false, const bool = false,
const int = OK | Close | Apply | Help );
const int = OK | Close | Apply | Help );
virtual ~SMESHGUI_Dialog();
virtual void show();

View File

@ -367,7 +367,7 @@ bool SMESHGUI_MakeNodeAtPointOp::onApply()
if ( !myMeshActor ) {
SUIT_MessageBox::warning( dlg(), tr( "SMESH_WRN_WARNING" ),
tr("INVALID_MESH") );
tr("INVALID_MESH") );
dlg()->show();
return false;
}
@ -376,7 +376,7 @@ bool SMESHGUI_MakeNodeAtPointOp::onApply()
if ( !isValid( msg ) ) { // node id is invalid
if( !msg.isEmpty() )
SUIT_MessageBox::warning( dlg(), tr( "SMESH_WRN_WARNING" ),
tr("INVALID_ID") );
tr("INVALID_ID") );
dlg()->show();
return false;
}
@ -386,7 +386,7 @@ bool SMESHGUI_MakeNodeAtPointOp::onApply()
SMESH::SMESH_Mesh_var aMesh = SMESH::GetMeshByIO(myMeshActor->getIO());
if (aMesh->_is_nil()) {
SUIT_MessageBox::information(SMESHGUI::desktop(), tr("SMESH_ERROR"),
tr("SMESHG_NO_MESH") );
tr("SMESHG_NO_MESH") );
return true;
}
SMESH::SMESH_MeshEditor_var aMeshEditor = aMesh->GetMeshEditor();

View File

@ -423,9 +423,9 @@ void SMESHGUI_SelectionOp::selected( QStringList& names,
SalomeApp_Study* _study = dynamic_cast<SalomeApp_Study*>( study() );
if( _study )
{
_PTR(SObject) obj = _study->studyDS()->FindObjectID( anIt.Value()->getEntry() );
if( obj )
names.append( obj->GetName().c_str() );
_PTR(SObject) obj = _study->studyDS()->FindObjectID( anIt.Value()->getEntry() );
if( obj )
names.append( obj->GetName().c_str() );
}
}
}

View File

@ -52,9 +52,9 @@ public:
~SMESHGUI_SpinBox();
void RangeStepAndValidator( double = -1000000.0,
double = +1000000.0,
double = 100.0,
unsigned short = 3 );
double = +1000000.0,
double = 100.0,
unsigned short = 3 );
void SetValue( double );
double GetValue() const;
QString GetString() const;