svgui
1.9
|
Like QInputDialog::getItem(), except that it offers the items as a set of radio buttons instead of in a single combo box. More...
#include <ListInputDialog.h>
Public Member Functions | |
ListInputDialog (QWidget *parent, const QString &title, const QString &label, const QStringList &list, int current=0) | |
virtual | ~ListInputDialog () |
void | setItemAvailability (int item, bool available) |
void | setFootnote (QString footnote) |
QString | getCurrentString () const |
Static Public Member Functions | |
static QString | getItem (QWidget *parent, const QString &title, const QString &label, const QStringList &list, int current=0, bool *ok=0) |
Protected Attributes | |
QStringList | m_strings |
std::vector< QRadioButton * > | m_radioButtons |
QLabel * | m_footnote |
Like QInputDialog::getItem(), except that it offers the items as a set of radio buttons instead of in a single combo box.
Definition at line 33 of file ListInputDialog.h.
ListInputDialog::ListInputDialog | ( | QWidget * | parent, |
const QString & | title, | ||
const QString & | label, | ||
const QStringList & | list, | ||
int | current = 0 |
||
) |
Definition at line 26 of file ListInputDialog.cpp.
References m_footnote, and m_radioButtons.
ListInputDialog::~ListInputDialog | ( | ) | [virtual] |
Definition at line 61 of file ListInputDialog.cpp.
void ListInputDialog::setItemAvailability | ( | int | item, |
bool | available | ||
) |
Definition at line 77 of file ListInputDialog.cpp.
References m_radioButtons.
void ListInputDialog::setFootnote | ( | QString | footnote | ) |
Definition at line 83 of file ListInputDialog.cpp.
References m_footnote.
QString ListInputDialog::getCurrentString | ( | ) | const |
Definition at line 66 of file ListInputDialog.cpp.
References m_radioButtons, and m_strings.
Referenced by getItem().
QString ListInputDialog::getItem | ( | QWidget * | parent, |
const QString & | title, | ||
const QString & | label, | ||
const QStringList & | list, | ||
int | current = 0 , |
||
bool * | ok = 0 |
||
) | [static] |
Definition at line 90 of file ListInputDialog.cpp.
References getCurrentString().
Referenced by TimeValueLayer::paste().
QStringList ListInputDialog::m_strings [protected] |
Definition at line 53 of file ListInputDialog.h.
Referenced by getCurrentString().
std::vector<QRadioButton *> ListInputDialog::m_radioButtons [protected] |
Definition at line 54 of file ListInputDialog.h.
Referenced by getCurrentString(), ListInputDialog(), and setItemAvailability().
QLabel* ListInputDialog::m_footnote [protected] |
Definition at line 55 of file ListInputDialog.h.
Referenced by ListInputDialog(), and setFootnote().