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.

116 lines
3.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dialog_cmp_graphic_properties.h
  3. // Purpose:
  4. // Author: jean-pierre Charras
  5. // Modified by:
  6. // Created: 12/02/2006 11:38:02
  7. // RCS-ID:
  8. // Copyright: License GNU
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 12/02/2006 11:38:02
  12. #ifndef _DIALOG_CMP_GRAPHIC_PROPERTIES_H_
  13. #define _DIALOG_CMP_GRAPHIC_PROPERTIES_H_
  14. /*!
  15. * Includes
  16. */
  17. ////@begin includes
  18. ////@end includes
  19. /*!
  20. * Forward declarations
  21. */
  22. ////@begin forward declarations
  23. class wxBoxSizer;
  24. ////@end forward declarations
  25. /*!
  26. * Control identifiers
  27. */
  28. ////@begin control identifiers
  29. #define ID_DIALOG 10000
  30. #define ID_CHECKBOX 10001
  31. #define ID_CHECKBOX1 10002
  32. #define ID_RADIOBOX 10003
  33. #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
  34. #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_TITLE _("Graphic shape properties")
  35. #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_IDNAME ID_DIALOG
  36. #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_SIZE wxSize(400, 300)
  37. #define SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_POSITION wxDefaultPosition
  38. ////@end control identifiers
  39. /*!
  40. * Compatibility
  41. */
  42. #ifndef wxCLOSE_BOX
  43. #define wxCLOSE_BOX 0x1000
  44. #endif
  45. /*!
  46. * WinEDA_bodygraphics_PropertiesFrame class declaration
  47. */
  48. class WinEDA_bodygraphics_PropertiesFrame: public wxDialog
  49. {
  50. DECLARE_DYNAMIC_CLASS( WinEDA_bodygraphics_PropertiesFrame )
  51. DECLARE_EVENT_TABLE()
  52. public:
  53. /// Constructors
  54. WinEDA_bodygraphics_PropertiesFrame( );
  55. WinEDA_bodygraphics_PropertiesFrame( WinEDA_LibeditFrame* parent, wxWindowID id = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_SIZE, long style = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_STYLE );
  56. /// Creation
  57. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_IDNAME,
  58. const wxString& caption = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_TITLE,
  59. const wxPoint& pos = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_POSITION,
  60. const wxSize& size = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_SIZE,
  61. long style = SYMBOL_WINEDA_BODYGRAPHICS_PROPERTIESFRAME_STYLE );
  62. /// Creates the controls and sizers
  63. void CreateControls();
  64. ////@begin WinEDA_bodygraphics_PropertiesFrame event handler declarations
  65. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
  66. void OnOkClick( wxCommandEvent& event );
  67. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
  68. void OnCancelClick( wxCommandEvent& event );
  69. ////@end WinEDA_bodygraphics_PropertiesFrame event handler declarations
  70. ////@begin WinEDA_bodygraphics_PropertiesFrame member function declarations
  71. /// Retrieves bitmap resources
  72. wxBitmap GetBitmapResource( const wxString& name );
  73. /// Retrieves icon resources
  74. wxIcon GetIconResource( const wxString& name );
  75. ////@end WinEDA_bodygraphics_PropertiesFrame member function declarations
  76. /// Should we show tooltips?
  77. static bool ShowToolTips();
  78. void bodygraphics_PropertiesAccept(wxCommandEvent& event);
  79. ////@begin WinEDA_bodygraphics_PropertiesFrame member variables
  80. wxCheckBox* m_CommonUnit;
  81. wxCheckBox* m_CommonConvert;
  82. wxBoxSizer* m_ShapeWidthBoxSizer;
  83. wxRadioBox* m_Filled;
  84. wxButton* m_btClose;
  85. ////@end WinEDA_bodygraphics_PropertiesFrame member variables
  86. WinEDA_LibeditFrame * m_Parent;
  87. WinEDA_ValueCtrl * m_GraphicShapeWidthCtrl;
  88. };
  89. #endif
  90. // _DIALOG_CMP_GRAPHIC_PROPERTIES_H_