Dump Python Extension

This commit is contained in:
ouv 2008-10-31 13:41:04 +00:00
parent 7b09f5b72c
commit 386d271df8
3 changed files with 8 additions and 8 deletions

View File

@ -35,11 +35,11 @@
#include <utilities.h> #include <utilities.h>
// SALOME GUI includes // SALOME GUI includes
#include <QtxIntSpinBox.h>
#include <SUIT_Session.h> #include <SUIT_Session.h>
#include <SUIT_MessageBox.h> #include <SUIT_MessageBox.h>
#include <SUIT_ResourceMgr.h> #include <SUIT_ResourceMgr.h>
#include <LightApp_Application.h> #include <LightApp_Application.h>
#include <SalomeApp_IntSpinBox.h>
// Qt includes // Qt includes
#include <QFrame> #include <QFrame>
@ -206,7 +206,7 @@ QFrame* SMESHGUI_GenericHypothesisCreator::buildStdFrame()
{ {
case QVariant::Int: case QVariant::Int:
{ {
QtxIntSpinBox* sb = new QtxIntSpinBox( GroupC1 ); SalomeApp_IntSpinBox* sb = new SalomeApp_IntSpinBox( GroupC1 );
sb->setObjectName( (*anIt).myName ); sb->setObjectName( (*anIt).myName );
attuneStdWidget( sb, i ); attuneStdWidget( sb, i );
sb->setValue( (*anIt).myValue.toInt() ); sb->setValue( (*anIt).myValue.toInt() );
@ -269,9 +269,9 @@ bool SMESHGUI_GenericHypothesisCreator::getStdParamFromDlg( ListOfStdParams& par
for( ; anIt!=aLast; anIt++ ) for( ; anIt!=aLast; anIt++ )
{ {
item.myName = (*anIt)->objectName(); item.myName = (*anIt)->objectName();
if( (*anIt)->inherits( "QtxIntSpinBox" ) ) if( (*anIt)->inherits( "SalomeApp_IntSpinBox" ) )
{ {
QtxIntSpinBox* sb = ( QtxIntSpinBox* )( *anIt ); SalomeApp_IntSpinBox* sb = ( SalomeApp_IntSpinBox* )( *anIt );
item.myValue = sb->value(); item.myValue = sb->value();
params.append( item ); params.append( item );
} }

View File

@ -35,7 +35,7 @@
// purpose : constructor of specific widget accepting floats in double precision. // purpose : constructor of specific widget accepting floats in double precision.
//================================================================================= //=================================================================================
SMESHGUI_SpinBox::SMESHGUI_SpinBox( QWidget* parent ) SMESHGUI_SpinBox::SMESHGUI_SpinBox( QWidget* parent )
: QtxDoubleSpinBox( parent ) : SalomeApp_DoubleSpinBox( parent )
{ {
} }
@ -90,7 +90,7 @@ QString SMESHGUI_SpinBox::GetString() const
//================================================================================= //=================================================================================
QLineEdit* SMESHGUI_SpinBox::editor() const QLineEdit* SMESHGUI_SpinBox::editor() const
{ {
return QtxDoubleSpinBox::lineEdit(); return SalomeApp_DoubleSpinBox::lineEdit();
} }
//================================================================================= //=================================================================================

View File

@ -30,7 +30,7 @@
#include "SMESH_SMESHGUI.hxx" #include "SMESH_SMESHGUI.hxx"
// SALOME GUI includes // SALOME GUI includes
#include <QtxDoubleSpinBox.h> #include <SalomeApp_DoubleSpinBox.h>
#define COORD_MIN -1e+15 #define COORD_MIN -1e+15
#define COORD_MAX +1e+15 #define COORD_MAX +1e+15
@ -43,7 +43,7 @@ class QDoubleValidator;
// class : SMESHGUI_SpinBox // class : SMESHGUI_SpinBox
// purpose : Derivated from QtxDoubleSpinBox class // purpose : Derivated from QtxDoubleSpinBox class
//================================================================================= //=================================================================================
class SMESHGUI_EXPORT SMESHGUI_SpinBox : public QtxDoubleSpinBox class SMESHGUI_EXPORT SMESHGUI_SpinBox : public SalomeApp_DoubleSpinBox
{ {
Q_OBJECT Q_OBJECT