Mixxx
|
#include <errordialoghandler.h>
Public Member Functions | |
void | setTitle (QString title) |
void | setKey (QString key) |
QString | getKey () |
void | setText (QString text) |
QString | getText () |
void | setInfoText (QString text) |
void | setDetails (QString text) |
void | setModal (bool modal) |
void | setType (DialogType typeToSet) |
void | setIcon (QMessageBox::Icon icon) |
void | addButton (QMessageBox::StandardButton) |
void | setDefaultButton (QMessageBox::StandardButton button) |
void | setEscapeButton (QMessageBox::StandardButton button) |
Protected Member Functions | |
ErrorDialogProperties () | |
Protected Attributes | |
QString | m_title |
QString | m_key |
QString | m_text |
QString | m_infoText |
QString | m_details |
bool | m_modal |
DialogType | m_type |
QMessageBox::Icon | m_icon |
QList < QMessageBox::StandardButton > | m_buttons |
QMessageBox::StandardButton | m_defaultButton |
QMessageBox::StandardButton | m_escapeButton |
Friends | |
class | ErrorDialogHandler |
Definition at line 42 of file errordialoghandler.h.
ErrorDialogProperties::ErrorDialogProperties | ( | ) | [protected] |
Definition at line 23 of file errordialoghandler.cpp.
void ErrorDialogProperties::addButton | ( | QMessageBox::StandardButton | button | ) |
Add a standard button to the box
Definition at line 55 of file errordialoghandler.cpp.
QString ErrorDialogProperties::getKey | ( | ) | [inline] |
QString ErrorDialogProperties::getText | ( | ) | [inline] |
void ErrorDialogProperties::setDefaultButton | ( | QMessageBox::StandardButton | button | ) | [inline] |
Set the default button to highlight
Definition at line 70 of file errordialoghandler.h.
void ErrorDialogProperties::setDetails | ( | QString | text | ) | [inline] |
Set detailed text (causes "Show Details" button to appear.)
Definition at line 59 of file errordialoghandler.h.
void ErrorDialogProperties::setEscapeButton | ( | QMessageBox::StandardButton | button | ) | [inline] |
Set the button to click if the Escape key is pressed
Definition at line 72 of file errordialoghandler.h.
void ErrorDialogProperties::setIcon | ( | QMessageBox::Icon | icon | ) | [inline] |
Set the box's icon to one of the standard ones
Definition at line 65 of file errordialoghandler.h.
void ErrorDialogProperties::setInfoText | ( | QString | text | ) | [inline] |
Set additional window text
Definition at line 57 of file errordialoghandler.h.
void ErrorDialogProperties::setKey | ( | QString | key | ) | [inline] |
Set a key to prevent multiple dialogs until the first is closed
Definition at line 51 of file errordialoghandler.h.
void ErrorDialogProperties::setModal | ( | bool | modal | ) | [inline] |
Set whether the box is modal (blocks the GUI) or not
Definition at line 61 of file errordialoghandler.h.
void ErrorDialogProperties::setText | ( | QString | text | ) |
Set the primary window text
Definition at line 34 of file errordialoghandler.cpp.
void ErrorDialogProperties::setTitle | ( | QString | title | ) |
Set the window title. ("Mixxx" is always prepended.)
Definition at line 30 of file errordialoghandler.cpp.
void ErrorDialogProperties::setType | ( | DialogType | typeToSet | ) |
Automatically sets the icon to match the type for convenience.
Definition at line 40 of file errordialoghandler.cpp.
friend class ErrorDialogHandler [friend] |
Definition at line 46 of file errordialoghandler.h.
QList<QMessageBox::StandardButton> ErrorDialogProperties::m_buttons [protected] |
List of standard buttons to add to the box, in order Note that a QMessageBox::Ignore button, if clicked, will suppress error boxes with the same key for the duration of the application.
Definition at line 89 of file errordialoghandler.h.
QMessageBox::StandardButton ErrorDialogProperties::m_defaultButton [protected] |
The default button to highlight, if any.
Definition at line 91 of file errordialoghandler.h.
QString ErrorDialogProperties::m_details [protected] |
Definition at line 82 of file errordialoghandler.h.
QMessageBox::StandardButton ErrorDialogProperties::m_escapeButton [protected] |
The button that's clicked if the Escape key is pressed.
Definition at line 93 of file errordialoghandler.h.
QMessageBox::Icon ErrorDialogProperties::m_icon [protected] |
Definition at line 85 of file errordialoghandler.h.
QString ErrorDialogProperties::m_infoText [protected] |
Definition at line 81 of file errordialoghandler.h.
QString ErrorDialogProperties::m_key [protected] |
Definition at line 79 of file errordialoghandler.h.
bool ErrorDialogProperties::m_modal [protected] |
Definition at line 83 of file errordialoghandler.h.
QString ErrorDialogProperties::m_text [protected] |
Definition at line 80 of file errordialoghandler.h.
QString ErrorDialogProperties::m_title [protected] |
Definition at line 78 of file errordialoghandler.h.
DialogType ErrorDialogProperties::m_type [protected] |
Definition at line 84 of file errordialoghandler.h.