creaImageIO_lib
creaImageIO::TreeView Class Reference

Abstract class that handles the view of a Tree through its TreeHandler. More...

#include <creaImageIOTreeView.h>

Inheritance diagram for creaImageIO::TreeView:
Collaboration diagram for creaImageIO::TreeView:

Public Member Functions

 TreeView (TreeHandler *, GimmickView *)
 Ctor. More...
 
virtual ~TreeView ()
 Virtual destructor. More...
 
virtual void UpdateLevel (int)
 Updates the view of a level given the selected items of upper level. More...
 
virtual void RemoveSelected (std::string &i_save)
 Removes selected nodes. More...
 
virtual void ValidateSelectedImages ()
 Validates the selected images. More...
 
virtual unsigned int GetLastSelectedLevel ()
 Returns the last selected level. More...
 
virtual int GetNumberOfLevels ()
 Returns the maximum number of levels. More...
 
virtual void GetSelectedAsString (std::vector< std::string > &s)
 Gets the current selections filenames. More...
 
virtual const std::vector
< tree::Node * > & 
GetSelected (int level)
 Gets the user selected data from the level passed as a parameter. More...
 
virtual void GetNodes (std::vector< tree::Node * > &nodes, bool direction)
 Gets the next nodes on the list, be it up(true) or down(false). More...
 
virtual void GetAttributes (std::vector< std::string > &areShown, std::vector< std::string > &notShown, int level)
 Gets the attributes that are being shown and the ones that have been blocked on a specific level. More...
 
virtual void SetNonVisibleAttributes (const std::vector< std::string > &notShown, int level)
 Sets the non visible attributes and refreshes the GUI. More...
 
virtual void CreateCtrl (std::vector< std::string > &notShown, int nlevel)
 Creates a new listctrl. More...
 

Protected Member Functions

TreeHandlerGetTreeHandler ()
 
GimmickViewGetGimmickView ()
 

Private Attributes

TreeHandlermTreeHandler
 The TreeHandler with which it corresponds. More...
 
GimmickViewmGimmickView
 The GimmickView which holds the TreeView. More...
 

Detailed Description

Abstract class that handles the view of a Tree through its TreeHandler.

Definition at line 50 of file creaImageIOTreeView.h.

Constructor & Destructor Documentation

creaImageIO::TreeView::TreeView ( TreeHandler handler,
GimmickView gimmick 
)

Ctor.

Definition at line 38 of file creaImageIOTreeView.cpp.

References GimmickDebugMessage.

39  : mTreeHandler(handler),
40  mGimmickView(gimmick)
41  {
42  GimmickDebugMessage(1,"TreeView::TreeView"
43  <<std::endl);
44  }
creaImageIO::TreeView::~TreeView ( )
virtual

Virtual destructor.

Destructor.

Definition at line 47 of file creaImageIOTreeView.cpp.

References GimmickDebugMessage.

48  {
49  GimmickDebugMessage(1,"TreeView::~TreeView"
50  <<std::endl);
51  }

Member Function Documentation

virtual void creaImageIO::TreeView::CreateCtrl ( std::vector< std::string > &  notShown,
int  nlevel 
)
inlinevirtual

Creates a new listctrl.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 92 of file creaImageIOTreeView.h.

References GimmickError.

92 { GimmickError("INTERNAL ERROR : TreeView::CreateCtrl not overloaded"); }
virtual void creaImageIO::TreeView::GetAttributes ( std::vector< std::string > &  areShown,
std::vector< std::string > &  notShown,
int  level 
)
inlinevirtual

Gets the attributes that are being shown and the ones that have been blocked on a specific level.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 86 of file creaImageIOTreeView.h.

References GimmickError.

86 { GimmickError("INTERNAL ERROR : TreeView::GetAttributes not overloaded"); }
virtual unsigned int creaImageIO::TreeView::GetLastSelectedLevel ( )
inlinevirtual

Returns the last selected level.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 72 of file creaImageIOTreeView.h.

References GimmickError.

72 {GimmickError("INTERNAL ERROR : TreeView::GetLastSelectedLevel not overloaded");}
virtual void creaImageIO::TreeView::GetNodes ( std::vector< tree::Node * > &  nodes,
bool  direction 
)
inlinevirtual

Gets the next nodes on the list, be it up(true) or down(false).

Reimplemented in creaImageIO::WxTreeView.

Definition at line 83 of file creaImageIOTreeView.h.

References GimmickError.

83 { GimmickError("INTERNAL ERROR : TreeView::GetNodes not overloaded"); }
virtual int creaImageIO::TreeView::GetNumberOfLevels ( )
inlinevirtual

Returns the maximum number of levels.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 75 of file creaImageIOTreeView.h.

References GimmickError.

75 { GimmickError("INTERNAL ERROR : TreeView::GetLevels not overloaded"); }
virtual const std::vector<tree::Node*>& creaImageIO::TreeView::GetSelected ( int  level)
inlinevirtual

Gets the user selected data from the level passed as a parameter.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 80 of file creaImageIOTreeView.h.

References GimmickError.

80 { GimmickError("INTERNAL ERROR : TreeView::GetSelected not overloaded"); }
virtual void creaImageIO::TreeView::GetSelectedAsString ( std::vector< std::string > &  s)
inlinevirtual

Gets the current selections filenames.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 77 of file creaImageIOTreeView.h.

References GimmickError.

77 { GimmickError("INTERNAL ERROR : TreeView::GetSelectedAsString not overloaded"); }
virtual void creaImageIO::TreeView::RemoveSelected ( std::string &  i_save)
inlinevirtual

Removes selected nodes.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 64 of file creaImageIOTreeView.h.

References GimmickError.

65  { GimmickError("INTERNAL ERROR : TreeView::RemoveSelected not overloaded");}
virtual void creaImageIO::TreeView::SetNonVisibleAttributes ( const std::vector< std::string > &  notShown,
int  level 
)
inlinevirtual

Sets the non visible attributes and refreshes the GUI.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 89 of file creaImageIOTreeView.h.

References GimmickError.

89 { GimmickError("INTERNAL ERROR : TreeView::SetNonVisibleAttributes not overloaded"); }
virtual void creaImageIO::TreeView::UpdateLevel ( int  )
inlinevirtual

Updates the view of a level given the selected items of upper level.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 60 of file creaImageIOTreeView.h.

References GimmickError.

61  { GimmickError("INTERNAL ERROR : TreeView::UpdateLevel not overloaded");}
virtual void creaImageIO::TreeView::ValidateSelectedImages ( )
inlinevirtual

Validates the selected images.

Definition at line 68 of file creaImageIOTreeView.h.

References GimmickError.

Referenced by creaImageIO::WxTreeView::OnItemSelected().

69  { GimmickError("INTERNAL ERROR : TreeView::ValidateSelected not overloaded");}

Here is the caller graph for this function:

Member Data Documentation

GimmickView* creaImageIO::TreeView::mGimmickView
private

The GimmickView which holds the TreeView.

Definition at line 102 of file creaImageIOTreeView.h.

Referenced by GetGimmickView().

TreeHandler* creaImageIO::TreeView::mTreeHandler
private

The TreeHandler with which it corresponds.

Definition at line 100 of file creaImageIOTreeView.h.

Referenced by GetTreeHandler().


The documentation for this class was generated from the following files: