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.

136 lines
4.1 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: edtxtmod.h
  3. // Purpose:
  4. // Author: jean-pierre Charras
  5. // Modified by:
  6. // Created: 09/02/2006 18:17:15
  7. // RCS-ID:
  8. // Copyright: License GNU
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 09/02/2006 18:17:15
  12. #ifndef _EDTXTMOD_H_
  13. #define _EDTXTMOD_H_
  14. #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
  15. #pragma interface "edtxtmod.h"
  16. #endif
  17. /*!
  18. * Includes
  19. */
  20. ////@begin includes
  21. #include "wx/statline.h"
  22. ////@end includes
  23. /*!
  24. * Forward declarations
  25. */
  26. ////@begin forward declarations
  27. ////@end forward declarations
  28. /*!
  29. * Control identifiers
  30. */
  31. ////@begin control identifiers
  32. #define ID_DIALOG 10000
  33. #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
  34. #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_TITLE _("TextMod properties")
  35. #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_IDNAME ID_DIALOG
  36. #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_SIZE wxSize(400, 300)
  37. #define SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_POSITION wxDefaultPosition
  38. #define ID_TEXTCTRL 10003
  39. #define ID_TEXTCTRL1 10004
  40. #define ID_TEXTCTRL2 10005
  41. #define ID_TEXTCTRL3 10006
  42. #define ID_TEXTCTRL4 10007
  43. #define ID_TEXTCTRL5 10008
  44. #define ID_RADIOBOX 10001
  45. #define ID_RADIOBOX1 10002
  46. ////@end control identifiers
  47. /*!
  48. * Compatibility
  49. */
  50. #ifndef wxCLOSE_BOX
  51. #define wxCLOSE_BOX 0x1000
  52. #endif
  53. /*!
  54. * WinEDA_TextModPropertiesFrame class declaration
  55. */
  56. class WinEDA_TextModPropertiesFrame: public wxDialog
  57. {
  58. DECLARE_DYNAMIC_CLASS( WinEDA_TextModPropertiesFrame )
  59. DECLARE_EVENT_TABLE()
  60. public:
  61. /// Constructors
  62. WinEDA_TextModPropertiesFrame( );
  63. WinEDA_TextModPropertiesFrame( WinEDA_BasePcbFrame* parent,
  64. TEXTE_MODULE * TextMod,wxDC * DC,
  65. wxWindowID id = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_SIZE, long style = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_STYLE );
  66. /// Creation
  67. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_SIZE, long style = SYMBOL_WINEDA_TEXTMODPROPERTIESFRAME_STYLE );
  68. /// Creates the controls and sizers
  69. void CreateControls();
  70. ////@begin WinEDA_TextModPropertiesFrame event handler declarations
  71. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
  72. void OnOkClick( wxCommandEvent& event );
  73. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
  74. void OnCancelClick( wxCommandEvent& event );
  75. ////@end WinEDA_TextModPropertiesFrame event handler declarations
  76. ////@begin WinEDA_TextModPropertiesFrame member function declarations
  77. /// Retrieves bitmap resources
  78. wxBitmap GetBitmapResource( const wxString& name );
  79. /// Retrieves icon resources
  80. wxIcon GetIconResource( const wxString& name );
  81. ////@end WinEDA_TextModPropertiesFrame member function declarations
  82. /// Should we show tooltips?
  83. static bool ShowToolTips();
  84. void TextModPropertiesAccept(wxCommandEvent& event);
  85. void SetDisplayValue();
  86. ////@begin WinEDA_TextModPropertiesFrame member variables
  87. wxStaticText* m_ModuleInfoText;
  88. wxStaticText* m_TextDataTitle;
  89. wxTextCtrl* m_Name;
  90. wxStaticText* m_SizeXTitle;
  91. wxTextCtrl* m_TxtSizeCtrlX;
  92. wxStaticText* m_SizeYTitle;
  93. wxTextCtrl* m_TxtSizeCtrlY;
  94. wxStaticText* m_PosXTitle;
  95. wxTextCtrl* m_TxtPosCtrlX;
  96. wxStaticText* m_PosYTitle;
  97. wxTextCtrl* m_TxtPosCtrlY;
  98. wxStaticText* m_WidthTitle;
  99. wxTextCtrl* m_TxtWidthCtlr;
  100. wxRadioBox* m_Orient;
  101. wxRadioBox* m_Show;
  102. ////@end WinEDA_TextModPropertiesFrame member variables
  103. WinEDA_BasePcbFrame * m_Parent;
  104. wxDC * m_DC;
  105. MODULE * m_Module;
  106. TEXTE_MODULE * m_CurrentTextMod;
  107. };
  108. #endif
  109. // _EDTXTMOD_H_