2009-07-08 15:42:45 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2013-12-09 18:09:58 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Nov 5 2013)
|
2009-07-08 15:42:45 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_display_info_HTML_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2013-06-19 16:11:12 +00:00
|
|
|
DIALOG_DISPLAY_HTML_TEXT_BASE::DIALOG_DISPLAY_HTML_TEXT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
2009-07-08 15:42:45 +00:00
|
|
|
{
|
2009-07-10 12:29:31 +00:00
|
|
|
this->SetSizeHints( wxSize( 400,120 ), wxDefaultSize );
|
2009-07-08 15:42:45 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2009-07-10 12:29:31 +00:00
|
|
|
m_htmlWindow = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO|wxSUNKEN_BORDER );
|
|
|
|
bMainSizer->Add( m_htmlWindow, 1, wxEXPAND, 5 );
|
2009-07-08 15:42:45 +00:00
|
|
|
|
2009-07-10 12:29:31 +00:00
|
|
|
m_buttonClose = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
|
2009-07-09 17:02:15 +00:00
|
|
|
m_buttonClose->SetDefault();
|
2013-12-09 18:09:58 +00:00
|
|
|
bMainSizer->Add( m_buttonClose, 0, wxALIGN_RIGHT|wxALL, 10 );
|
2009-07-09 17:02:15 +00:00
|
|
|
|
2013-06-19 16:11:12 +00:00
|
|
|
|
2009-07-08 15:42:45 +00:00
|
|
|
this->SetSizer( bMainSizer );
|
|
|
|
this->Layout();
|
2009-07-09 17:02:15 +00:00
|
|
|
|
|
|
|
// Connect Events
|
|
|
|
m_htmlWindow->Connect( wxEVT_COMMAND_HTML_LINK_CLICKED, wxHtmlLinkEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnHTMLLinkClicked ), NULL, this );
|
|
|
|
m_buttonClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnCloseButtonClick ), NULL, this );
|
2009-07-08 15:42:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_DISPLAY_HTML_TEXT_BASE::~DIALOG_DISPLAY_HTML_TEXT_BASE()
|
|
|
|
{
|
2009-07-09 17:02:15 +00:00
|
|
|
// Disconnect Events
|
|
|
|
m_htmlWindow->Disconnect( wxEVT_COMMAND_HTML_LINK_CLICKED, wxHtmlLinkEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnHTMLLinkClicked ), NULL, this );
|
|
|
|
m_buttonClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DISPLAY_HTML_TEXT_BASE::OnCloseButtonClick ), NULL, this );
|
2013-06-19 16:11:12 +00:00
|
|
|
|
2009-07-08 15:42:45 +00:00
|
|
|
}
|