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.

170 lines
5.2 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: dialog_build_BOM.h
  3. // Purpose:
  4. // Author: jean-pieere Charras
  5. // Modified by:
  6. // Created: 01/15/06 18:18:44
  7. // RCS-ID:
  8. // Copyright: GNU license
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 01/15/06 18:18:44
  12. #ifndef _DIALOG_BUILD_BOM_H_
  13. #define _DIALOG_BUILD_BOM_H_
  14. #if defined(__GNUG__) && !defined(__APPLE__)
  15. #pragma interface "dialog_build_BOM.cpp"
  16. #endif
  17. /*!
  18. * Includes
  19. */
  20. ////@begin includes
  21. #include "wx/valgen.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 ID_CHECKBOX1 10001
  34. #define ID_CHECKBOX2 10002
  35. #define ID_CHECKBOX3 10003
  36. #define ID_CHECKBOX4 10004
  37. #define ID_CHECKBOX5 10005
  38. #define ID_RADIOBOX_SELECT_FORMAT 10006
  39. #define ID_RADIOBOX_SEPARATOR 10007
  40. #define ID_CHECKBOX6 10008
  41. #define ID_CHECKBOX_FOOTPRINT_FIELD 10018
  42. #define ID_CHECKBOX_FIELD1 10009
  43. #define ID_CHECKBOX_FIELD2 10010
  44. #define ID_CHECKBOX_FIELD3 10011
  45. #define ID_CHECKBOX_FIELD4 10012
  46. #define ID_CHECKBOX_FIELD5 10013
  47. #define ID_CHECKBOX_FIELD6 10014
  48. #define ID_CHECKBOX_FIELD7 10015
  49. #define ID_CHECKBOX_FIELD8 10016
  50. #define ID_CREATE_LIST 10017
  51. #define SYMBOL_WINEDA_BUILD_BOM_FRAME_STYLE wxDEFAULT_DIALOG_STYLE|wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX|MAYBE_RESIZE_BORDER
  52. #define SYMBOL_WINEDA_BUILD_BOM_FRAME_TITLE _("List of Material")
  53. #define SYMBOL_WINEDA_BUILD_BOM_FRAME_IDNAME ID_DIALOG
  54. #define SYMBOL_WINEDA_BUILD_BOM_FRAME_SIZE wxSize(400, 300)
  55. #define SYMBOL_WINEDA_BUILD_BOM_FRAME_POSITION wxDefaultPosition
  56. ////@end control identifiers
  57. /*!
  58. * Compatibility
  59. */
  60. #ifndef wxCLOSE_BOX
  61. #define wxCLOSE_BOX 0x1000
  62. #endif
  63. #ifndef wxFIXED_MINSIZE
  64. #define wxFIXED_MINSIZE 0
  65. #endif
  66. /*!
  67. * WinEDA_Build_BOM_Frame class declaration
  68. */
  69. class WinEDA_Build_BOM_Frame: public wxDialog
  70. {
  71. DECLARE_DYNAMIC_CLASS( WinEDA_Build_BOM_Frame )
  72. DECLARE_EVENT_TABLE()
  73. public:
  74. /// Constructors
  75. WinEDA_Build_BOM_Frame( );
  76. WinEDA_Build_BOM_Frame( WinEDA_DrawFrame* parent,
  77. wxWindowID id = SYMBOL_WINEDA_BUILD_BOM_FRAME_IDNAME,
  78. const wxString& caption = SYMBOL_WINEDA_BUILD_BOM_FRAME_TITLE,
  79. const wxPoint& pos = SYMBOL_WINEDA_BUILD_BOM_FRAME_POSITION,
  80. const wxSize& size = SYMBOL_WINEDA_BUILD_BOM_FRAME_SIZE,
  81. long style = SYMBOL_WINEDA_BUILD_BOM_FRAME_STYLE );
  82. /// Creation
  83. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_BUILD_BOM_FRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_BUILD_BOM_FRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_BUILD_BOM_FRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_BUILD_BOM_FRAME_SIZE, long style = SYMBOL_WINEDA_BUILD_BOM_FRAME_STYLE );
  84. /// Creates the controls and sizers
  85. void CreateControls();
  86. ////@begin WinEDA_Build_BOM_Frame event handler declarations
  87. /// wxEVT_COMMAND_RADIOBOX_SELECTED event handler for ID_RADIOBOX_SELECT_FORMAT
  88. void OnRadioboxSelectFormatSelected( wxCommandEvent& event );
  89. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CREATE_LIST
  90. void OnCreateListClick( wxCommandEvent& event );
  91. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
  92. void OnOkClick( wxCommandEvent& event );
  93. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
  94. void OnCancelClick( wxCommandEvent& event );
  95. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
  96. void OnApplyClick( wxCommandEvent& event );
  97. ////@end WinEDA_Build_BOM_Frame event handler declarations
  98. void GenList();
  99. ////@begin WinEDA_Build_BOM_Frame member function declarations
  100. /// Retrieves bitmap resources
  101. wxBitmap GetBitmapResource( const wxString& name );
  102. /// Retrieves icon resources
  103. wxIcon GetIconResource( const wxString& name );
  104. ////@end WinEDA_Build_BOM_Frame member function declarations
  105. void GenereListeOfItems(const wxString & FullFileName);
  106. void CreateExportList(const wxString & FullFileName);
  107. int PrintListeCmpByRef( FILE * f, EDA_BaseStruct ** List, int NbItems, bool CompactForm = FALSE );
  108. int PrintListeCmpByVal( FILE *f, EDA_BaseStruct **List, int NbItems);
  109. void PrintFieldData(FILE * f, EDA_SchComponentStruct * DrawLibItem, bool CompactForm = FALSE);
  110. void SavePreferences();
  111. /// Should we show tooltips?
  112. static bool ShowToolTips();
  113. ////@begin WinEDA_Build_BOM_Frame member variables
  114. wxCheckBox* m_ListCmpbyRefItems;
  115. wxCheckBox* m_ListSubCmpItems;
  116. wxCheckBox* m_ListCmpbyValItems;
  117. wxCheckBox* m_GenListLabelsbyVal;
  118. wxCheckBox* m_GenListLabelsbySheet;
  119. wxRadioBox* m_OutputFormCtrl;
  120. wxRadioBox* m_OutputSeparatorCtrl;
  121. wxCheckBox* m_GetListBrowser;
  122. wxStaticBoxSizer* m_FieldsToAppendListSizer;
  123. wxCheckBox* m_AddFootprintField;
  124. wxCheckBox* m_AddField1;
  125. wxCheckBox* m_AddField2;
  126. wxCheckBox* m_AddField3;
  127. wxCheckBox* m_AddField4;
  128. wxCheckBox* m_AddField5;
  129. wxCheckBox* m_AddField6;
  130. wxCheckBox* m_AddField7;
  131. wxCheckBox* m_AddField8;
  132. ////@end WinEDA_Build_BOM_Frame member variables
  133. WinEDA_DrawFrame * m_Parent;
  134. wxString m_LibArchiveFileName;
  135. wxString m_ListFileName;
  136. };
  137. #endif
  138. // _DIALOG_BUILD_BOM_H_