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.

117 lines
4.9 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_draw_layers_settings_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DIALOG_DRAW_LAYERS_SETTINGS_BASE::DIALOG_DRAW_LAYERS_SETTINGS_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. m_namiSizer = new wxBoxSizer( wxVERTICAL );
  13. wxBoxSizer* bSizer3;
  14. bSizer3 = new wxBoxSizer( wxHORIZONTAL );
  15. m_stLayerNameTitle = new wxStaticText( this, wxID_ANY, _("Active layer name:"), wxDefaultPosition, wxDefaultSize, 0 );
  16. m_stLayerNameTitle->Wrap( -1 );
  17. bSizer3->Add( m_stLayerNameTitle, 0, wxALL, 5 );
  18. m_stLayerName = new wxStaticText( this, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
  19. m_stLayerName->Wrap( -1 );
  20. bSizer3->Add( m_stLayerName, 0, wxALL, 5 );
  21. m_namiSizer->Add( bSizer3, 0, wxEXPAND, 5 );
  22. wxFlexGridSizer* fgSizer;
  23. fgSizer = new wxFlexGridSizer( 3, 3, 0, 0 );
  24. fgSizer->AddGrowableCol( 1 );
  25. fgSizer->SetFlexibleDirection( wxBOTH );
  26. fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  27. m_stOffsetX = new wxStaticText( this, wxID_ANY, _("Offset X:"), wxDefaultPosition, wxDefaultSize, 0 );
  28. m_stOffsetX->Wrap( -1 );
  29. fgSizer->Add( m_stOffsetX, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  30. m_tcOffsetX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  31. fgSizer->Add( m_tcOffsetX, 0, wxALL|wxEXPAND, 5 );
  32. m_stUnitX = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
  33. m_stUnitX->Wrap( -1 );
  34. fgSizer->Add( m_stUnitX, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  35. m_stOffsetY = new wxStaticText( this, wxID_ANY, _("Offset Y:"), wxDefaultPosition, wxDefaultSize, 0 );
  36. m_stOffsetY->Wrap( -1 );
  37. fgSizer->Add( m_stOffsetY, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  38. m_tcOffsetY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  39. fgSizer->Add( m_tcOffsetY, 0, wxALL|wxEXPAND, 5 );
  40. m_stUnitY = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
  41. m_stUnitY->Wrap( -1 );
  42. fgSizer->Add( m_stUnitY, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  43. m_stLayerRot = new wxStaticText( this, wxID_ANY, _("Rotate counterclockwise:"), wxDefaultPosition, wxDefaultSize, 0 );
  44. m_stLayerRot->Wrap( -1 );
  45. fgSizer->Add( m_stLayerRot, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  46. m_tcRotation = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  47. fgSizer->Add( m_tcRotation, 0, wxALL|wxEXPAND, 5 );
  48. m_stUnitRot = new wxStaticText( this, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
  49. m_stUnitRot->Wrap( -1 );
  50. fgSizer->Add( m_stUnitRot, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
  51. m_namiSizer->Add( fgSizer, 0, wxEXPAND, 5 );
  52. m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  53. m_namiSizer->Add( m_staticline1, 0, wxALL|wxEXPAND, 5 );
  54. wxString m_rbScopeChoices[] = { _("Active layer"), _("All layers"), _("All visible layers") };
  55. int m_rbScopeNChoices = sizeof( m_rbScopeChoices ) / sizeof( wxString );
  56. m_rbScope = new wxRadioBox( this, wxID_ANY, _("Scope"), wxDefaultPosition, wxDefaultSize, m_rbScopeNChoices, m_rbScopeChoices, 1, wxRA_SPECIFY_COLS );
  57. m_rbScope->SetSelection( 0 );
  58. m_namiSizer->Add( m_rbScope, 0, wxALL, 5 );
  59. m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
  60. m_namiSizer->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
  61. wxBoxSizer* bottomButtonsSizer;
  62. bottomButtonsSizer = new wxBoxSizer( wxHORIZONTAL );
  63. m_sdbSizerStdButtons = new wxStdDialogButtonSizer();
  64. m_sdbSizerStdButtonsOK = new wxButton( this, wxID_OK );
  65. m_sdbSizerStdButtons->AddButton( m_sdbSizerStdButtonsOK );
  66. m_sdbSizerStdButtonsCancel = new wxButton( this, wxID_CANCEL );
  67. m_sdbSizerStdButtons->AddButton( m_sdbSizerStdButtonsCancel );
  68. m_sdbSizerStdButtons->Realize();
  69. bottomButtonsSizer->Add( m_sdbSizerStdButtons, 1, wxALL|wxEXPAND, 5 );
  70. m_namiSizer->Add( bottomButtonsSizer, 0, wxLEFT|wxEXPAND, 5 );
  71. this->SetSizer( m_namiSizer );
  72. this->Layout();
  73. m_namiSizer->Fit( this );
  74. // Connect Events
  75. this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_DRAW_LAYERS_SETTINGS_BASE::OnInitDlg ) );
  76. this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_DRAW_LAYERS_SETTINGS_BASE::OnUpdateUI ) );
  77. }
  78. DIALOG_DRAW_LAYERS_SETTINGS_BASE::~DIALOG_DRAW_LAYERS_SETTINGS_BASE()
  79. {
  80. // Disconnect Events
  81. this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_DRAW_LAYERS_SETTINGS_BASE::OnInitDlg ) );
  82. this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_DRAW_LAYERS_SETTINGS_BASE::OnUpdateUI ) );
  83. }