Esempio n. 1
0
void drimi::Gui::Container::Pack ( Component::Ptr pComponent ) {
  m_oChildren.push_back (pComponent);

  // If container has no selection and the component
  // is selectable then select it.
  if (!HasSelection () && pComponent->IsSelectable ())
    Select (m_oChildren.size ()-1);
}
Esempio n. 2
0
	void Container::Pack( Component::Ptr component )
	{
		pImpl->mChildren.push_back( component );
		if( !pImpl->HasSelection() && component->IsSelectable() )
		{
			pImpl->Select( pImpl->mChildren.size() - 1 );
		}
	}