|
static void | informUser (const QString &dialogTitle, const QString &dialogText) |
| Informs the user with a message in a modal pop-up dialog. More...
|
|
static void | informUser (const QString &dialogTitle, const QString &labelText, const QString &text, bool monospaceFont=false) |
| Informs the user with a message and text in a modal pop-up dialog. More...
|
|
static void | informUser (SBGWindowWidget *widget) |
| Informs the user with a widget in a modal pop-up dialog. More...
|
|
static void | informUser (QWidget *widget) |
| Informs the user with a widget in a modal pop-up dialog. More...
|
|
static bool | askUser (const QString &dialogTitle, const QString &dialogText, QDialogButtonBox *buttonBox=nullptr) |
| Asks a question to the user with a message in a modal pop-up dialog. More...
|
|
static bool | askUser (const QString &dialogTitle, const QString &labelText, const QString &text, bool monospaceFont=false, QDialogButtonBox *buttonBox=nullptr) |
| Asks a question to the user with a message and text in a modal pop-up dialog. More...
|
|
static bool | askUser (SBGWindowWidget *widget, QDialogButtonBox *butons=nullptr) |
| Asks a question to the user with a widget in a modal pop-up dialog. More...
|
|
static bool | askUser (QWidget *widget, QDialogButtonBox *butons=nullptr) |
| Asks a question to the user with a widget in a modal pop-up dialog. More...
|
|
static bool | getColorFromUser (const QString &dialogTitle, SBColor &result) |
| Gets a color from the user in a modal pop-up dialog.
|
|
static bool | getDoubleFromUser (const QString &dialogTitle, double &result, double minimum, double maximum, double singleStep=1.0, const QString &prefix="", const QString &suffix="", int decimals=2) |
| Gets a number from the user in a modal pop-up dialog.
|
|
static bool | getFontFromUser (const QString &dialogTitle, QFont &result) |
| Gets a font from the user in a modal pop-up dialog.
|
|
static bool | getIntegerFromUser (const QString &dialogTitle, int &result, int minimum, int maximum, int singleStep=1, const QString &prefix="", const QString &suffix="") |
| Gets a number from the user in a modal pop-up dialog.
|
|
static bool | getIntegerIntervalFromUser (const QString &dialogTitle, const QStringList &labelText, std::pair< int, int > &result, const std::pair< int, int > &minValueInterval, const std::pair< int, int > &maxValueInterval, const std::pair< int, int > &singleStep=std::pair< int, int >(1, 1), const QString &prefix="", const QString &suffix="") |
| Gets an integer interval from the user in a modal pop-up dialog.
|
|
static bool | getDoubleIntervalFromUser (const QString &dialogTitle, const QStringList &labelText, std::pair< double, double > &result, const std::pair< double, double > &minValueInterval, const std::pair< double, double > &maxValueInterval, const std::pair< double, double > &singleStep=std::pair< double, double >(1.0, 1.0), const QString &prefix="", const QString &suffix="") |
| Gets a double interval from the user in a modal pop-up dialog.
|
|
static bool | getStringFromUser (const QString &dialogTitle, QString &result) |
| Gets a string from the user in a modal pop-up dialog.
|
|
static bool | getPlainTextFromUser (const QString &dialogTitle, QString &result, int maxSize=0) |
| Gets a plain text from the user in a modal pop-up dialog.
|
|
static bool | getItemFromUser (const QString &dialogTitle, int &resultIndex, const QString &label, const QStringList &items) |
| Gets an item from the user in a modal pop-up dialog.
|
|
static bool | getItemFromUser (const QString &dialogTitle, QString &result, const QString &label, const QStringList &items, int current=0) |
| Gets an item from the user in a modal pop-up dialog.
|
|
static bool | getPathFromUser (const QString &dialogTitle, QString &result) |
| Gets a path from the user in a modal pop-up dialog.
|
|
static bool | getFileNameFromUser (const QString &dialogTitle, QString &result, const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=Q_NULLPTR, QFileDialog::Options options=QFileDialog::Options()) |
| Gets a filename from the user in a modal pop-up dialog with Open button.
|
|
static bool | getFileNamesFromUser (const QString &dialogTitle, QStringList &result, const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=Q_NULLPTR, QFileDialog::Options options=QFileDialog::Options()) |
| Gets a filename from the user in a modal pop-up dialog with Open button.
|
|
static bool | getSaveFileNameFromUser (const QString &dialogTitle, QString &result, const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=Q_NULLPTR, QFileDialog::Options options=QFileDialog::Options()) |
| Gets a filename from the user in a modal pop-up dialog with Save button.
|
|
static SBDColorPalette * | getColorPaletteFromUser (const QString &dialogTitle, bool &ok, const SBDColorPalette *defaultColorPalette=nullptr) |
| Gets a color palette from the user in a modal pop-up dialog. If the defaultColorPalette is provided it is set as a default one in the color palette dialog.
|
|
static bool | getColorSchemeFromUser (const QString &dialogTitle, std::string &colorSchemeClassName, const SBDColorPalette *defaultColorPalette, SBDColorPalette *newColorPalette) |
| Gets a color scheme and a color palette from the user in a modal pop-up dialog. If the defaultColorPalette is provided it is set as a default one in the dialog.
|
|
This class is the base class of dialogs in the SAMSON GUI. SAMSON Extension do not create instances of this class, but of classes that derive from this class. In order for a dialog to have the SAMSON interface style, the dialog is embedded in a window.
- See also
- SBGWindow
-
SBGWindowWidget