index
#include <>
class TCListRow
Public member index
- friend iterator;
- TCListRow(TCListRow &parent,const gchar **contents,gint exp_column=-1,bool expand=false);
- TCListRow(TCListRow &parent,const gchar **contents,gint exp_column=-1,bool expand=false);
- TCListRow(TCList &parent,const gchar **contents,gint exp_column=-1,bool expand=false);
- TCListRow(TCList &parent,const gchar **contents,gint exp_column=-1,bool expand=false);
- TCListRow(iterator &next,const vector <string>,gint exp_column=-1,bool expand=false);
- virtual ~TCListRow();
- iterator begin();
- iterator end();
- bool empty() const;
- int size() const;
- void set_expanding_column(gint col);
- gint get_expanding_column();
- gint get_lineno() const;
- gint get_num_rows() const;
- void set_user_data(gpointer x);
- gpointer get_user_data() const;
- void expand();
- void collapse();
- void toggle_expansion();
- vector <string> & get_columns();
- void reparent_children(TCListRow &newparent);
- iterator find(const TCListRow &value);
- int visible_size() const;
- void relabel(int column, string text);
- void relabel(int column, gchar *text);
- bool operator==(const TCListRow &value) const;
- void setPicture(int column,const Picture *pic);
Private member index
Public member descriptions
iterator
friend TCListRow::iterator;
this is an STL like iterator for TCListRows
TCListRow
TCListRow::TCListRow(TCListRow &parent,const gchar **contents,gint exp_column=-1,bool expand=false);
this was named addLine ... better as a constructor (inheritance)this was named addLine ... better as a constructor (inheritance)
add a line. If it contains a subtree please specify the expanding column
there is also a gchar**-version of this function
TCListRow
TCListRow::TCListRow(TCListRow &parent,const gchar **contents,gint exp_column=-1,bool expand=false);
this was named addLine ... better as a constructor (inheritance)this was named addLine ... better as a constructor (inheritance)
add a line. If it contains a subtree please specify the expanding column
there is also a gchar**-version of this function
TCListRow
TCListRow::TCListRow(TCList &parent,const gchar **contents,gint exp_column=-1,bool expand=false);
this was named addLine ... better as a constructor (inheritance)this was named addLine ... better as a constructor (inheritance)
add a line. If it contains a subtree please specify the expanding column
there is also a gchar**-version of this function
TCListRow
TCListRow::TCListRow(TCList &parent,const gchar **contents,gint exp_column=-1,bool expand=false);
this was named addLine ... better as a constructor (inheritance)this was named addLine ... better as a constructor (inheritance)
add a line. If it contains a subtree please specify the expanding column
there is also a gchar**-version of this function
TCListRow
TCListRow::TCListRow(iterator &next,const vector <string>,gint exp_column=-1,bool expand=false);
insert a line before the iterator. If it contains a subtree please specify the expanding column
begin
iterator TCListRow::begin();
return iterator to first child
end
iterator TCListRow::end();
return past the end iterator
empty
bool TCListRow::empty() const;
whether this Node has no children
size
int TCListRow::size() const;
number of children
set_expanding_column
void TCListRow::set_expanding_column(gint col);
specify the expanding column (the one with the (+)-sign)
get_expanding_column
gint TCListRow::get_expanding_column();
return the expanding column
get_lineno
gint TCListRow::get_lineno() const;
return line number within Gtk_CList (or -1 if not expanded)
get_num_rows
gint TCListRow::get_num_rows() const;
not implemented. should return number of lines of this subtree
set_user_data
void TCListRow::set_user_data(gpointer x);
add an hook for your data
get_user_data
gpointer TCListRow::get_user_data() const;
return your data
expand
void TCListRow::expand();
expand this subtree
collapse
void TCListRow::collapse();
collapse this subtree
toggle_expansion
void TCListRow::toggle_expansion();
flip expansion of this subtree
get_columns
vector <string> & TCListRow::get_columns();
return contents (text) of this node
reparent_children
void TCListRow::reparent_children(TCListRow &newparent);
reparent children to parent
find
iterator TCListRow::find(const TCListRow &value);
find iterator to child
visible_size
int TCListRow::visible_size() const;
visible_size of this subtree
relabel
void TCListRow::relabel(int column, string text);
relabel column
setPicture
void TCListRow::setPicture(int column,const Picture *pic);
For performance reasons cloning Pictures is not done.
You really need a picture _ONCE_? You're kidding!
Private member descriptions
expand_imp
void TCListRow::expand_imp();
??? is called by parent->show() !!!
expansion_redraw_imp
void TCListRow::expansion_redraw_imp(gint lineno=unspecified_lineno);
do not use too extensively, use redraw_column_imp where possible
append_imp
void TCListRow::append_imp();
for a very fast insertion of the whole list
(pages generated by PERCEPS -script.)