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
3.9 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dialog_create_component.h
  3. // Purpose:
  4. // Author:
  5. // Modified by:
  6. // Created: 01/14/06 10:14:28
  7. // RCS-ID:
  8. // Copyright:
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 01/14/06 10:14:28
  12. #ifndef _DIALOG_CREATE_COMPONENT_H_
  13. #define _DIALOG_CREATE_COMPONENT_H_
  14. #if defined(__GNUG__) && !defined(__APPLE__)
  15. #pragma interface "dialog_create_component.cpp"
  16. #endif
  17. /*!
  18. * Includes
  19. */
  20. ////@begin includes
  21. #include "wx/statline.h"
  22. #include "wx/spinctrl.h"
  23. ////@end includes
  24. /*!
  25. * Forward declarations
  26. */
  27. ////@begin forward declarations
  28. class wxSpinCtrl;
  29. ////@end forward declarations
  30. /*!
  31. * Control identifiers
  32. */
  33. ////@begin control identifiers
  34. #define ID_DIALOG 10000
  35. #define ID_TEXTCTRL1 10009
  36. #define ID_TEXTCTRL 10008
  37. #define ID_CHECKBOX3 10005
  38. #define ID_CHECKBOX4 10006
  39. #define ID_CHECKBOX2 10004
  40. #define ID_RADIOBOX 10003
  41. #define ID_CHECKBOX1 10002
  42. #define ID_CHECKBOX5 10007
  43. #define ID_CHECKBOX 10001
  44. #define ID_SPINCTRL 10010
  45. #define SYMBOL_WINEDA_CREATECMPDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
  46. #define SYMBOL_WINEDA_CREATECMPDIALOG_TITLE _("Component Creation")
  47. #define SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME ID_DIALOG
  48. #define SYMBOL_WINEDA_CREATECMPDIALOG_SIZE wxSize(400, 300)
  49. #define SYMBOL_WINEDA_CREATECMPDIALOG_POSITION wxDefaultPosition
  50. ////@end control identifiers
  51. /*!
  52. * Compatibility
  53. */
  54. #ifndef wxCLOSE_BOX
  55. #define wxCLOSE_BOX 0x1000
  56. #endif
  57. #ifndef wxFIXED_MINSIZE
  58. #define wxFIXED_MINSIZE 0
  59. #endif
  60. /*!
  61. * WinEDA_CreateCmpDialog class declaration
  62. */
  63. class WinEDA_CreateCmpDialog: public wxDialog
  64. {
  65. DECLARE_DYNAMIC_CLASS( WinEDA_CreateCmpDialog )
  66. DECLARE_EVENT_TABLE()
  67. public:
  68. /// Constructors
  69. WinEDA_CreateCmpDialog( );
  70. WinEDA_CreateCmpDialog( WinEDA_DrawFrame* parent, wxWindowID id = SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME, const wxString& caption = SYMBOL_WINEDA_CREATECMPDIALOG_TITLE, const wxPoint& pos = SYMBOL_WINEDA_CREATECMPDIALOG_POSITION, const wxSize& size = SYMBOL_WINEDA_CREATECMPDIALOG_SIZE, long style = SYMBOL_WINEDA_CREATECMPDIALOG_STYLE );
  71. /// Creation
  72. bool Create( WinEDA_DrawFrame* parent, wxWindowID id = SYMBOL_WINEDA_CREATECMPDIALOG_IDNAME, const wxString& caption = SYMBOL_WINEDA_CREATECMPDIALOG_TITLE, const wxPoint& pos = SYMBOL_WINEDA_CREATECMPDIALOG_POSITION, const wxSize& size = SYMBOL_WINEDA_CREATECMPDIALOG_SIZE, long style = SYMBOL_WINEDA_CREATECMPDIALOG_STYLE );
  73. /// Creates the controls and sizers
  74. void CreateControls();
  75. // others functions:
  76. wxString ReturnCmpName()
  77. {
  78. return m_CmpName->GetValue();
  79. }
  80. void SetComponentData( EDA_LibComponentStruct & component );
  81. ////@begin WinEDA_CreateCmpDialog event handler declarations
  82. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
  83. void OnOkClick( wxCommandEvent& event );
  84. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
  85. void OnCancelClick( wxCommandEvent& event );
  86. ////@end WinEDA_CreateCmpDialog event handler declarations
  87. ////@begin WinEDA_CreateCmpDialog member function declarations
  88. /// Retrieves bitmap resources
  89. wxBitmap GetBitmapResource( const wxString& name );
  90. /// Retrieves icon resources
  91. wxIcon GetIconResource( const wxString& name );
  92. ////@end WinEDA_CreateCmpDialog member function declarations
  93. /// Should we show tooltips?
  94. static bool ShowToolTips();
  95. ////@begin WinEDA_CreateCmpDialog member variables
  96. wxTextCtrl* m_CmpName;
  97. wxTextCtrl* m_Reference;
  98. wxCheckBox* m_AsConvert;
  99. wxCheckBox* m_IsPowerSymbol;
  100. wxCheckBox* m_PartsAreLocked;
  101. wxButton* m_btClose;
  102. wxRadioBox* m_PartsCount;
  103. wxCheckBox* m_ShowPinNum;
  104. wxCheckBox* m_ShowPinname;
  105. wxCheckBox* m_PinNameInside;
  106. wxSpinCtrl* m_SetSkew;
  107. ////@end WinEDA_CreateCmpDialog member variables
  108. };
  109. #endif
  110. // _DIALOG_CREATE_COMPONENT_H_