|
SILICON
|
#include <functional>#include <QString>#include <QStringList>

Go to the source code of this file.
Namespaces | |
| namespace | SILICON |
| namespace | SILICON::ui |
| namespace | SILICON::ui::inputDialog |
Typedefs | |
| using | TextCallback = std::function<void(const QString&)> |
| using | AcceptedCallback = std::function<void()> |
| using | ChoiceCallback = std::function<void(Choice)> |
Enumerations | |
| enum class | Choice { Primary , Secondary , Cancel } |
Functions | |
| QWidget * | parentWidgetForGraphicsItem (const QGraphicsItem *item) |
| void | getText (QWidget *parent, const QString &title, const QString &label, const QString &defaultText, TextCallback callback, QObject *context) |
| void | getItem (QWidget *parent, const QString &title, const QString &label, const QStringList &items, int current, bool editable, TextCallback callback, QObject *context) |
| void | warning (QWidget *parent, const QString &title, const QString &text) |
| void | critical (QWidget *parent, const QString &title, const QString &text) |
| void | question (QWidget *parent, const QString &title, const QString &text, AcceptedCallback accepted, QObject *context) |
| void | warningChoice (QWidget *parent, const QString &title, const QString &text, const QString &primaryText, const QString &secondaryText, ChoiceCallback callback, QObject *context=nullptr) |
| Shows a three-way warning using caller-provided action labels. | |