html_messagebox.h 1.4 KB
Newer Older
1 2
#ifndef _html_messagebox_
#define _html_messagebox_
3

4

5 6 7 8 9
/**
@file
Subclass of DIALOG_DISPLAY_HTML_TEXT_BASE, which is generated by wxFormBuilder.
*/

10
#include <../common/dialogs/dialog_display_info_HTML_base.h>
11

12 13 14 15

/**
 * Class HTML_MESSAGE_BOX
 */
16
class HTML_MESSAGE_BOX : public DIALOG_DISPLAY_HTML_TEXT_BASE
17 18
{
protected:
19
    // Handlers for HTML_MESSAGE_BOX_BASE events.
20
    void OnCloseButtonClick( wxCommandEvent& event );
21 22

public:
23 24 25 26
    /**
     * Constructor
     */
    HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle,
27 28
                       wxPoint aPos = wxDefaultPosition,
                       wxSize aSize = wxSize( 450,250 ) );
29

30 31
    /**
     * Function ListSet
32
     * Add a list of items.
33
     * @param aList = a string containing items. Items are separated by '\n'
34
     */
35 36
    void ListSet( const wxString& aList );

37 38
    /**
     * Function ListSet
39
     * Add a list of items.
40
     * @param aList = a wxArrayString containing items.
41
     */
42
    void ListSet( const wxArrayString& aList );
43

44
    void ListClear();
45

46 47
    /**
     * Function MessageSet
48
     * adds a message (in bold) to message list.
49
     * @param message = the message
50
     */
51
    void MessageSet( const wxString& message );
52 53 54

    /**
     * Function AddHTML_Text
55
     * adds html text (without any change) to message list.
56 57
     * @param message = the text to add
     */
58
    void AddHTML_Text( const wxString& message );
59 60
};

61
#endif // _html_messagebox_