|
kwave
18.07.70
|
#include <MessageBox.h>


Classes | |
| class | Trigger |
Static Public Member Functions | |
| static int | questionYesNo (QWidget *widget, QString message, QString caption=QString(), const QString buttonYes=QString(), const QString buttonNo=QString(), const QString &dontAskAgainName=QString()) |
| static int | questionYesNoCancel (QWidget *widget, QString message, QString caption=QString(), const QString buttonYes=QString(), const QString buttonNo=QString(), const QString &dontAskAgainName=QString()) |
| static int | sorry (QWidget *widget, QString message, QString caption=QString()) |
| static int | warningYesNo (QWidget *widget, QString message, QString caption=QString(), const QString buttonYes=QString(), const QString buttonNo=QString(), const QString &dontAskAgainName=QString()) |
| static int | warningYesNoCancel (QWidget *widget, QString message, QString caption=QString(), const QString buttonYes=QString(), const QString buttonNo=QString(), const QString &dontAskAgainName=QString()) |
| static int | warningContinueCancel (QWidget *widget, QString message, QString caption=QString(), const QString buttonContinue=QString(), const QString buttonCancel=QString(), const QString &dontAskAgainName=QString()) |
| static int | error (QWidget *widget, QString message, QString caption=QString()) |
Protected Member Functions | |
| void | show () |
Private Member Functions | |
| MessageBox () | |
| MessageBox (KMessageBox::DialogType mode, QWidget *parent, QString message, QString caption, const QString &button1=QString(), const QString &button2=QString(), const QString &dontAskAgainName=QString()) | |
| virtual | ~MessageBox () |
| virtual int | retval () const |
Static Private Member Functions | |
| static int | exec (KMessageBox::DialogType mode, QWidget *parent, QString message, QString caption=QString(), const QString &button1=QString(), const QString &button2=QString(), const QString &dontAskAgainName=QString()) |
Private Attributes | |
| QSemaphore | m_semaphore |
| int | m_retval |
| KMessageBox::DialogType | m_mode |
| QWidget * | m_parent |
| QString | m_message |
| QString | m_caption |
| const QString | m_button1 |
| const QString | m_button2 |
| const QString | m_dont_ask_again_name |
Definition at line 35 of file MessageBox.h.
|
private |
Default constructor (not implemented)
|
private |
Constructor
| mode | the mode of the message box, error/warning/etc... |
| parent | parent widget |
| message | the message text of the box |
| caption | title of the window |
| button1 | a KGuiItem for the first button (optional) |
| button2 | a KGuiItem for the second button (optional) |
| dontAskAgainName | tag name for "do not ask again" |
Definition at line 29 of file MessageBox.cpp.
References m_semaphore, and show().

|
privatevirtual |
|
static |
Definition at line 126 of file MessageBox.cpp.
References exec().
Referenced by Kwave::PluginManager::createPluginInstance(), Kwave::OggDecoder::decode(), Kwave::OggEncoder::encode(), Kwave::AsciiEncoder::encode(), Kwave::WavEncoder::encode(), Kwave::MP3Encoder::encode(), Kwave::FlacEncoder::encode(), Kwave::FileContext::init(), Kwave::TopWidget::loadFile(), Kwave::AudiofileDecoder::open(), Kwave::FlacDecoder::open(), Kwave::WavDecoder::open(), Kwave::VorbisDecoder::open(), Kwave::OpusEncoder::open(), Kwave::OpusDecoder::open(), Kwave::PlaybackController::openDevice(), Kwave::OggDecoder::parseHeader(), Kwave::OpusDecoder::parseOpusHead(), Kwave::OpusDecoder::parseOpusTags(), Kwave::RecordPlugin::recordStopped(), Kwave::SignalManager::save(), Kwave::OpusEncoder::setupBitrateMode(), Kwave::OpusEncoder::setupEncoder(), and Kwave::SonagramPlugin::start().


|
staticprivate |
Creates and executes a KMessageBox in the same thread or via a blocking signal, depending on whether the current context is the GUI thread or not.
| mode | type of the message box |
| parent | the parent widget |
| message | the text of the message box |
| caption | the window title (optional) |
| button1 | a KGuiItem for the first button (optional) |
| button2 | a KGuiItem for the second button (optional) |
| dontAskAgainName | tag name for "do not ask again" |
Definition at line 134 of file MessageBox.cpp.
References retval().
Referenced by error(), questionYesNo(), questionYesNoCancel(), sorry(), warningContinueCancel(), warningYesNo(), and warningYesNoCancel().


|
static |
Definition at line 63 of file MessageBox.cpp.
References exec().
Referenced by Kwave::ConfirmCancelProxy::cancel(), Kwave::TopWidget::executeCommand(), Kwave::FileContext::parseCommands(), and Kwave::K3BExportPlugin::start().


|
static |
Definition at line 74 of file MessageBox.cpp.
References exec().
Referenced by Kwave::FileInfoPlugin::apply().


|
privatevirtual |
returns the return value of the KMessageBox
Definition at line 52 of file MessageBox.cpp.
References m_retval.
Referenced by exec().

|
protected |
shows the KMessageBox, always called in the GUI thread context.
Definition at line 148 of file MessageBox.cpp.
References m_button1, m_button2, m_caption, m_dont_ask_again_name, m_message, m_mode, m_parent, m_retval, and m_semaphore.
Referenced by MessageBox(), and Kwave::MessageBox::Trigger::~Trigger().

|
static |
Definition at line 85 of file MessageBox.cpp.
References exec().
Referenced by Kwave::VorbisEncoder::open(), Kwave::MP3Decoder::open(), Kwave::WavDecoder::open(), Kwave::RecordPlugin::setDevice(), Kwave::OpusEncoder::setupCodingRate(), Kwave::RecordPlugin::setupRecordThread(), Kwave::K3BExportPlugin::start(), Kwave::RecordPlugin::startRecording(), and Kwave::PlayBackPlugin::testPlayBack().


|
static |
Definition at line 115 of file MessageBox.cpp.
References exec().
Referenced by Kwave::SignalManager::continueWithoutUndo(), Kwave::MP3Encoder::encode(), Kwave::MP3Decoder::handleError(), Kwave::VorbisEncoder::open(), Kwave::WavDecoder::open(), Kwave::Logger::open(), Kwave::MP3Decoder::parseMp3Header(), Kwave::FileContext::revert(), Kwave::SignalManager::save(), Kwave::OpusEncoder::setupBitrate(), Kwave::OpusEncoder::setupDownMix(), and Kwave::SaveBlocksPlugin::start().


|
static |
Definition at line 93 of file MessageBox.cpp.
References exec().
Referenced by Kwave::FileProgress::closeEvent(), Kwave::MP3Decoder::handleError(), Kwave::FileContext::saveFileAs(), Kwave::MainWidget::saveLabels(), and Kwave::SaveBlocksPlugin::start().


|
static |
Definition at line 104 of file MessageBox.cpp.
References exec().
Referenced by Kwave::FileContext::closeFile(), Kwave::WavEncoder::encode(), and Kwave::MainWidget::labelProperties().


|
private |
|
private |
|
private |
|
private |
tag for "do not ask again" (optional)
Definition at line 191 of file MessageBox.h.
Referenced by show().
|
private |
|
private |
|
private |
|
private |
return value of the execution of the message box
Definition at line 170 of file MessageBox.h.
|
private |
semaphore for waiting on the GUI thread
Definition at line 167 of file MessageBox.h.
Referenced by MessageBox(), and show().