cwidget::widgets::subtree< childtype, default_sorter > Class Template Reference

Inheritance diagram for cwidget::widgets::subtree< childtype, default_sorter >:
cwidget::widgets::treeitem

List of all members.

Classes

class  levelref

Public Types

typedef treeiterator iterator
typedef default_sorter default_sort

Public Member Functions

 subtree (bool _expanded)
bool get_expanded ()
void expand ()
void expand_all ()
void collapse_all ()
void paint (tree *win, int y, bool hierarchical, const std::wstring &str, int depth_shift=2)
 Display the given text as the label of this item at the given shifted depth.
void set_depth (int _depth)
void add_child (childtype *newchild)
void sort (sortpolicy &sort_method)
void sort ()
virtual bool dispatch_key (const config::key &k, tree *owner)
virtual void dispatch_mouse (short id, int x, mmask_t bstate, tree *owner)
virtual levelrefbegin ()
virtual levelrefend ()
bool has_visible_children ()
bool has_children ()

Protected Types

typedef std::list< childtype * > child_list
typedef std::list< childtype * >
::iterator 
child_iterator

Protected Member Functions

child_iterator get_children_begin ()
child_iterator get_children_end ()

template<class childtype, class default_sorter = tag_sort_policy>
class cwidget::widgets::subtree< childtype, default_sorter >


Member Function Documentation

template<class childtype, class default_sorter = tag_sort_policy>
void cwidget::widgets::subtree< childtype, default_sorter >::paint ( tree win,
int  y,
bool  hierarchical,
const std::wstring &  str,
int  depth_shift = 2 
) [inline]

Display the given text as the label of this item at the given shifted depth.

Parameters:
win the tree in which to paint this item
y the y location at which to paint this item
hierarchical if true, paint this item as an entry in a 'hierarchical' tree
st the style with which this item is to be displayed.

Reimplemented from cwidget::widgets::treeitem.


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

Generated on Thu Oct 22 19:15:32 2009 for cwidget by  doxygen 1.6.1