Faith::ListBox Class Reference

#include <faith/listbox.h>

Inheritance diagram for Faith::ListBox:

Faith::ListView< Item > Faith::GListView Faith::ScrollView Faith::GItemView Faith::Widget Faith::Object Faith::PaintDevice List of all members.

Signals

void currentChanged (int index)
void currentChanged (const Faith::String &)
void currentChanged ()

Public Member Functions

 ListBox (Faith::Widget *parent, const char *name=0)
 ListBox (const Faith::String &s, Faith::Widget *parent, const char *name=0)
 ListBox (const std::list< Faith::String > &s, Faith::Widget *parent, const char *name=0)
 ~ListBox ()
String currentText () const
int current () const
void setText (int item, const String &str)
String text (int item) const
void insertItem (int at, const String &str)
void addItem (const String &str)
void addItems (const std::list< String > &str)

Constructor & Destructor Documentation

Faith::ListBox::ListBox ( Faith::Widget parent,
const char *  name = 0 
)

Faith::ListBox::ListBox ( const Faith::String s,
Faith::Widget parent,
const char *  name = 0 
)

Faith::ListBox::ListBox ( const std::list< Faith::String > &  s,
Faith::Widget parent,
const char *  name = 0 
)

Faith::ListBox::~ListBox (  ) 


Member Function Documentation

void Faith::ListBox::addItem ( const String str  ) 

inserts an item at the end

void Faith::ListBox::addItems ( const std::list< String > &  str  ) 

inserts items at the end

int Faith::ListBox::current (  )  const

Returns:
the index of the current item

void Faith::ListBox::currentChanged (  )  [signal]

Reimplemented from Faith::ListView< Item >.

void Faith::ListBox::currentChanged ( const Faith::String  )  [signal]

void Faith::ListBox::currentChanged ( int  index  )  [signal]

String Faith::ListBox::currentText (  )  const

void Faith::ListBox::insertItem ( int  at,
const String str 
)

inserts an item so that it will be at position at, or at the end if this is not possible

void Faith::ListBox::setText ( int  item,
const String str 
)

sets the text for the item at index item

String Faith::ListBox::text ( int  item  )  const

sets the text for the item at index item


The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:09 2006 for Faith by  doxygen 1.4.7