2011-09-04 18:35:14 +00:00
|
|
|
#ifndef _html_messagebox_
|
|
|
|
#define _html_messagebox_
|
2009-07-13 06:20:18 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
@file
|
|
|
|
Subclass of DIALOG_DISPLAY_HTML_TEXT_BASE, which is generated by wxFormBuilder.
|
|
|
|
*/
|
|
|
|
|
2010-11-20 10:59:59 +00:00
|
|
|
#include "../common/dialogs/dialog_display_info_HTML_base.h"
|
2009-07-13 06:20:18 +00:00
|
|
|
|
2011-09-04 18:35:14 +00:00
|
|
|
/** Implementing HTML_MESSAGE_BOX */
|
|
|
|
class HTML_MESSAGE_BOX : public DIALOG_DISPLAY_HTML_TEXT_BASE
|
2009-07-13 06:20:18 +00:00
|
|
|
{
|
|
|
|
protected:
|
2011-09-04 18:35:14 +00:00
|
|
|
// Handlers for HTML_MESSAGE_BOX_BASE events.
|
2010-11-12 15:17:10 +00:00
|
|
|
void OnCloseButtonClick( wxCommandEvent& event );
|
2009-07-13 06:20:18 +00:00
|
|
|
|
|
|
|
public:
|
2010-11-12 15:17:10 +00:00
|
|
|
/** Constructor */
|
2011-09-04 18:35:14 +00:00
|
|
|
HTML_MESSAGE_BOX( wxWindow* parent, const wxString & aTitle,
|
|
|
|
wxPoint aPos = wxDefaultPosition,
|
|
|
|
wxSize aSize = wxSize( 450,250 ) );
|
2010-10-05 19:54:27 +00:00
|
|
|
|
2010-11-12 15:17:10 +00:00
|
|
|
/**
|
|
|
|
* Function ListSet
|
2009-07-13 06:20:18 +00:00
|
|
|
* Add a list of items.
|
2011-01-01 17:28:21 +00:00
|
|
|
* @param aList = a string containing items. Items are separated by '\n'
|
2009-07-13 06:20:18 +00:00
|
|
|
*/
|
2011-01-01 17:28:21 +00:00
|
|
|
void ListSet(const wxString &aList);
|
2010-11-12 15:17:10 +00:00
|
|
|
/**
|
|
|
|
* Function ListSet
|
2010-10-05 19:54:27 +00:00
|
|
|
* Add a list of items.
|
2011-01-01 17:28:21 +00:00
|
|
|
* @param aList = a wxArrayString containing items.
|
2010-10-05 19:54:27 +00:00
|
|
|
*/
|
2011-01-01 17:28:21 +00:00
|
|
|
void ListSet(const wxArrayString &aList);
|
2010-10-05 19:54:27 +00:00
|
|
|
|
2010-11-12 15:17:10 +00:00
|
|
|
void ListClear();
|
|
|
|
/**
|
|
|
|
* Function MessageSet
|
2009-07-13 06:20:18 +00:00
|
|
|
* Add a message (in bold) to message list.
|
2009-07-13 07:01:57 +00:00
|
|
|
* @param message = the message
|
2009-07-13 06:20:18 +00:00
|
|
|
*/
|
2010-11-12 15:17:10 +00:00
|
|
|
void MessageSet(const wxString &message);
|
2011-09-04 18:35:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function AddHTML_Text
|
|
|
|
* Add a html text (without any change) to message list.
|
|
|
|
* @param message = the text to add
|
|
|
|
*/
|
|
|
|
void AddHTML_Text(const wxString &message);
|
2009-07-13 06:20:18 +00:00
|
|
|
};
|
|
|
|
|
2011-09-04 18:35:14 +00:00
|
|
|
#endif // _html_messagebox_
|