2010-10-25 16:14:36 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////
|
2011-05-09 19:44:06 +00:00
|
|
|
// C++ code generated with wxFormBuilder (version Nov 17 2010)
|
2010-10-25 16:14:36 +00:00
|
|
|
// http://www.wxformbuilder.org/
|
|
|
|
//
|
|
|
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "dialog_plot_schematic_PS_base.h"
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
DIALOG_PLOT_SCHEMATIC_PS_BASE::DIALOG_PLOT_SCHEMATIC_PS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
|
|
|
|
{
|
|
|
|
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
|
|
|
|
|
|
|
|
wxBoxSizer* bmainSizer;
|
|
|
|
bmainSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
|
|
|
wxBoxSizer* bupperSizer;
|
|
|
|
bupperSizer = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2010-10-26 08:22:38 +00:00
|
|
|
wxString m_SizeOptionChoices[] = { _("Schematic size"), _("Force size A4"), _("Force size A") };
|
2010-10-25 16:14:36 +00:00
|
|
|
int m_SizeOptionNChoices = sizeof( m_SizeOptionChoices ) / sizeof( wxString );
|
2010-10-26 08:22:38 +00:00
|
|
|
m_SizeOption = new wxRadioBox( this, wxID_ANY, _("Plot Page Size:"), wxDefaultPosition, wxDefaultSize, m_SizeOptionNChoices, m_SizeOptionChoices, 1, wxRA_SPECIFY_COLS );
|
2010-10-25 16:14:36 +00:00
|
|
|
m_SizeOption->SetSelection( 0 );
|
|
|
|
bupperSizer->Add( m_SizeOption, 1, wxALL, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bupperSizer->Add( 10, 10, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* sbSizerMiddle;
|
|
|
|
sbSizerMiddle = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2010-10-26 08:22:38 +00:00
|
|
|
wxString m_PlotPSColorOptionChoices[] = { _("B/W"), _("Color") };
|
2010-10-25 16:14:36 +00:00
|
|
|
int m_PlotPSColorOptionNChoices = sizeof( m_PlotPSColorOptionChoices ) / sizeof( wxString );
|
2010-10-26 08:22:38 +00:00
|
|
|
m_PlotPSColorOption = new wxRadioBox( this, wxID_ANY, _("Plot Mode:"), wxDefaultPosition, wxDefaultSize, m_PlotPSColorOptionNChoices, m_PlotPSColorOptionChoices, 1, wxRA_SPECIFY_COLS );
|
2010-10-25 16:14:36 +00:00
|
|
|
m_PlotPSColorOption->SetSelection( 0 );
|
|
|
|
sbSizerMiddle->Add( m_PlotPSColorOption, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2010-10-26 08:22:38 +00:00
|
|
|
m_Plot_Sheet_Ref_Ctrl = new wxCheckBox( this, wxID_ANY, _("Print page references"), wxDefaultPosition, wxDefaultSize, 0 );
|
2010-10-25 16:14:36 +00:00
|
|
|
m_Plot_Sheet_Ref_Ctrl->SetValue(true);
|
|
|
|
sbSizerMiddle->Add( m_Plot_Sheet_Ref_Ctrl, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
bupperSizer->Add( sbSizerMiddle, 1, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
|
|
|
|
bupperSizer->Add( 10, 10, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bbuttonsSizer;
|
|
|
|
bbuttonsSizer = new wxBoxSizer( wxVERTICAL );
|
|
|
|
|
2010-10-26 08:22:38 +00:00
|
|
|
m_buttonPlotPage = new wxButton( this, wxID_ANY, _("&Plot Page"), wxDefaultPosition, wxDefaultSize, 0 );
|
2010-10-25 16:14:36 +00:00
|
|
|
bbuttonsSizer->Add( m_buttonPlotPage, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2010-10-26 08:22:38 +00:00
|
|
|
m_buttonPlotAll = new wxButton( this, wxID_ANY, _("Plot A&LL"), wxDefaultPosition, wxDefaultSize, 0 );
|
2010-10-25 16:14:36 +00:00
|
|
|
bbuttonsSizer->Add( m_buttonPlotAll, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
2011-03-14 15:17:18 +00:00
|
|
|
m_buttonClose = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
|
2010-10-25 16:14:36 +00:00
|
|
|
bbuttonsSizer->Add( m_buttonClose, 0, wxALL|wxEXPAND, 5 );
|
|
|
|
|
|
|
|
bupperSizer->Add( bbuttonsSizer, 0, wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
bmainSizer->Add( bupperSizer, 0, wxEXPAND, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* bSizerLineWidth;
|
|
|
|
bSizerLineWidth = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
2010-10-26 08:22:38 +00:00
|
|
|
m_defaultLineWidthTitle = new wxStaticText( this, wxID_ANY, _("Default line width:"), wxDefaultPosition, wxDefaultSize, 0 );
|
2010-10-25 16:14:36 +00:00
|
|
|
m_defaultLineWidthTitle->Wrap( -1 );
|
|
|
|
bSizerLineWidth->Add( m_defaultLineWidthTitle, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
|
|
|
|
|
|
|
m_DefaultLineSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
bSizerLineWidth->Add( m_DefaultLineSizeCtrl, 1, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
|
|
|
|
|
|
|
|
bmainSizer->Add( bSizerLineWidth, 0, wxEXPAND, 5 );
|
|
|
|
|
2010-10-26 08:22:38 +00:00
|
|
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Messages :"), wxDefaultPosition, wxDefaultSize, 0 );
|
2010-10-25 16:14:36 +00:00
|
|
|
m_staticText1->Wrap( -1 );
|
|
|
|
bmainSizer->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
m_MsgBox = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
|
|
|
|
m_MsgBox->SetMinSize( wxSize( -1,150 ) );
|
|
|
|
|
|
|
|
bmainSizer->Add( m_MsgBox, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
|
|
|
|
|
|
|
this->SetSizer( bmainSizer );
|
|
|
|
this->Layout();
|
|
|
|
|
|
|
|
this->Centre( wxBOTH );
|
|
|
|
|
|
|
|
// Connect Events
|
2010-10-26 08:22:38 +00:00
|
|
|
m_buttonPlotPage->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_SCHEMATIC_PS_BASE::OnPlotCurrent ), NULL, this );
|
|
|
|
m_buttonPlotAll->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_SCHEMATIC_PS_BASE::OnPlotAll ), NULL, this );
|
2010-10-25 16:14:36 +00:00
|
|
|
m_buttonClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_SCHEMATIC_PS_BASE::OnCancelClick ), NULL, this );
|
|
|
|
}
|
|
|
|
|
|
|
|
DIALOG_PLOT_SCHEMATIC_PS_BASE::~DIALOG_PLOT_SCHEMATIC_PS_BASE()
|
|
|
|
{
|
|
|
|
// Disconnect Events
|
2010-10-26 08:22:38 +00:00
|
|
|
m_buttonPlotPage->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_SCHEMATIC_PS_BASE::OnPlotCurrent ), NULL, this );
|
|
|
|
m_buttonPlotAll->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_SCHEMATIC_PS_BASE::OnPlotAll ), NULL, this );
|
2010-10-25 16:14:36 +00:00
|
|
|
m_buttonClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_SCHEMATIC_PS_BASE::OnCancelClick ), NULL, this );
|
|
|
|
|
|
|
|
}
|