You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
4.0 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Apr 16 2008)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO "NOT" EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_display_options_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
  10. {
  11. this->SetSizeHints( wxDefaultSize, wxDefaultSize );
  12. wxBoxSizer* bSizerMain;
  13. bSizerMain = new wxBoxSizer( wxVERTICAL );
  14. wxBoxSizer* bUpperSizer;
  15. bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
  16. wxString m_EdgesDisplayOptionChoices[] = { _("Line"), _("Filled"), _("Sketch") };
  17. int m_EdgesDisplayOptionNChoices = sizeof( m_EdgesDisplayOptionChoices ) / sizeof( wxString );
  18. m_EdgesDisplayOption = new wxRadioBox( this, ID_EDGE_SELECT, _("Edges:"), wxDefaultPosition, wxDefaultSize, m_EdgesDisplayOptionNChoices, m_EdgesDisplayOptionChoices, 1, wxRA_SPECIFY_COLS );
  19. m_EdgesDisplayOption->SetSelection( 0 );
  20. bUpperSizer->Add( m_EdgesDisplayOption, 1, wxALL|wxEXPAND, 5 );
  21. wxString m_TextDisplayOptionChoices[] = { _("Line"), _("Filled"), _("Sketch") };
  22. int m_TextDisplayOptionNChoices = sizeof( m_TextDisplayOptionChoices ) / sizeof( wxString );
  23. m_TextDisplayOption = new wxRadioBox( this, ID_TEXT_SELECT, _("Texts:"), wxDefaultPosition, wxDefaultSize, m_TextDisplayOptionNChoices, m_TextDisplayOptionChoices, 1, wxRA_SPECIFY_COLS );
  24. m_TextDisplayOption->SetSelection( 0 );
  25. bUpperSizer->Add( m_TextDisplayOption, 1, wxALL|wxEXPAND, 5 );
  26. wxStaticBoxSizer* sbSizer1;
  27. sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Pads:") ), wxVERTICAL );
  28. m_IsShowPadFill = new wxCheckBox( this, ID_PADFILL_OPT, _("Fill &pad"), wxDefaultPosition, wxDefaultSize, 0 );
  29. sbSizer1->Add( m_IsShowPadFill, 0, wxALL|wxEXPAND, 5 );
  30. m_IsShowPadNum = new wxCheckBox( this, wxID_ANY, _("Show pad &number"), wxDefaultPosition, wxDefaultSize, 0 );
  31. sbSizer1->Add( m_IsShowPadNum, 0, wxALL|wxEXPAND, 5 );
  32. bUpperSizer->Add( sbSizer1, 1, wxEXPAND|wxALL, 5 );
  33. bSizerMain->Add( bUpperSizer, 1, wxEXPAND, 5 );
  34. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  35. bSizerMain->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
  36. m_sdbSizer1 = new wxStdDialogButtonSizer();
  37. m_sdbSizer1OK = new wxButton( this, wxID_OK );
  38. m_sdbSizer1->AddButton( m_sdbSizer1OK );
  39. m_sdbSizer1Apply = new wxButton( this, wxID_APPLY );
  40. m_sdbSizer1->AddButton( m_sdbSizer1Apply );
  41. m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
  42. m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
  43. m_sdbSizer1->Realize();
  44. bSizerMain->Add( m_sdbSizer1, 0, wxEXPAND|wxALL, 5 );
  45. this->SetSizer( bSizerMain );
  46. this->Layout();
  47. // Connect Events
  48. m_sdbSizer1Apply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnApplyClick ), NULL, this );
  49. m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnCancelClick ), NULL, this );
  50. m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnOkClick ), NULL, this );
  51. }
  52. DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::~DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE()
  53. {
  54. // Disconnect Events
  55. m_sdbSizer1Apply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnApplyClick ), NULL, this );
  56. m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnCancelClick ), NULL, this );
  57. m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_FOOTPRINTS_DISPLAY_OPTIONS_BASE::OnOkClick ), NULL, this );
  58. }