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.

130 lines
4.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO *NOT* EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_unit_entry_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. WX_UNIT_ENTRY_DIALOG_BASE::WX_UNIT_ENTRY_DIALOG_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. bSizerMain = new wxBoxSizer( wxVERTICAL );
  13. wxBoxSizer* bSizerContent;
  14. bSizerContent = new wxBoxSizer( wxHORIZONTAL );
  15. m_label = new wxStaticText( this, wxID_ANY, _("MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
  16. m_label->Wrap( -1 );
  17. bSizerContent->Add( m_label, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
  18. m_textCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  19. bSizerContent->Add( m_textCtrl, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
  20. m_unit_label = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
  21. m_unit_label->Wrap( -1 );
  22. bSizerContent->Add( m_unit_label, 0, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
  23. bSizerMain->Add( bSizerContent, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
  24. wxBoxSizer* bSizerButtons;
  25. bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
  26. bSizerButtons->Add( 100, 0, 1, 0, 5 );
  27. m_sdbSizer1 = new wxStdDialogButtonSizer();
  28. m_sdbSizer1OK = new wxButton( this, wxID_OK );
  29. m_sdbSizer1->AddButton( m_sdbSizer1OK );
  30. m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
  31. m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
  32. m_sdbSizer1->Realize();
  33. bSizerButtons->Add( m_sdbSizer1, 0, wxALL, 5 );
  34. bSizerMain->Add( bSizerButtons, 1, wxEXPAND, 5 );
  35. this->SetSizer( bSizerMain );
  36. this->Layout();
  37. bSizerMain->Fit( this );
  38. this->Centre( wxBOTH );
  39. }
  40. WX_UNIT_ENTRY_DIALOG_BASE::~WX_UNIT_ENTRY_DIALOG_BASE()
  41. {
  42. }
  43. WX_PT_ENTRY_DIALOG_BASE::WX_PT_ENTRY_DIALOG_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
  44. {
  45. this->SetSizeHints( wxDefaultSize, wxDefaultSize );
  46. bSizerMain = new wxBoxSizer( wxVERTICAL );
  47. wxFlexGridSizer* fgSizer;
  48. fgSizer = new wxFlexGridSizer( 0, 3, 5, 0 );
  49. fgSizer->AddGrowableCol( 1 );
  50. fgSizer->SetFlexibleDirection( wxBOTH );
  51. fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
  52. m_labelX = new wxStaticText( this, wxID_ANY, _("X label:"), wxDefaultPosition, wxDefaultSize, 0 );
  53. m_labelX->Wrap( -1 );
  54. fgSizer->Add( m_labelX, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
  55. m_textCtrlX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  56. fgSizer->Add( m_textCtrlX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
  57. m_unitsX = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
  58. m_unitsX->Wrap( -1 );
  59. fgSizer->Add( m_unitsX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
  60. m_labelY = new wxStaticText( this, wxID_ANY, _("Y label:"), wxDefaultPosition, wxDefaultSize, 0 );
  61. m_labelY->Wrap( -1 );
  62. fgSizer->Add( m_labelY, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
  63. m_textCtrlY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  64. fgSizer->Add( m_textCtrlY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
  65. m_unitsY = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
  66. m_unitsY->Wrap( -1 );
  67. fgSizer->Add( m_unitsY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
  68. bSizerMain->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
  69. wxBoxSizer* bSizerButtons;
  70. bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
  71. bSizerButtons->Add( 100, 0, 1, wxALIGN_CENTER_VERTICAL, 5 );
  72. m_sdbSizer1 = new wxStdDialogButtonSizer();
  73. m_sdbSizer1OK = new wxButton( this, wxID_OK );
  74. m_sdbSizer1->AddButton( m_sdbSizer1OK );
  75. m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
  76. m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
  77. m_sdbSizer1->Realize();
  78. bSizerButtons->Add( m_sdbSizer1, 0, wxALL, 5 );
  79. bSizerMain->Add( bSizerButtons, 0, wxEXPAND, 5 );
  80. this->SetSizer( bSizerMain );
  81. this->Layout();
  82. bSizerMain->Fit( this );
  83. this->Centre( wxBOTH );
  84. }
  85. WX_PT_ENTRY_DIALOG_BASE::~WX_PT_ENTRY_DIALOG_BASE()
  86. {
  87. }