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

crs::choice_box< T > Class Template Reference

#include <choice_box.h>

Inheritance diagram for crs::choice_box< T >:

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

Public Methods

 choice_box (base_control *Parent, std::vector< items > List, window_events *Events=0, const unsigned int Left=0, const unsigned int Top=0, const unsigned int Width=0, style::styles Style=style::rect)
virtual void draw ()
virtual bool keyPress (const int key)

Public Attributes

property< choice_box< T >,
read_write, std::vector<
items > > 
list

Private Methods

const std::vector< items > & getList ()
void setList (const std::vector< items > &new_list)

Private Attributes

std::vector< itemsmList
std::vector< itemsfoo
std::vector< items >::iterator selected

template<typename T>
class crs::choice_box< T >


Constructor & Destructor Documentation

template<typename T>
crs::choice_box< T >::choice_box base_control   Parent,
std::vector< items   List,
window_events   Events = 0,
const unsigned int    Left = 0,
const unsigned int    Top = 0,
const unsigned int    Width = 0,
style::styles    Style = style::rect
[inline]
 

Definition at line 34 of file choice_box.h.

References crs::choice_box< T >::getList(), crs::choice_box< T >::list, crs::choice_box< T >::mList, crs::choice_box< T >::selected, and crs::choice_box< T >::setList().


Member Function Documentation

template<typename T>
virtual void crs::choice_box< T >::draw   [inline, virtual]
 

Reimplemented from crs::base_control.

Definition at line 44 of file choice_box.h.

References crs::base_control::buffer, crs::styled_ctrl::custom_left_border, crs::styled_ctrl::custom_right_border, crs::drawing_area::fill(), crs::choice_box< T >::mList, crs::styled_ctrl::mStyle, crs::base_control::mWidth, crs::choice_box< T >::selected, and crs::drawing_area::setText().

template<typename T>
const std::vector<items>& crs::choice_box< T >::getList   [inline, private]
 

Definition at line 27 of file choice_box.h.

References crs::choice_box< T >::mList.

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

template<typename T>
virtual bool crs::choice_box< T >::keyPress const int    key [inline, virtual]
 

Reimplemented from crs::base_control.

Definition at line 52 of file choice_box.h.

References crs::choice_box< T >::mList, and crs::choice_box< T >::selected.

template<typename T>
void crs::choice_box< T >::setList const std::vector< items > &    new_list [inline, private]
 

Definition at line 30 of file choice_box.h.

References crs::choice_box< T >::mList.

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


Member Data Documentation

template<typename T>
std::vector< items > crs::choice_box< T >::foo [private]
 

Definition at line 25 of file choice_box.h.

template<typename T>
property< choice_box<T>, read_write, std::vector<items> > crs::choice_box< T >::list
 

Definition at line 43 of file choice_box.h.

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

template<typename T>
std::vector< items > crs::choice_box< T >::mList [private]
 

Definition at line 24 of file choice_box.h.

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

template<typename T>
std::vector< items >::iterator crs::choice_box< T >::selected [private]
 

Definition at line 26 of file choice_box.h.

Referenced by crs::choice_box< T >::choice_box(), crs::choice_box< T >::draw(), and crs::choice_box< T >::keyPress().


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