kmail
SimpleStringListEditor Class Reference
List of all members.Detailed Description
Definition at line 48 of file simplestringlisteditor.h.
Public Types | |
| enum | ButtonCode { None = 0x00, Add = 0x01, Remove = 0x02, Modify = 0x04, Up = 0x08, Down = 0x10, All = Add|Remove|Modify|Up|Down, Unsorted = Add|Remove|Modify } |
Signals | |
| void | aboutToAdd (QString &) |
| void | changed (void) |
Public Member Functions | |
| SimpleStringListEditor (QWidget *parent=0, const char *name=0, ButtonCode buttons=Unsorted, const QString &addLabel=QString::null, const QString &removeLabel=QString::null, const QString &modifyLabel=QString::null, const QString &addDialogLabel=QString::null) | |
| void | setStringList (const QStringList &strings) |
| void | appendStringList (const QStringList &strings) |
| QStringList | stringList () const |
| void | setButtonText (ButtonCode button, const QString &text) |
Protected Slots | |
| void | slotAdd () |
| void | slotRemove () |
| void | slotModify () |
| void | slotUp () |
| void | slotDown () |
| void | slotSelectionChanged () |
Protected Attributes | |
| QListBox * | mListBox |
| QPushButton * | mAddButton |
| QPushButton * | mRemoveButton |
| QPushButton * | mModifyButton |
| QPushButton * | mUpButton |
| QPushButton * | mDownButton |
| const QString | mAddDialogLabel |
Constructor & Destructor Documentation
| SimpleStringListEditor::SimpleStringListEditor | ( | QWidget * | parent = 0, |
|
| const char * | name = 0, |
|||
| ButtonCode | buttons = Unsorted, |
|||
| const QString & | addLabel = QString::null, |
|||
| const QString & | removeLabel = QString::null, |
|||
| const QString & | modifyLabel = QString::null, |
|||
| const QString & | addDialogLabel = QString::null | |||
| ) |
Constructor.
Populates the list with strings.
Definition at line 59 of file simplestringlisteditor.cpp.
Member Function Documentation
| void SimpleStringListEditor::setStringList | ( | const QStringList & | strings | ) |
Sets the list of strings displayed to strings.
Definition at line 152 of file simplestringlisteditor.cpp.
| void SimpleStringListEditor::appendStringList | ( | const QStringList & | strings | ) |
Adds strings to the list of displayed strings.
Definition at line 157 of file simplestringlisteditor.cpp.
| QStringList SimpleStringListEditor::stringList | ( | ) | const |
| void SimpleStringListEditor::setButtonText | ( | ButtonCode | button, | |
| const QString & | text | |||
| ) |
| void SimpleStringListEditor::aboutToAdd | ( | QString & | ) | [signal] |
Connected slots can alter the argument to be added or set the argument to QString::null to suppress adding.
The documentation for this class was generated from the following files:

