2009-07-08 15:42:45 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2018-02-10 23:10:39 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Dec 30 2017)
|
2009-07-08 15:42:45 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
2017-12-26 14:38:45 +00:00
|
|
|
// PLEASE DO *NOT* EDIT THIS FILE!
|
2009-07-08 15:42:45 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#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
|
|
|
{
|
2018-01-07 04:27:08 +00:00
|
|
|
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
2009-07-08 15:42:45 +00:00
|
|
|
|
|
|
|
wxBoxSizer* bMainSizer;
|
|
|
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2018-02-10 23:10:39 +00:00
|
|
|
m_htmlWindow = new wxHtmlWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
|
2017-12-26 14:38:45 +00:00
|
|
|
m_htmlWindow->SetMinSize( wxSize( 400,250 ) );
|
|
|
|
|
2018-02-10 23:10:39 +00:00
|
|
|
bMainSizer->Add( m_htmlWindow, 1, wxALL|wxEXPAND, 5 );
|
2009-07-08 15:42:45 +00:00
|
|
|
|
2018-02-10 23:10:39 +00:00
|
|
|
m_buttonClose = new wxButton( this, wxID_CANCEL, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
2009-07-09 17:02:15 +00:00
|
|
|
m_buttonClose->SetDefault();
|
2017-12-26 14:38:45 +00:00
|
|
|
bMainSizer->Add( m_buttonClose, 0, wxALIGN_RIGHT|wxALL, 5 );
|
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();
|
2017-12-26 14:38:45 +00:00
|
|
|
bMainSizer->Fit( this );
|
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
|
|
|
}
|