Public Member Functions | Protected Member Functions | Private Attributes

creaImageIO::TreeView Class Reference
[View]

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

#include <creaImageIOTreeView.h>

Inheritance diagram for creaImageIO::TreeView:
Inheritance graph
[legend]
Collaboration diagram for creaImageIO::TreeView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Protected Member Functions

TreeHandlerGetTreeHandler ()
GimmickViewGetGimmickView ()

Private Attributes

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

Detailed Description

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

Definition at line 22 of file creaImageIOTreeView.h.


Constructor & Destructor Documentation

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

Ctor.

Definition at line 12 of file creaImageIOTreeView.cpp.

References GimmickDebugMessage.

    : mTreeHandler(handler),
      mGimmickView(gimmick)
  {
    GimmickDebugMessage(1,"TreeView::TreeView"
                        <<std::endl);
  }

creaImageIO::TreeView::~TreeView (  )  [virtual]

Virtual destructor.

Destructor.

Definition at line 21 of file creaImageIOTreeView.cpp.

References GimmickDebugMessage.

  {
    GimmickDebugMessage(1,"TreeView::~TreeView"
                        <<std::endl);
  }


Member Function Documentation

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

Creates a new listctrl.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 64 of file creaImageIOTreeView.h.

References GimmickError.

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

virtual void creaImageIO::TreeView::GetAttributes ( std::vector< std::string > &  areShown,
std::vector< std::string > &  notShown,
int  level 
) [inline, virtual]

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 58 of file creaImageIOTreeView.h.

References GimmickError.

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

GimmickView* creaImageIO::TreeView::GetGimmickView (  )  [inline, protected]
virtual unsigned int creaImageIO::TreeView::GetLastSelectedLevel (  )  [inline, virtual]

Returns the last selected level.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 44 of file creaImageIOTreeView.h.

References GimmickError.

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

virtual void creaImageIO::TreeView::GetNodes ( std::vector< tree::Node * > &  nodes,
bool  direction 
) [inline, virtual]

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

Reimplemented in creaImageIO::WxTreeView.

Definition at line 55 of file creaImageIOTreeView.h.

References GimmickError.

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

virtual int creaImageIO::TreeView::GetNumberOfLevels (  )  [inline, virtual]

Returns the maximum number of levels.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 47 of file creaImageIOTreeView.h.

References GimmickError.

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

virtual const std::vector<tree::Node*>& creaImageIO::TreeView::GetSelected ( int  level  )  [inline, virtual]

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

Reimplemented in creaImageIO::WxTreeView.

Definition at line 52 of file creaImageIOTreeView.h.

References GimmickError.

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

virtual void creaImageIO::TreeView::GetSelectedAsString ( std::vector< std::string > &  s  )  [inline, virtual]

Gets the current selections filenames.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 49 of file creaImageIOTreeView.h.

References GimmickError.

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

TreeHandler* creaImageIO::TreeView::GetTreeHandler (  )  [inline, protected]
virtual void creaImageIO::TreeView::RemoveSelected ( std::string &  i_save  )  [inline, virtual]

Removes selected nodes.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 36 of file creaImageIOTreeView.h.

References GimmickError.

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

virtual void creaImageIO::TreeView::SetNonVisibleAttributes ( const std::vector< std::string > &  notShown,
int  level 
) [inline, virtual]

Sets the non visible attributes and refreshes the GUI.

Reimplemented in creaImageIO::WxTreeView.

Definition at line 61 of file creaImageIOTreeView.h.

References GimmickError.

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

virtual void creaImageIO::TreeView::UpdateLevel ( int   )  [inline, virtual]

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

Reimplemented in creaImageIO::WxTreeView.

Definition at line 32 of file creaImageIOTreeView.h.

References GimmickError.

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

virtual void creaImageIO::TreeView::ValidateSelectedImages (  )  [inline, virtual]

Validates the selected images.

Definition at line 40 of file creaImageIOTreeView.h.

References GimmickError.

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

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

Here is the caller graph for this function:


Member Data Documentation

The GimmickView which holds the TreeView.

Definition at line 74 of file creaImageIOTreeView.h.

Referenced by GetGimmickView().

The TreeHandler with which it corresponds.

Definition at line 72 of file creaImageIOTreeView.h.

Referenced by GetTreeHandler().


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