2009-01-19 19:08:42 +00:00
|
|
|
/**
|
2011-11-08 16:37:25 +00:00
|
|
|
* This file is part of the common library
|
2009-01-19 19:08:42 +00:00
|
|
|
* @file confirm.h
|
|
|
|
* @see common.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __INCLUDE__CONFIRM_H__
|
|
|
|
#define __INCLUDE__CONFIRM_H__ 1
|
|
|
|
|
|
|
|
|
2011-11-08 16:37:25 +00:00
|
|
|
/**
|
|
|
|
* Function DisplayError
|
|
|
|
* displays an error or warning message box with \a aMessage.
|
|
|
|
*
|
|
|
|
* @warning Setting \a displaytime does not work. Do not use it.
|
|
|
|
*/
|
|
|
|
void DisplayError( wxWindow* parent, const wxString& aMessage, int displaytime = 0 );
|
2009-01-19 19:08:42 +00:00
|
|
|
|
2011-11-08 16:37:25 +00:00
|
|
|
/**
|
|
|
|
* Function DisplayInfoMessage
|
|
|
|
* displays an informational message box with \a aMessage.
|
|
|
|
*
|
|
|
|
* @warning Setting \a displaytime does not work. Do not use it.
|
|
|
|
*/
|
|
|
|
void DisplayInfoMessage( wxWindow* parent, const wxString& aMessage, int displaytime = 0 );
|
2009-01-19 19:08:42 +00:00
|
|
|
|
2011-11-08 16:37:25 +00:00
|
|
|
/**
|
|
|
|
* Function IsOK
|
|
|
|
* gets the user response to \a aMessage.
|
|
|
|
*
|
|
|
|
* @return True if user selected the yes button, otherwise false.
|
|
|
|
*/
|
|
|
|
bool IsOK( wxWindow* parent, const wxString& aMessage );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function DisplayHtmlInforMessage
|
|
|
|
* displays \a aMessage in HTML format.
|
|
|
|
*/
|
|
|
|
void DisplayHtmlInfoMessage( wxWindow* parent, const wxString& title,
|
|
|
|
const wxString& aMessage,
|
|
|
|
const wxSize& size = wxDefaultSize );
|
2011-09-06 07:02:18 +00:00
|
|
|
|
|
|
|
|
2009-01-19 19:08:42 +00:00
|
|
|
#endif /* __INCLUDE__CONFIRM_H__ */
|