Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

crs::list_box< T > Class Template Reference

#include <list_box.h>

Inheritance diagram for crs::list_box< T >:

crs::focused_ctrl crs::styled_ctrl crs::base_control List of all members.

Public Types

typedef std::vector< itemsval_list

Public Methods

 list_box (base_control *Parent, window_events *Events=0, const unsigned int Left=0, const unsigned int Top=0, const unsigned int Width=0, const unsigned int Height=0, style::styles Style=style::rect, chtype clb= '[', chtype crb= ']')
 list_box (base_control *Parent, const val_list List, window_events *Events=0, const unsigned int Left=0, const unsigned int Top=0, const unsigned int Width=0, const unsigned int Height=0, style::styles Style=style::rect, chtype clb= '[', chtype crb= ']')
virtual void draw ()
virtual bool keyPress (int key)
val_list::const_iterator push_back (const items Items)

Public Attributes

property< list_box, read_write,
val_list
list
property< list_box, read_write,
typename val_list::const_iterator > 
selected

Private Methods

const val_listgetList ()
void setList (const val_list &List)
const val_list::const_iterator & getSelected ()
void setSelected (const typename val_list::const_iterator &it)

Private Attributes

val_list mList
val_list::const_iterator mSelected

template<class T>
class crs::list_box< T >


Member Typedef Documentation

template<class T>
typedef std::vector<items> crs::list_box< T >::val_list
 

Definition at line 24 of file list_box.h.

Referenced by crs::list_box< T >::getList(), crs::list_box< T >::list_box(), and crs::list_box< T >::setList().


Constructor & Destructor Documentation

template<class T>
crs::list_box< T >::list_box base_control   Parent,
window_events   Events = 0,
const unsigned int    Left = 0,
const unsigned int    Top = 0,
const unsigned int    Width = 0,
const unsigned int    Height = 0,
style::styles    Style = style::rect,
chtype    clb = '[',
chtype    crb = ']'
[inline]
 

Definition at line 43 of file list_box.h.

References crs::list_box< T >::getList(), crs::list_box< T >::getSelected(), crs::list_box< T >::list, crs::list_box< T >::mList, crs::list_box< T >::mSelected, crs::list_box< T >::selected, crs::list_box< T >::setList(), and crs::list_box< T >::setSelected().

template<class T>
crs::list_box< T >::list_box base_control   Parent,
const val_list    List,
window_events   Events = 0,
const unsigned int    Left = 0,
const unsigned int    Top = 0,
const unsigned int    Width = 0,
const unsigned int    Height = 0,
style::styles    Style = style::rect,
chtype    clb = '[',
chtype    crb = ']'
[inline]
 

Definition at line 54 of file list_box.h.

References crs::list_box< T >::getList(), crs::list_box< T >::getSelected(), crs::list_box< T >::list, crs::list_box< T >::mList, crs::list_box< T >::mSelected, crs::list_box< T >::selected, crs::list_box< T >::setList(), crs::list_box< T >::setSelected(), and crs::list_box< T >::val_list.


Member Function Documentation

template<class T>
virtual void crs::list_box< T >::draw   [inline, virtual]
 

Reimplemented from crs::base_control.

Definition at line 64 of file list_box.h.

References crs::base_control::buffer, crs::styled_ctrl::custom_left_border, crs::styled_ctrl::custom_right_border, crs::drawing_area::drawHLine(), crs::drawing_area::drawVLine(), crs::drawing_area::fill(), crs::base_control::mHeight, crs::list_box< T >::mList, crs::list_box< T >::mSelected, crs::styled_ctrl::mStyle, crs::base_control::mWidth, and crs::drawing_area::setText().

template<class T>
const val_list& crs::list_box< T >::getList   [inline, private]
 

Definition at line 28 of file list_box.h.

References crs::list_box< T >::mList, and crs::list_box< T >::val_list.

Referenced by crs::list_box< T >::list_box().

template<class T>
const val_list::const_iterator& crs::list_box< T >::getSelected   [inline, private]
 

Definition at line 35 of file list_box.h.

References crs::list_box< T >::mSelected.

Referenced by crs::list_box< T >::list_box().

template<class T>
virtual bool crs::list_box< T >::keyPress int    key [inline, virtual]
 

Reimplemented from crs::base_control.

Definition at line 84 of file list_box.h.

References crs::list_box< T >::mList, and crs::list_box< T >::mSelected.

template<class T>
val_list::const_iterator crs::list_box< T >::push_back const items    Items [inline]
 

Definition at line 99 of file list_box.h.

References crs::list_box< T >::mList, and crs::list_box< T >::mSelected.

template<class T>
void crs::list_box< T >::setList const val_list   List [inline, private]
 

Definition at line 31 of file list_box.h.

References crs::list_box< T >::mList, crs::list_box< T >::mSelected, and crs::list_box< T >::val_list.

Referenced by crs::list_box< T >::list_box().

template<class T>
void crs::list_box< T >::setSelected const typename val_list::const_iterator &    it [inline, private]
 

Definition at line 38 of file list_box.h.

References crs::list_box< T >::mSelected.

Referenced by crs::list_box< T >::list_box().


Member Data Documentation

template<class T>
property< list_box, read_write, val_list > crs::list_box< T >::list
 

Definition at line 103 of file list_box.h.

Referenced by crs::list_box< T >::list_box().

template<class T>
val_list crs::list_box< T >::mList [private]
 

Definition at line 26 of file list_box.h.

Referenced by crs::list_box< T >::draw(), crs::list_box< T >::getList(), crs::list_box< T >::keyPress(), crs::list_box< T >::list_box(), crs::list_box< T >::push_back(), and crs::list_box< T >::setList().

template<class T>
val_list::const_iterator crs::list_box< T >::mSelected [private]
 

Definition at line 27 of file list_box.h.

Referenced by crs::list_box< T >::draw(), crs::list_box< T >::getSelected(), crs::list_box< T >::keyPress(), crs::list_box< T >::list_box(), crs::list_box< T >::push_back(), crs::list_box< T >::setList(), and crs::list_box< T >::setSelected().

template<class T>
property< list_box, read_write, typename val_list::const_iterator > crs::list_box< T >::selected
 

Definition at line 104 of file list_box.h.

Referenced by crs::list_box< T >::list_box().


The documentation for this class was generated from the following file:
Generated on Mon May 19 20:36:04 2003 for cursive by doxygen1.2.18