Kexi API Documentation (2.0 alpha)

KexiGUIMessageHandler Class Reference

#include <kexiguimsghandler.h>

Inheritance diagram for KexiGUIMessageHandler:

KexiDB::MessageHandler KexiMainWindowImpl KexiTextMessageHandler List of all members.

Public Member Functions

 KexiGUIMessageHandler (QWidget *parent=0)
virtual ~KexiGUIMessageHandler ()
virtual void showErrorMessage (const QString &title, const QString &details=QString::null)
virtual void showErrorMessage (KexiDB::Object *obj, const QString &msg=QString::null)
void showErrorMessage (const QString &, const QString &, KexiDB::Object *obj)
void showErrorMessage (Kexi::ObjectStatus *status)
void showErrorMessage (const QString &message, Kexi::ObjectStatus *status)
void showSorryMessage (const QString &title, const QString &details=QString::null)
virtual void showMessage (MessageType type, const QString &title, const QString &details, const QString &dontShowAgainName=QString::null)
virtual void showWarningContinueMessage (const QString &title, const QString &details=QString::null, const QString &dontShowAgainName=QString::null)
virtual int askQuestion (const QString &message, KMessageBox::DialogType dlgType, KMessageBox::ButtonCode defaultResult, const KGuiItem &buttonYes=KStdGuiItem::yes(), const KGuiItem &buttonNo=KStdGuiItem::no(), const QString &dontShowAskAgainName=QString::null, int options=KMessageBox::Notify)

Constructor & Destructor Documentation

KexiGUIMessageHandler::KexiGUIMessageHandler QWidget parent = 0  ) 
 

Definition at line 29 of file kexiguimsghandler.cpp.

KexiGUIMessageHandler::~KexiGUIMessageHandler  )  [virtual]
 

Definition at line 34 of file kexiguimsghandler.cpp.


Member Function Documentation

int KexiGUIMessageHandler::askQuestion const QString message,
KMessageBox::DialogType  dlgType,
KMessageBox::ButtonCode  defaultResult,
const KGuiItem &  buttonYes = KStdGuiItem::yes(),
const KGuiItem &  buttonNo = KStdGuiItem::no(),
const QString dontShowAskAgainName = QString::null,
int  options = KMessageBox::Notify
[virtual]
 

Interactively asks a question using KMessageBox. See KexiDB::MessageHandler::askQuestion() for details.

Reimplemented from KexiDB::MessageHandler.

Definition at line 161 of file kexiguimsghandler.cpp.

References KexiDB::MessageHandler::m_messageHandlerParentWidget.

void KexiGUIMessageHandler::showErrorMessage const QString message,
Kexi::ObjectStatus status
 

Definition at line 86 of file kexiguimsghandler.cpp.

References Kexi::ObjectStatus::clearStatus(), Kexi::ObjectStatus::dbObject(), Kexi::ObjectStatus::description, Kexi::ObjectStatus::error(), Kexi::ObjectStatus::message, and showErrorMessage().

void KexiGUIMessageHandler::showErrorMessage Kexi::ObjectStatus status  ) 
 

Definition at line 80 of file kexiguimsghandler.cpp.

References showErrorMessage().

void KexiGUIMessageHandler::showErrorMessage const QString ,
const QString ,
KexiDB::Object obj
 

Definition at line 66 of file kexiguimsghandler.cpp.

References KexiDB::getHTMLErrorMesage(), and showErrorMessage().

void KexiGUIMessageHandler::showErrorMessage KexiDB::Object obj,
const QString msg = QString::null
[virtual]
 

Shows error message with msg text. Existing error message from obj object is also copied, if present.

Implements KexiDB::MessageHandler.

Definition at line 40 of file kexiguimsghandler.cpp.

References KexiDB::getHTMLErrorMesage(), and showErrorMessage().

void KexiGUIMessageHandler::showErrorMessage const QString title,
const QString details = QString::null
[virtual]
 

Shows error message with title (it is not caption) and details.

Implements KexiDB::MessageHandler.

Definition at line 55 of file kexiguimsghandler.cpp.

References KexiDB::MessageHandler::Error, and showMessage().

Referenced by KexiCSVImportDialog::accept(), KexiMainWindowImpl::initUserMode(), KexiCSVExport::exportData(), KexiCSVExportWizard::KexiCSVExportWizard(), KexiMainWindowImpl::renameObject(), KexiMainWindowImpl::saveObject(), KexiStartupHandler::selectProject(), showErrorMessage(), KexiMainWindowImpl::Private::showStartProcessMsg(), KexiMainWindowImpl::slotAutoOpenObjectsLater(), KexiMainWindowImpl::slotToolsCompactDatabase(), and KexiMainWindowImpl::switchToViewMode().

void KexiGUIMessageHandler::showMessage MessageType  type,
const QString title,
const QString details,
const QString dontShowAgainName = QString::null
[virtual]
 

Displays a message of a type type, with title text and optional details. dontShowAgainName can be specified to add "Do not show again" option if type is Warning.

Definition at line 113 of file kexiguimsghandler.cpp.

References KexiDB::MessageHandler::Error, KexiDB::MessageHandler::m_enableMessages, KexiDB::MessageHandler::m_messageHandlerParentWidget, KexiUtils::removeWaitCursor(), showWarningContinueMessage(), and KexiDB::MessageHandler::Warning.

Referenced by showErrorMessage(), and showSorryMessage().

void KexiGUIMessageHandler::showSorryMessage const QString title,
const QString details = QString::null
 

Displays a "Sorry" message with title text and optional details.

Definition at line 61 of file kexiguimsghandler.cpp.

References showMessage(), and KexiDB::MessageHandler::Sorry.

Referenced by KexiMainWindowImpl::removeObject(), and KexiMainWindowImpl::renameObject().

void KexiGUIMessageHandler::showWarningContinueMessage const QString title,
const QString details = QString::null,
const QString dontShowAgainName = QString::null
[virtual]
 

Displays a Warning message with title text and optional details with "Continue" button instead "OK". dontShowAgainName can be specified to add "Do not show again" option.

Definition at line 144 of file kexiguimsghandler.cpp.

References KexiDB::MessageHandler::m_messageHandlerParentWidget.

Referenced by KexiMainWindowImpl::initNavigator(), and showMessage().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:03 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003