#include </home/clem/local/src/opie/libopie2/qt3/opieui/oeditlistbox.h>
Collaboration diagram for OEditListBox:

Public Types | |
| enum | Button { Add = 1, Remove = 2, UpDown = 4, All = Add|Remove|UpDown } |
Signals | |
| void | changed () |
| void | added (const QString &text) |
| void | removed (const QString &text) |
Public Member Functions | |
| OEditListBox (QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
| OEditListBox (const QString &title, QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
| OEditListBox (const QString &title, const CustomEditor &customEditor, QWidget *parent=0, const char *name=0, bool checkAtEntering=false, int buttons=All) | |
| virtual | ~OEditListBox () |
| QListBox * | listBox () const |
| OLineEdit * | lineEdit () const |
| QPushButton * | addButton () const |
| QPushButton * | removeButton () const |
| QPushButton * | upButton () const |
| QPushButton * | downButton () const |
| int | count () const |
| void | insertStringList (const QStringList &list, int index=-1) |
| void | insertStrList (const QStrList *list, int index=-1) |
| void | insertStrList (const QStrList &list, int index=-1) |
| void | insertStrList (const char **list, int numStrings=-1, int index=-1) |
| void | insertItem (const QString &text, int index=-1) |
| void | clear () |
| QString | text (int index) const |
| int | currentItem () const |
| QString | currentText () const |
| QStringList | items () const |
Protected Slots | |
| void | moveItemUp () |
| void | moveItemDown () |
| void | addItem () |
| void | removeItem () |
| void | enableMoveButtons (int index) |
| void | typedSomething (const QString &text) |
Protected Member Functions | |
| virtual void | virtual_hook (int id, void *data) |
Private Member Functions | |
| void | init (bool checkAtEntering, int buttons, QWidget *representationWidget=0L) |
Private Attributes | |
| QListBox * | m_listBox |
| QPushButton * | servUpButton |
| QPushButton * | servDownButton |
| QPushButton * | servNewButton |
| QPushButton * | servRemoveButton |
| OLineEdit * | m_lineEdit |
| OEditListBoxPrivate * | d |
Classes | |
| class | CustomEditor |
This class provides a editable listbox ;-), this means a listbox which is accompanied by a line edit to enter new items into the listbox and pushbuttons to add and remove items from the listbox and two buttons to move items up and down.
Definition at line 49 of file oeditlistbox.h.
|
|
Enumeration of the buttons, the listbox offers. Specify them in the constructor in the buttons parameter. Definition at line 91 of file oeditlistbox.h. |
|
||||||||||||||||||||
|
Create an editable listbox.
If Definition at line 57 of file oeditlistbox.cpp. References init(). |
|
||||||||||||||||||||||||
|
Create an editable listbox. The same as the other constructor, additionally it takes , which will be the title of the frame around the listbox. Definition at line 64 of file oeditlistbox.cpp. References init(). |
|
||||||||||||||||||||||||||||
|
Another constructor, which allows to use a custom editing widget instead of the standard OLineEdit widget. E.g. you can use a OURLRequester or a OComboBox as input widget. The custom editor must consist of a lineedit and optionally another widget that is used as representation. A OComboBox or a OURLRequester have a OLineEdit as child-widget for example, so the OComboBox is used as the representation widget.
Definition at line 71 of file oeditlistbox.cpp. References init(), OEditListBox::CustomEditor::lineEdit(), m_lineEdit, and OEditListBox::CustomEditor::representationWidget(). |
|
|
Definition at line 80 of file oeditlistbox.cpp. References d. |
|
|
Return a pointer to the Add button Definition at line 147 of file oeditlistbox.h. References servNewButton. |
|
|
This signal is emitted when the user adds a new string to the list, the parameter is the added string.
Referenced by addItem(). |
|
|
Definition at line 252 of file oeditlistbox.cpp. References added(), changed(), OLineEdit::clear(), currentItem(), d, OEditListBoxPrivate::m_checkAtEntering, m_lineEdit, m_listBox, and servNewButton. Referenced by init(). |
|
|
Referenced by addItem(), clear(), moveItemDown(), moveItemUp(), removeItem(), and typedSomething(). |
|
|
Clears both the listbox and the line edit. Definition at line 367 of file oeditlistbox.cpp. References changed(), OLineEdit::clear(), m_lineEdit, and m_listBox. |
|
|
See QListBox::count() Definition at line 164 of file oeditlistbox.h. References m_listBox. Referenced by items(), and removeItem(). |
|
|
See QListBox::currentItem() Definition at line 300 of file oeditlistbox.cpp. References m_listBox. Referenced by addItem(), and typedSomething(). |
|
|
See QListBox::currentText() Definition at line 200 of file oeditlistbox.h. References m_listBox. Referenced by enableMoveButtons(), and typedSomething(). |
|
|
Return a pointer to the Down button Definition at line 159 of file oeditlistbox.h. References servDownButton. |
|
|
Definition at line 331 of file oeditlistbox.cpp. References currentText(), m_lineEdit, m_listBox, servDownButton, servRemoveButton, and servUpButton. Referenced by init(). |
|
||||||||||||||||
|
Definition at line 86 of file oeditlistbox.cpp. References Add, addItem(), OEditListBoxPrivate::buttons, d, enableMoveButtons(), i, OEditListBoxPrivate::m_checkAtEntering, m_lineEdit, m_listBox, moveItemDown(), moveItemUp(), Remove, removeItem(), row, servDownButton, servNewButton, servRemoveButton, servUpButton, OLineEdit::setTrapReturnKey(), tr, typedSomething(), and UpDown. Referenced by OEditListBox(). |
|
||||||||||||
|
See QListBox::insertItem() Definition at line 184 of file oeditlistbox.h. References m_listBox. |
|
||||||||||||
|
See QListBox::insertStringList() Definition at line 374 of file oeditlistbox.cpp. References m_listBox. Referenced by OpieUIDemo::demoOEditListBox(). |
|
||||||||||||||||
|
See QListBox::insertStrList() Definition at line 389 of file oeditlistbox.cpp. References m_listBox. |
|
||||||||||||
|
See QListBox::insertStrList() Definition at line 384 of file oeditlistbox.cpp. References m_listBox. |
|
||||||||||||
|
See QListBox::insertStringList() Definition at line 379 of file oeditlistbox.cpp. References m_listBox. |
|
|
Definition at line 394 of file oeditlistbox.cpp. References QValueList< T >::append(), count(), i, list, and m_listBox. |
|
|
Return a pointer to the embedded QLineEdit. Definition at line 143 of file oeditlistbox.h. References m_lineEdit. Referenced by OpieUIDemo::demoOEditListBox(). |
|
|
Return a pointer to the embedded QListBox. Definition at line 139 of file oeditlistbox.h. References m_listBox. |
|
|
Definition at line 229 of file oeditlistbox.cpp. References changed(), and m_listBox. Referenced by init(). |
|
|
Definition at line 206 of file oeditlistbox.cpp. References changed(), and m_listBox. Referenced by init(). |
|
|
Return a pointer to the Remove button Definition at line 151 of file oeditlistbox.h. References servRemoveButton. |
|
|
This signal is emitted when the user removes a string from the list, the parameter is the removed string.
Referenced by removeItem(). |
|
|
Definition at line 311 of file oeditlistbox.cpp. References changed(), count(), m_listBox, removed(), and servRemoveButton. Referenced by init(). |
|
|
See QListBox::text() Definition at line 192 of file oeditlistbox.h. References m_listBox. |
|
|
Definition at line 166 of file oeditlistbox.cpp. References changed(), currentItem(), currentText(), d, QString::isEmpty(), OEditListBoxPrivate::m_checkAtEntering, m_lineEdit, m_listBox, and servNewButton. Referenced by init(). |
|
|
Return a pointer to the Up button Definition at line 155 of file oeditlistbox.h. References servUpButton. |
|
||||||||||||
|
Definition at line 403 of file oeditlistbox.cpp. |
|
|
Definition at line 247 of file oeditlistbox.h. Referenced by addItem(), init(), typedSomething(), and ~OEditListBox(). |
|
|
Definition at line 237 of file oeditlistbox.h. Referenced by addItem(), clear(), enableMoveButtons(), init(), lineEdit(), OEditListBox(), and typedSomething(). |
|
|
Definition at line 234 of file oeditlistbox.h. Referenced by addItem(), clear(), count(), currentItem(), currentText(), enableMoveButtons(), init(), insertItem(), insertStringList(), insertStrList(), items(), listBox(), moveItemDown(), moveItemUp(), removeItem(), text(), and typedSomething(). |
|
|
Definition at line 235 of file oeditlistbox.h. Referenced by downButton(), enableMoveButtons(), and init(). |
|
|
Definition at line 236 of file oeditlistbox.h. Referenced by addButton(), addItem(), init(), and typedSomething(). |
|
|
Definition at line 236 of file oeditlistbox.h. Referenced by enableMoveButtons(), init(), removeButton(), and removeItem(). |
|
|
Definition at line 235 of file oeditlistbox.h. Referenced by enableMoveButtons(), init(), and upButton(). |
1.4.2