mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 01:40:13 +00:00
Only add atoms to the property browser.
This commit is contained in:
parent
e208a130e2
commit
3cd0f3fd7c
1 changed files with 7 additions and 4 deletions
|
@ -47,7 +47,7 @@ public:
|
||||||
m_browser = NULL;
|
m_browser = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void setupElement( NLGEORGES::CFormElmStruct::CFormElmStructElm &elm )
|
void setupAtom( NLGEORGES::CFormElmStruct::CFormElmStructElm &elm )
|
||||||
{
|
{
|
||||||
QString key = elm.Name.c_str();
|
QString key = elm.Name.c_str();
|
||||||
QString value = "";
|
QString value = "";
|
||||||
|
@ -70,12 +70,15 @@ public:
|
||||||
m_browser->addProperty( p );
|
m_browser->addProperty( p );
|
||||||
}
|
}
|
||||||
|
|
||||||
void setupForm( NLGEORGES::CFormElmStruct *st )
|
void setupStruct( NLGEORGES::CFormElmStruct *st )
|
||||||
{
|
{
|
||||||
for( int i = 0; i < st->Elements.size(); i++ )
|
for( int i = 0; i < st->Elements.size(); i++ )
|
||||||
{
|
{
|
||||||
NLGEORGES::CFormElmStruct::CFormElmStructElm &elm = st->Elements[ i ];
|
NLGEORGES::CFormElmStruct::CFormElmStructElm &elm = st->Elements[ i ];
|
||||||
setupElement( elm );
|
if( ( elm.Element != NULL ) && !elm.Element->isAtom() )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
setupAtom( elm );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_currentNode = st;
|
m_currentNode = st;
|
||||||
|
@ -152,7 +155,7 @@ void BrowserCtrl::clicked( const QModelIndex &idx )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
NLGEORGES::CFormElmStruct *st = static_cast< NLGEORGES::CFormElmStruct* >( node );
|
NLGEORGES::CFormElmStruct *st = static_cast< NLGEORGES::CFormElmStruct* >( node );
|
||||||
m_pvt->setupForm( st );
|
m_pvt->setupStruct( st );
|
||||||
|
|
||||||
enableMgrConnections();
|
enableMgrConnections();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue