mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-07 06:33:05 -06:00
#7656 AppFwk : Make it possible to create a custom uiTreeOrdering
This commit is contained in:
parent
e04c761752
commit
5c1b08a05b
@ -76,11 +76,13 @@ void PdmUiTreeOrdering::add( PdmFieldHandle* field, QString uiConfigName )
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void PdmUiTreeOrdering::add( PdmObjectHandle* object )
|
PdmUiTreeOrdering* PdmUiTreeOrdering::add( PdmObjectHandle* object )
|
||||||
{
|
{
|
||||||
CAF_ASSERT( object );
|
CAF_ASSERT( object );
|
||||||
|
|
||||||
new PdmUiTreeOrdering( this, object );
|
auto node = new PdmUiTreeOrdering( this, object );
|
||||||
|
|
||||||
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -69,8 +69,9 @@ public:
|
|||||||
PdmUiTreeOrdering& operator=( const PdmUiTreeOrdering& ) = delete;
|
PdmUiTreeOrdering& operator=( const PdmUiTreeOrdering& ) = delete;
|
||||||
|
|
||||||
void add( PdmFieldHandle* field, QString uiConfigName = "" );
|
void add( PdmFieldHandle* field, QString uiConfigName = "" );
|
||||||
void add( PdmObjectHandle* object );
|
PdmUiTreeOrdering* add( PdmObjectHandle* object );
|
||||||
PdmUiTreeOrdering* add( const QString& title, const QString& iconResourceName );
|
PdmUiTreeOrdering* add( const QString& title, const QString& iconResourceName );
|
||||||
|
void appendChild( PdmUiTreeOrdering* child );
|
||||||
|
|
||||||
/// If the rest of the fields containing children is supposed to be omitted, set skipRemainingFields to true.
|
/// If the rest of the fields containing children is supposed to be omitted, set skipRemainingFields to true.
|
||||||
void skipRemainingChildren( bool doSkip = true ) { m_forgetRemainingFields = doSkip; }
|
void skipRemainingChildren( bool doSkip = true ) { m_forgetRemainingFields = doSkip; }
|
||||||
@ -105,7 +106,6 @@ private:
|
|||||||
bool ignoreSubTree() const { return m_isToIgnoreSubTree; }
|
bool ignoreSubTree() const { return m_isToIgnoreSubTree; }
|
||||||
bool containsField( const PdmFieldHandle* field );
|
bool containsField( const PdmFieldHandle* field );
|
||||||
bool containsObject( const PdmObjectHandle* object );
|
bool containsObject( const PdmObjectHandle* object );
|
||||||
void appendChild( PdmUiTreeOrdering* child );
|
|
||||||
|
|
||||||
friend class PdmUiTreeViewQModel;
|
friend class PdmUiTreeViewQModel;
|
||||||
PdmUiEditorHandle* editor();
|
PdmUiEditorHandle* editor();
|
||||||
|
Loading…
Reference in New Issue
Block a user