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.

118 lines
4.5 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_rc_job_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_RC_JOB_BASE::DIALOG_RC_JOB_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
  10. {
  11. this->SetSizeHints( wxDefaultSize, wxDefaultSize );
  12. wxBoxSizer* bSizerMain;
  13. bSizerMain = new wxBoxSizer( wxVERTICAL );
  14. m_staticText9 = new wxStaticText( this, wxID_ANY, _("Options"), wxDefaultPosition, wxDefaultSize, 0 );
  15. m_staticText9->Wrap( -1 );
  16. m_staticText9->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
  17. bSizerMain->Add( m_staticText9, 0, wxALL, 5 );
  18. m_panel9 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
  19. wxFlexGridSizer* fgSizer1;
  20. fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
  21. fgSizer1->SetFlexibleDirection( wxBOTH );
  22. fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  23. m_staticText18 = new wxStaticText( m_panel9, wxID_ANY, _("Format"), wxDefaultPosition, wxDefaultSize, 0 );
  24. m_staticText18->Wrap( -1 );
  25. fgSizer1->Add( m_staticText18, 0, wxALIGN_CENTER|wxALL, 5 );
  26. wxArrayString m_choiceFormatChoices;
  27. m_choiceFormat = new wxChoice( m_panel9, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceFormatChoices, 0 );
  28. m_choiceFormat->SetSelection( 0 );
  29. fgSizer1->Add( m_choiceFormat, 0, wxALL, 5 );
  30. m_staticText10 = new wxStaticText( m_panel9, wxID_ANY, _("Violations"), wxDefaultPosition, wxDefaultSize, 0 );
  31. m_staticText10->Wrap( -1 );
  32. fgSizer1->Add( m_staticText10, 0, wxALIGN_CENTER|wxALL, 5 );
  33. m_panel6 = new wxPanel( m_panel9, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
  34. wxBoxSizer* bSizer2;
  35. bSizer2 = new wxBoxSizer( wxHORIZONTAL );
  36. m_cbViolationErrors = new wxCheckBox( m_panel6, wxID_ANY, _("Errors"), wxDefaultPosition, wxDefaultSize, 0 );
  37. bSizer2->Add( m_cbViolationErrors, 0, wxALL, 5 );
  38. m_cbViolationWarnings = new wxCheckBox( m_panel6, wxID_ANY, _("Warnings"), wxDefaultPosition, wxDefaultSize, 0 );
  39. bSizer2->Add( m_cbViolationWarnings, 0, wxALL, 5 );
  40. m_panel6->SetSizer( bSizer2 );
  41. m_panel6->Layout();
  42. bSizer2->Fit( m_panel6 );
  43. fgSizer1->Add( m_panel6, 1, wxEXPAND | wxALL, 5 );
  44. m_textOutputPath = new wxStaticText( m_panel9, wxID_ANY, _("Output File"), wxDefaultPosition, wxDefaultSize, 0 );
  45. m_textOutputPath->Wrap( -1 );
  46. fgSizer1->Add( m_textOutputPath, 0, wxALIGN_CENTER|wxALL, 5 );
  47. m_textCtrlOutputPath = new wxTextCtrl( m_panel9, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  48. m_textCtrlOutputPath->SetMinSize( wxSize( 350,-1 ) );
  49. fgSizer1->Add( m_textCtrlOutputPath, 0, wxALL, 5 );
  50. fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
  51. m_cbHaltOutput = new wxCheckBox( m_panel9, wxID_ANY, _("Report job failure when violations present"), wxDefaultPosition, wxDefaultSize, 0 );
  52. fgSizer1->Add( m_cbHaltOutput, 1, wxALL, 5 );
  53. fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
  54. m_cbAllTrackViolations = new wxCheckBox( m_panel9, wxID_ANY, _("Report all errors for each track"), wxDefaultPosition, wxDefaultSize, 0 );
  55. fgSizer1->Add( m_cbAllTrackViolations, 0, wxALL, 5 );
  56. fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 );
  57. m_cbSchParity = new wxCheckBox( m_panel9, wxID_ANY, _("Test for parity between PCB and schematic"), wxDefaultPosition, wxDefaultSize, 0 );
  58. fgSizer1->Add( m_cbSchParity, 0, wxALL, 5 );
  59. m_panel9->SetSizer( fgSizer1 );
  60. m_panel9->Layout();
  61. fgSizer1->Fit( m_panel9 );
  62. bSizerMain->Add( m_panel9, 1, wxEXPAND | wxALL, 5 );
  63. m_sdbSizer1 = new wxStdDialogButtonSizer();
  64. m_sdbSizer1OK = new wxButton( this, wxID_OK );
  65. m_sdbSizer1->AddButton( m_sdbSizer1OK );
  66. m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
  67. m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
  68. m_sdbSizer1->Realize();
  69. bSizerMain->Add( m_sdbSizer1, 0, wxEXPAND, 5 );
  70. this->SetSizer( bSizerMain );
  71. this->Layout();
  72. bSizerMain->Fit( this );
  73. this->Centre( wxBOTH );
  74. // Connect Events
  75. m_choiceFormat->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RC_JOB_BASE::OnFormatChoice ), NULL, this );
  76. }
  77. DIALOG_RC_JOB_BASE::~DIALOG_RC_JOB_BASE()
  78. {
  79. // Disconnect Events
  80. m_choiceFormat->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( DIALOG_RC_JOB_BASE::OnFormatChoice ), NULL, this );
  81. }