Ananas Library 0.9.5
Класс aListBox
Граф наследования:aListBox:

Открытые слоты

virtual void setFocus ()

Сигналы

void keyArrowLRPressed ()
void keyArrowLRPressed (const QString &)
void keyEnterPressed ()
void lostFocus ()
void sendMessage (const QString &)

Открытые члены

 aListBox (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~aListBox ()
void insertItem (const QString &s, long idx, int index=-1)
void show (QWidget *w, QFrame *fr)
long getId (int ind)
void clear ()

Защищенные слоты

void doubleClickHandler (QListBoxItem *i)

Защищенные члены

virtual void keyPressEvent (QKeyEvent *e)
void focusOutEvent (QFocusEvent *e)

Конструктор(ы)

◆ aListBox()

aListBox::aListBox ( QWidget * parent = 0,
const char * name = 0,
WFlags f = 0 )

Constructor

◆ ~aListBox()

aListBox::~aListBox ( )

Destructor

Методы

◆ clear()

void aListBox::clear ( )

Clears list and list of id.

◆ focusOutEvent()

void aListBox::focusOutEvent ( QFocusEvent * e)
protected

Focus out event handler. Emit signal lost focus.

Аргументы
e- focus out event.

◆ insertItem()

void aListBox::insertItem ( const QString & s,
long idx,
int index = -1 )

Inserts s in list and idx in list of id.

Аргументы
s(in) - string for insert.
idx(in) - id for insert.
index(in) - position for insert.

◆ keyPressEvent()

void aListBox::keyPressEvent ( QKeyEvent * e)
protectedvirtual

Key press event handler. Emit signals keyArrowLRPressed if press arrow left or arrow rigth.

Аргументы
e(in) - key press event.

◆ show()

void aListBox::show ( QWidget * wd,
QFrame * fr )

Function move and resize frame and list box.

Аргументы
wd(in) - widget for pattern geometry.
fr(in, out) - status frame.

Объявления и описания членов классов находятся в файлах: