Advanced Strategic Command
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
DropDownSelector Class Reference

#include <dropdownselector.h>

Inheritance diagram for DropDownSelector:
Inheritance graph
[legend]

Public Member Functions

 DropDownSelector (PG_Widget *parent, const PG_Rect &r=PG_Rect::null, int id=-1, const std::string &style="DropDown")
 
 DropDownSelector (PG_Widget *parent, const PG_Rect &r, int itemnum, const char **items, const std::string &style="DropDown")
 
 DropDownSelector (PG_Widget *parent, const PG_Rect &r, const std::vector< ASCString > &names, const std::string &style="DropDown")
 
void AddItem (const std::string &text, void *userdata=NULL, Uint16 height=0)
 

Public Attributes

sigc::signal< void, int > selectionSignal
 

Protected Member Functions

bool itemSelected ()
 

Detailed Description

Definition at line 24 of file dropdownselector.h.

Constructor & Destructor Documentation

DropDownSelector::DropDownSelector ( PG_Widget *  parent,
const PG_Rect &  r = PG_Rect::null,
int  id = -1,
const std::string &  style = "DropDown" 
)

Definition at line 44 of file dropdownselector.cpp.

References itemSelected().

DropDownSelector::DropDownSelector ( PG_Widget *  parent,
const PG_Rect &  r,
int  itemnum,
const char **  items,
const std::string &  style = "DropDown" 
)

Definition at line 20 of file dropdownselector.cpp.

References AddItem(), and itemSelected().

DropDownSelector::DropDownSelector ( PG_Widget *  parent,
const PG_Rect &  r,
const std::vector< ASCString > &  names,
const std::string &  style = "DropDown" 
)

Definition at line 32 of file dropdownselector.cpp.

References AddItem(), and itemSelected().

Member Function Documentation

void DropDownSelector::AddItem ( const std::string &  text,
void *  userdata = NULL,
Uint16  height = 0 
)
bool DropDownSelector::itemSelected ( )
protected

Definition at line 51 of file dropdownselector.cpp.

References selectionSignal.

Referenced by DropDownSelector().

Member Data Documentation

sigc::signal<void, int> DropDownSelector::selectionSignal

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