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.

126 lines
3.4 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: zones.h
  3. // Purpose:
  4. // Author: jean-pierre Charras
  5. // Modified by:
  6. // Created: 25/01/2006 11:35:19
  7. // RCS-ID:
  8. // Copyright: GNU License
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 25/01/2006 11:35:19
  12. #ifndef _ZONES_H_
  13. #define _ZONES_H_
  14. #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
  15. #pragma interface "zones.h"
  16. #endif
  17. /*!
  18. * Includes
  19. */
  20. #include "fctsys.h"
  21. #include "gr_basic.h"
  22. #include "common.h"
  23. #include "pcbnew.h"
  24. #include "autorout.h"
  25. #include "cell.h"
  26. #include "trigo.h"
  27. #include "protos.h"
  28. ////@begin includes
  29. ////@end includes
  30. /*!
  31. * Forward declarations
  32. */
  33. ////@begin forward declarations
  34. ////@end forward declarations
  35. /*!
  36. * Control identifiers
  37. */
  38. ////@begin control identifiers
  39. #define ID_DIALOG 10000
  40. #define ID_RADIOBOX 10001
  41. #define ID_TEXTCTRL 10006
  42. #define ID_RADIOBOX1 10004
  43. #define ID_RADIOBOX2 10005
  44. #define ID_FILL_ZONE 10002
  45. #define ID_SET_OPTIONS_ZONE 10003
  46. #define SYMBOL_WINEDA_ZONEFRAME_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
  47. #define SYMBOL_WINEDA_ZONEFRAME_TITLE _("Fill Zones Options")
  48. #define SYMBOL_WINEDA_ZONEFRAME_IDNAME ID_DIALOG
  49. #define SYMBOL_WINEDA_ZONEFRAME_SIZE wxSize(400, 300)
  50. #define SYMBOL_WINEDA_ZONEFRAME_POSITION wxDefaultPosition
  51. ////@end control identifiers
  52. /*!
  53. * Compatibility
  54. */
  55. #ifndef wxCLOSE_BOX
  56. #define wxCLOSE_BOX 0x1000
  57. #endif
  58. /*!
  59. * WinEDA_ZoneFrame class declaration
  60. */
  61. class WinEDA_ZoneFrame: public wxDialog
  62. {
  63. DECLARE_DYNAMIC_CLASS( WinEDA_ZoneFrame )
  64. DECLARE_EVENT_TABLE()
  65. public:
  66. /// Constructors
  67. WinEDA_ZoneFrame( );
  68. WinEDA_ZoneFrame( WinEDA_PcbFrame* parent, wxWindowID id = SYMBOL_WINEDA_ZONEFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_ZONEFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_ZONEFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_ZONEFRAME_SIZE, long style = SYMBOL_WINEDA_ZONEFRAME_STYLE );
  69. /// Creation
  70. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_ZONEFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_ZONEFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_ZONEFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_ZONEFRAME_SIZE, long style = SYMBOL_WINEDA_ZONEFRAME_STYLE );
  71. /// Creates the controls and sizers
  72. void CreateControls();
  73. ////@begin WinEDA_ZoneFrame event handler declarations
  74. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_FILL_ZONE
  75. void ExecFillZone( wxCommandEvent& event );
  76. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
  77. void OnCancelClick( wxCommandEvent& event );
  78. ////@end WinEDA_ZoneFrame event handler declarations
  79. ////@begin WinEDA_ZoneFrame member function declarations
  80. /// Retrieves bitmap resources
  81. wxBitmap GetBitmapResource( const wxString& name );
  82. /// Retrieves icon resources
  83. wxIcon GetIconResource( const wxString& name );
  84. ////@end WinEDA_ZoneFrame member function declarations
  85. /// Should we show tooltips?
  86. static bool ShowToolTips();
  87. ////@begin WinEDA_ZoneFrame member variables
  88. wxRadioBox* m_GridCtrl;
  89. wxStaticText* m_ClearanceValueTitle;
  90. wxTextCtrl* m_ZoneClearanceCtrl;
  91. wxRadioBox* m_FillOpt;
  92. wxRadioBox* m_OrientEdgesOpt;
  93. ////@end WinEDA_ZoneFrame member variables
  94. WinEDA_PcbFrame * m_Parent;
  95. };
  96. #endif // _ZONES_H_