kmail
SimpleStringListEditor Class Reference
#include <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 | |
void | appendStringList (const QStringList &strings) |
void | setButtonText (ButtonCode button, const QString &text) |
void | setStringList (const QStringList &strings) |
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) | |
QStringList | stringList () const |
Protected Slots | |
void | slotAdd () |
void | slotDown () |
void | slotModify () |
void | slotRemove () |
void | slotSelectionChanged () |
void | slotUp () |
Protected Attributes | |
QPushButton * | mAddButton |
const QString | mAddDialogLabel |
QPushButton * | mDownButton |
QListBox * | mListBox |
QPushButton * | mModifyButton |
QPushButton * | mRemoveButton |
QPushButton * | mUpButton |
Detailed Description
Definition at line 48 of file simplestringlisteditor.h.
Member Enumeration Documentation
Definition at line 51 of file simplestringlisteditor.h.
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::aboutToAdd | ( | QString & | ) | [signal] |
Connected slots can alter the argument to be added or set the argument to QString::null to suppress adding.
void SimpleStringListEditor::appendStringList | ( | const QStringList & | strings | ) |
Adds strings
to the list of displayed strings.
Definition at line 157 of file simplestringlisteditor.cpp.
void SimpleStringListEditor::changed | ( | void | ) | [signal] |
void SimpleStringListEditor::setButtonText | ( | ButtonCode | button, | |
const QString & | text | |||
) |
void SimpleStringListEditor::setStringList | ( | const QStringList & | strings | ) |
Sets the list of strings displayed to strings
.
Definition at line 152 of file simplestringlisteditor.cpp.
void SimpleStringListEditor::slotAdd | ( | ) | [protected, slot] |
Definition at line 203 of file simplestringlisteditor.cpp.
void SimpleStringListEditor::slotDown | ( | ) | [protected, slot] |
Definition at line 262 of file simplestringlisteditor.cpp.
void SimpleStringListEditor::slotModify | ( | ) | [protected, slot] |
Definition at line 220 of file simplestringlisteditor.cpp.
void SimpleStringListEditor::slotRemove | ( | ) | [protected, slot] |
Definition at line 215 of file simplestringlisteditor.cpp.
void SimpleStringListEditor::slotSelectionChanged | ( | ) | [protected, slot] |
Definition at line 289 of file simplestringlisteditor.cpp.
void SimpleStringListEditor::slotUp | ( | ) | [protected, slot] |
Definition at line 238 of file simplestringlisteditor.cpp.
QStringList SimpleStringListEditor::stringList | ( | ) | const |
Member Data Documentation
QPushButton* SimpleStringListEditor::mAddButton [protected] |
Definition at line 95 of file simplestringlisteditor.h.
const QString SimpleStringListEditor::mAddDialogLabel [protected] |
Definition at line 100 of file simplestringlisteditor.h.
QPushButton* SimpleStringListEditor::mDownButton [protected] |
Definition at line 99 of file simplestringlisteditor.h.
QListBox* SimpleStringListEditor::mListBox [protected] |
Definition at line 94 of file simplestringlisteditor.h.
QPushButton* SimpleStringListEditor::mModifyButton [protected] |
Definition at line 97 of file simplestringlisteditor.h.
QPushButton* SimpleStringListEditor::mRemoveButton [protected] |
Definition at line 96 of file simplestringlisteditor.h.
QPushButton* SimpleStringListEditor::mUpButton [protected] |
Definition at line 98 of file simplestringlisteditor.h.
The documentation for this class was generated from the following files: