+
+ //======================================================================
+
+ //======================================================================
+ /// Create the tree views
+ void GimmickView::CreateTreeViews()
+ {
+ GimmickMessage(2,"Creating the tree views"<<std::endl);
+ Gimmick::TreeHandlerMapType::const_iterator i;
+ for (i = mGimmick->GetTreeHandlerMap().begin();
+ i!= mGimmick->GetTreeHandlerMap().end();
+ ++i)
+ {
+ this->CreateTreeView(i->second);
+ }
+ }
+ //======================================================================
+
+ //======================================================================
+ /// Updates the TreeView of given name from level l to bottom
+ /// (calls the virtual method TreeView::Update())
+ void GimmickView::UpdateTreeViewLevel(const std::string& t, int l)
+ {
+ TreeViewMapType::iterator i;
+ i = GetTreeViewMap().find(t);
+ if ( i == GetTreeViewMap().end() )
+ {
+ GimmickError("INTERNAL ERROR : GimmickView::UpdateTreeView : '"
+ <<t<<"' is not in TreeViewMap");
+ }
+ i->second->UpdateLevel(l);
+ }
+ //======================================================================