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

CL_ComboBox_Generic Class Reference

#include <combobox_generic.h>

Collaboration diagram for CL_ComboBox_Generic:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_ComboBox_Generic (CL_ComboBox *self, const CL_ComponentOptions &options, CL_StyleManager *style)
 ~CL_ComboBox_Generic ()
int get_count () const
std::list<std::string>& get_items ()
std::string get_current_text () const
std::string get_text (int index) const
int get_current_item () const
bool is_selected (int index) const
int insert_item (const std::string &text, int index)
void remove_item (int index)
void change_item (const std::string &text, int index)
void set_current_item (int index)
void clear_selection ()
void sort (bool ascending)
void clear ()

Public Attributes

CL_Signal_v1<int> sig_activated
CL_Signal_v1<int> sig_highlighted

Static Public Methods

CL_ComponentOptions create_options (const CL_Rect &pos)

Protected Methods

void set_select_button (CL_Button *select_button)
void select_clicked ()

Protected Attributes

CL_Slot slot_clicked
CL_Slot slot_pressed
bool activated
bool skip_next_activation
int highlighted_item
CL_ComboBoxcombobox
CL_Buttonselect_button
std::list<std::string> items

Constructor & Destructor Documentation

CL_ComboBox_Generic::CL_ComboBox_Generic ( CL_ComboBox * self,
const CL_ComponentOptions & options,
CL_StyleManager * style )
 

CL_ComboBox_Generic::~CL_ComboBox_Generic ( )
 


Member Function Documentation

void CL_ComboBox_Generic::change_item ( const std::string & text,
int index )
 

void CL_ComboBox_Generic::clear ( )
 

void CL_ComboBox_Generic::clear_selection ( )
 

CL_ComponentOptions CL_ComboBox_Generic::create_options ( const CL_Rect & pos ) [static]
 

int CL_ComboBox_Generic::get_count ( ) const
 

int CL_ComboBox_Generic::get_current_item ( ) const
 

std::string CL_ComboBox_Generic::get_current_text ( ) const
 

std::list<std::string>& CL_ComboBox_Generic::get_items ( )
 

std::string CL_ComboBox_Generic::get_text ( int index ) const
 

int CL_ComboBox_Generic::insert_item ( const std::string & text,
int index )
 

bool CL_ComboBox_Generic::is_selected ( int index ) const
 

void CL_ComboBox_Generic::remove_item ( int index )
 

void CL_ComboBox_Generic::select_clicked ( ) [protected]
 

void CL_ComboBox_Generic::set_current_item ( int index )
 

void CL_ComboBox_Generic::set_select_button ( CL_Button * select_button ) [protected]
 

void CL_ComboBox_Generic::sort ( bool ascending )
 


Member Data Documentation

bool CL_ComboBox_Generic::activated [protected]
 

Definition at line 56 of file combobox_generic.h.

CL_ComboBox* CL_ComboBox_Generic::combobox [protected]
 

Definition at line 61 of file combobox_generic.h.

int CL_ComboBox_Generic::highlighted_item [protected]
 

Definition at line 59 of file combobox_generic.h.

std::list<std::string> CL_ComboBox_Generic::items [protected]
 

Definition at line 64 of file combobox_generic.h.

CL_Button* CL_ComboBox_Generic::select_button [protected]
 

Definition at line 62 of file combobox_generic.h.

CL_Signal_v1<int> CL_ComboBox_Generic::sig_activated
 

Definition at line 47 of file combobox_generic.h.

CL_Signal_v1<int> CL_ComboBox_Generic::sig_highlighted
 

Definition at line 48 of file combobox_generic.h.

bool CL_ComboBox_Generic::skip_next_activation [protected]
 

Definition at line 57 of file combobox_generic.h.

CL_Slot CL_ComboBox_Generic::slot_clicked [protected]
 

Definition at line 54 of file combobox_generic.h.

CL_Slot CL_ComboBox_Generic::slot_pressed [protected]
 

Definition at line 54 of file combobox_generic.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:56:46 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001