Browse Source

Better sizing of wx_html_report_panel in dialog_netlist (fix bug #1522758)

pull/9/head
jean-pierre charras 10 years ago
parent
commit
4c880400b1
  1. 7
      common/dialogs/wx_html_report_panel.cpp
  2. 3
      common/dialogs/wx_html_report_panel.h
  3. 2
      pcbnew/dialogs/dialog_netlist.cpp

7
common/dialogs/wx_html_report_panel.cpp

@ -45,6 +45,13 @@ WX_HTML_REPORT_PANEL::~WX_HTML_REPORT_PANEL()
}
void WX_HTML_REPORT_PANEL::MsgPanelSetMinSize( const wxSize& aMinSize )
{
m_htmlView->SetMinSize( aMinSize );
GetSizer()->SetSizeHints( this );
}
REPORTER& WX_HTML_REPORT_PANEL::Reporter()
{
return m_reporter;

3
common/dialogs/wx_html_report_panel.h

@ -46,6 +46,9 @@ public:
const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL );
~WX_HTML_REPORT_PANEL();
///> Set the min size of the area which displays html messages:
void MsgPanelSetMinSize( const wxSize& aMinSize );
///> returns the reporter object that reports to this panel
REPORTER& Reporter();

2
pcbnew/dialogs/dialog_netlist.cpp

@ -112,6 +112,8 @@ DIALOG_NETLIST::DIALOG_NETLIST( PCB_EDIT_FRAME* aParent, wxDC * aDC,
int severities = m_config->Read( NETLIST_FILTER_MESSAGES_KEY, -1l );
m_MessageWindow->SetVisibleSeverities( severities );
// Update sizes and sizers:
m_MessageWindow->MsgPanelSetMinSize( wxSize( -1, 150 ) );
GetSizer()->SetSizeHints( this );
}

Loading…
Cancel
Save