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

sptkSelectGadget Class Reference

#include <sptkselectgadget.h>

Inheritance diagram for sptkSelectGadget:

sptkGadget sptkObject List of all members.

Public Member Functions

void addItem (std::string lable, std::string id)
void delItem (std::string id)
void alterItem (std::string id, std::string newID)
void setSelected (std::string id)
std::string getSelected ()
void setLines (int lines)
int getLines ()
void setType (unsigned int type)

Detailed Description

Author:
Sven Broenstrup


Member Function Documentation

void sptkSelectGadget::addItem std::string    lable,
std::string    id
 

Add an item to the Gadget

Parameters:
lable Lable of the item in the Gadget
id id respondet if item is selected

void sptkSelectGadget::alterItem std::string    id,
std::string    newID
 

Alter an item of the Gadget

Parameters:
id old ID of the item
newID new ID of the item, 0 for no change

void sptkSelectGadget::delItem std::string    id
 

Delete an item from the Gadget

Parameters:
id id of the item to be deleted

int sptkSelectGadget::getLines  
 

Get the number of lines in the Gadget

Returns:
The number of lines, 0 if pull-down menu

std::string sptkSelectGadget::getSelected  
 

Get the selected item of the Gadget

Returns:
ID of the selected item

void sptkSelectGadget::setLines int    lines
 

Set the number of lines in the Gadget

Parameters:
lines The number of lines, 0 means pull-down menu

void sptkSelectGadget::setSelected std::string    id
 

Set the selected item of the Gadget

Parameters:
id ID of the item to be selected

void sptkSelectGadget::setType unsigned int    type
 

Set the type of the Gadget

Parameters:
type Set the type of the Gadget
SPTK_GADGET_SELECT_PULLDOWN to create a Pull-down menu
SPTK_GADGET_SELECT_SELECT to create a Box to select item
SPTK_GADGET_SELECT_RADIO to create a radiobuttons, checkboxes if SPTK_GADGET_COMBO_MULTI
SPTK_GADGET_SELECT_MULTI to make it able to select more than one item.


The documentation for this class was generated from the following file:
Powered by SPOM