mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-05 21:53:27 -06:00
#7899 Python: generate properties for 'name' and 'is_checked' for NamedObject
This commit is contained in:
parent
2fc65a3b62
commit
795d9eecca
@ -18,6 +18,9 @@
|
|||||||
|
|
||||||
#include "RimCheckableNamedObject.h"
|
#include "RimCheckableNamedObject.h"
|
||||||
|
|
||||||
|
#include "cafPdmFieldScriptingCapability.h"
|
||||||
|
#include "cafPdmObjectScriptingCapability.h"
|
||||||
|
|
||||||
CAF_PDM_XML_ABSTRACT_SOURCE_INIT( RimCheckableNamedObject, "CheckableNamedObject" ); // Do not use. Abstract class
|
CAF_PDM_XML_ABSTRACT_SOURCE_INIT( RimCheckableNamedObject, "CheckableNamedObject" ); // Do not use. Abstract class
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -25,8 +28,8 @@ CAF_PDM_XML_ABSTRACT_SOURCE_INIT( RimCheckableNamedObject, "CheckableNamedObject
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimCheckableNamedObject::RimCheckableNamedObject( void )
|
RimCheckableNamedObject::RimCheckableNamedObject( void )
|
||||||
{
|
{
|
||||||
CAF_PDM_InitObject( "Checkable object", "", "", "" );
|
CAF_PDM_InitScriptableObject( "Checkable object", "", "", "" );
|
||||||
CAF_PDM_InitField( &m_isChecked, "IsChecked", true, "Active", "", "", "" );
|
CAF_PDM_InitScriptableField( &m_isChecked, "IsChecked", true, "Active", "", "", "" );
|
||||||
m_isChecked.uiCapability()->setUiHidden( true );
|
m_isChecked.uiCapability()->setUiHidden( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,9 @@
|
|||||||
|
|
||||||
#include "RimNamedObject.h"
|
#include "RimNamedObject.h"
|
||||||
|
|
||||||
|
#include "cafPdmFieldScriptingCapability.h"
|
||||||
|
#include "cafPdmObjectScriptingCapability.h"
|
||||||
|
|
||||||
CAF_PDM_XML_ABSTRACT_SOURCE_INIT( RimNamedObject, "NamedObject" ); // Do not use. Abstract class
|
CAF_PDM_XML_ABSTRACT_SOURCE_INIT( RimNamedObject, "NamedObject" ); // Do not use. Abstract class
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -25,7 +28,8 @@ CAF_PDM_XML_ABSTRACT_SOURCE_INIT( RimNamedObject, "NamedObject" ); // Do not use
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
RimNamedObject::RimNamedObject( void )
|
RimNamedObject::RimNamedObject( void )
|
||||||
{
|
{
|
||||||
CAF_PDM_InitField( &m_name, "Name", QString(), "Name", "", "", "" );
|
CAF_PDM_InitScriptableObject( "Named object", "", "", "" );
|
||||||
|
CAF_PDM_InitScriptableField( &m_name, "Name", QString(), "Name", "", "", "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user