[KLF Backend][KLF Tools][KLF Home]
KLatexFormula Project
Classes | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
KLFEnumListWidget Class Reference

#include <klfenumlistwidget.h>

Collaboration diagram for KLFEnumListWidget:
Collaboration graph
[legend]

List of all members.

Classes

struct  Item

Public Slots

void addItem (const QString &s, const QVariant &data=QVariant())
void removeItem (int i)
void insertItem (int i, const QString &s, const QVariant &data=QVariant())
void setItems (const QStringList &slist, const QVariantList &datalist=QVariantList())

Signals

void itemActivated (const QString &s, const QVariant &data)
void itemActivated (int i, const QString &s, const QVariant &data)

Public Member Functions

 KLFEnumListWidget (QWidget *parent)
virtual ~KLFEnumListWidget ()
int itemCount () const
QString itemAt (int i) const
QVariant itemDataAt (int i) const
QStringList itemList () const
QVariantList itemDataList () const

Protected Member Functions

virtual void updateLabelText ()

Protected Attributes

QList< ItempItems

Detailed Description

Definition at line 34 of file klfenumlistwidget.h.


Constructor & Destructor Documentation

KLFEnumListWidget::KLFEnumListWidget ( QWidget *  parent)

Definition at line 30 of file klfenumlistwidget.cpp.

Definition at line 39 of file klfenumlistwidget.cpp.


Member Function Documentation

void KLFEnumListWidget::addItem ( const QString s,
const QVariant data = QVariant() 
) [inline, slot]

Definition at line 54 of file klfenumlistwidget.h.

void KLFEnumListWidget::insertItem ( int  i,
const QString s,
const QVariant data = QVariant() 
) [slot]

Definition at line 85 of file klfenumlistwidget.cpp.

References QList::insert(), pItems, and updateLabelText().

void KLFEnumListWidget::itemActivated ( const QString s,
const QVariant data 
) [signal]
void KLFEnumListWidget::itemActivated ( int  i,
const QString s,
const QVariant data 
) [signal]

Definition at line 43 of file klfenumlistwidget.cpp.

References pItems, and QList::size().

int KLFEnumListWidget::itemCount ( ) const [inline]

Definition at line 41 of file klfenumlistwidget.h.

Definition at line 50 of file klfenumlistwidget.cpp.

References pItems, and QList::size().

QVariantList KLFEnumListWidget::itemDataList ( ) const

Definition at line 65 of file klfenumlistwidget.cpp.

References pItems, and QList::size().

Definition at line 57 of file klfenumlistwidget.cpp.

References pItems, and QList::size().

void KLFEnumListWidget::removeItem ( int  i) [slot]

Definition at line 75 of file klfenumlistwidget.cpp.

References pItems, QList::removeAt(), QList::size(), and updateLabelText().

void KLFEnumListWidget::setItems ( const QStringList slist,
const QVariantList &  datalist = QVariantList() 
) [slot]
void KLFEnumListWidget::updateLabelText ( ) [protected, virtual]

Definition at line 110 of file klfenumlistwidget.cpp.

References QString::number(), pItems, and QList::size().

Referenced by insertItem(), removeItem(), and setItems().


Member Data Documentation


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

Generated by doxygen 1.7.6.1. The KLatexFormula website is hosted on sourceforge.net