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.

94 lines
4.3 KiB

  1. ///////////////////////////////////////////////////////////////////////////
  2. // C++ code generated with wxFormBuilder (version Aug 7 2008)
  3. // http://www.wxformbuilder.org/
  4. //
  5. // PLEASE DO "NOT" EDIT THIS FILE!
  6. ///////////////////////////////////////////////////////////////////////////
  7. #include "dialog_edit_label_base.h"
  8. ///////////////////////////////////////////////////////////////////////////
  9. DialogLabelEditor_Base::DialogLabelEditor_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* bMainSizer;
  13. bMainSizer = new wxBoxSizer( wxHORIZONTAL );
  14. wxBoxSizer* bSizer2;
  15. bSizer2 = new wxBoxSizer( wxVERTICAL );
  16. m_staticText1 = new wxStaticText( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
  17. m_staticText1->Wrap( -1 );
  18. bSizer2->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  19. m_TextLabel = new wxTextCtrl( this, wxID_VALUE, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  20. m_TextLabel->SetToolTip( _("Enter the text to be used within the schematic") );
  21. bSizer2->Add( m_TextLabel, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
  22. wxBoxSizer* m_OptionsSizer;
  23. m_OptionsSizer = new wxBoxSizer( wxHORIZONTAL );
  24. wxString m_TextOrientChoices[] = { _("Right"), _("Up"), _("Left"), _("Down") };
  25. int m_TextOrientNChoices = sizeof( m_TextOrientChoices ) / sizeof( wxString );
  26. m_TextOrient = new wxRadioBox( this, wxID_ANY, _("Direction"), wxDefaultPosition, wxDefaultSize, m_TextOrientNChoices, m_TextOrientChoices, 1, wxRA_SPECIFY_COLS );
  27. m_TextOrient->SetSelection( 0 );
  28. m_OptionsSizer->Add( m_TextOrient, 1, wxALL, 5 );
  29. wxString m_TextStyleChoices[] = { _("Normal"), _("Italic"), _("Bold"), _("Bold Italic") };
  30. int m_TextStyleNChoices = sizeof( m_TextStyleChoices ) / sizeof( wxString );
  31. m_TextStyle = new wxRadioBox( this, wxID_ANY, _("Style"), wxDefaultPosition, wxDefaultSize, m_TextStyleNChoices, m_TextStyleChoices, 1, wxRA_SPECIFY_COLS );
  32. m_TextStyle->SetSelection( 0 );
  33. m_OptionsSizer->Add( m_TextStyle, 1, wxALL, 5 );
  34. wxString m_TextShapeChoices[] = { _("Input"), _("Output"), _("Bidi"), _("TriState"), _("Passive") };
  35. int m_TextShapeNChoices = sizeof( m_TextShapeChoices ) / sizeof( wxString );
  36. m_TextShape = new wxRadioBox( this, wxID_ANY, _("Glabel Shape"), wxDefaultPosition, wxDefaultSize, m_TextShapeNChoices, m_TextShapeChoices, 1, wxRA_SPECIFY_COLS );
  37. m_TextShape->SetSelection( 0 );
  38. m_OptionsSizer->Add( m_TextShape, 1, wxALL, 5 );
  39. bSizer2->Add( m_OptionsSizer, 1, wxEXPAND, 5 );
  40. bMainSizer->Add( bSizer2, 5, wxEXPAND, 5 );
  41. wxBoxSizer* bSizer4;
  42. bSizer4 = new wxBoxSizer( wxVERTICAL );
  43. m_SizeTitle = new wxStaticText( this, wxID_ANY, _("Size"), wxDefaultPosition, wxDefaultSize, 0 );
  44. m_SizeTitle->Wrap( -1 );
  45. bSizer4->Add( m_SizeTitle, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
  46. m_TextSize = new wxTextCtrl( this, wxID_SIZE, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
  47. bSizer4->Add( m_TextSize, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
  48. bSizer4->Add( 8, 8, 0, wxEXPAND|wxALIGN_CENTER_HORIZONTAL, 5 );
  49. m_buttonOK = new wxButton( this, wxID_OK, _("OK"), wxDefaultPosition, wxDefaultSize, 0 );
  50. m_buttonOK->SetForegroundColour( wxColour( 234, 0, 0 ) );
  51. bSizer4->Add( m_buttonOK, 1, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
  52. m_buttonCANCEL = new wxButton( this, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
  53. m_buttonCANCEL->SetForegroundColour( wxColour( 0, 0, 187 ) );
  54. bSizer4->Add( m_buttonCANCEL, 1, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
  55. bMainSizer->Add( bSizer4, 1, 0, 5 );
  56. this->SetSizer( bMainSizer );
  57. this->Layout();
  58. // Connect Events
  59. m_buttonOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogLabelEditor_Base::OnButtonOKClick ), NULL, this );
  60. m_buttonCANCEL->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogLabelEditor_Base::OnButtonCANCEL_Click ), NULL, this );
  61. }
  62. DialogLabelEditor_Base::~DialogLabelEditor_Base()
  63. {
  64. // Disconnect Events
  65. m_buttonOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogLabelEditor_Base::OnButtonOKClick ), NULL, this );
  66. m_buttonCANCEL->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DialogLabelEditor_Base::OnButtonCANCEL_Click ), NULL, this );
  67. }