namespace creaImageIO
{
+ //======================================================================
// CTor
GimmickView::GimmickView(Gimmick* gimmick)
: mGimmick(gimmick)
GimmickDebugMessage(1,"GimmickView::GimmickView"
<<std::endl);
}
+ //======================================================================
+ //======================================================================
/// Destructor
GimmickView::~GimmickView()
{
GimmickDebugMessage(1,"GimmickView::~GimmickView"
<<std::endl);
}
-
-
+ //======================================================================
+
+ //======================================================================
/// Initializes the view :
/// Creates the TreeViews for all the TreeHandler of the Controller
///
void GimmickView::Initialize()
{
}
+ //======================================================================
+ //======================================================================
/// Finalize
void GimmickView::Finalize()
{
}
+ //======================================================================
+ //======================================================================
/// Create the tree views
void GimmickView::CreateTreeViews()
{
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);
+ }
+ //======================================================================
} // EO namespace creaImageIO