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.

125 lines
3.7 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: plotps.h
  3. // Purpose:
  4. // Author: jean-pierre Charras
  5. // Modified by:
  6. // Created: 01/02/2006 08:37:24
  7. // RCS-ID:
  8. // Copyright: GNU License
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 01/02/2006 08:37:24
  12. #ifndef _PLOTPS_H_
  13. #define _PLOTPS_H_
  14. #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
  15. #pragma interface "plotps.h"
  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. class wxBoxSizer;
  28. ////@end forward declarations
  29. /*!
  30. * Control identifiers
  31. */
  32. ////@begin control identifiers
  33. #define ID_DIALOG 10000
  34. #define ID_RADIOBOX1 10002
  35. #define ID_RADIOBOX 10001
  36. #define ID_CHECKBOX 10005
  37. #define ID_PLOT_PS_CURRENT_EXECUTE 10003
  38. #define ID_PLOT_PS_ALL_EXECUTE 10004
  39. #define ID_TEXTCTRL 10006
  40. #define SYMBOL_WINEDA_PLOTPSFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxSTAY_ON_TOP|wxCLOSE_BOX
  41. #define SYMBOL_WINEDA_PLOTPSFRAME_TITLE _("EESchema Plot PS")
  42. #define SYMBOL_WINEDA_PLOTPSFRAME_IDNAME ID_DIALOG
  43. #define SYMBOL_WINEDA_PLOTPSFRAME_SIZE wxSize(400, 300)
  44. #define SYMBOL_WINEDA_PLOTPSFRAME_POSITION wxDefaultPosition
  45. ////@end control identifiers
  46. /*!
  47. * Compatibility
  48. */
  49. #ifndef wxCLOSE_BOX
  50. #define wxCLOSE_BOX 0x1000
  51. #endif
  52. /*!
  53. * WinEDA_PlotPSFrame class declaration
  54. */
  55. class WinEDA_PlotPSFrame: public wxDialog
  56. {
  57. DECLARE_DYNAMIC_CLASS( WinEDA_PlotPSFrame )
  58. DECLARE_EVENT_TABLE()
  59. public:
  60. /// Constructors
  61. WinEDA_PlotPSFrame( );
  62. WinEDA_PlotPSFrame( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_PLOTPSFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_PLOTPSFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_PLOTPSFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_PLOTPSFRAME_SIZE, long style = SYMBOL_WINEDA_PLOTPSFRAME_STYLE );
  63. /// Creation
  64. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_PLOTPSFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_PLOTPSFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_PLOTPSFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_PLOTPSFRAME_SIZE, long style = SYMBOL_WINEDA_PLOTPSFRAME_STYLE );
  65. /// Creates the controls and sizers
  66. void CreateControls();
  67. ////@begin WinEDA_PlotPSFrame event handler declarations
  68. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_PLOT_PS_CURRENT_EXECUTE
  69. void OnPlotPsCurrentExecuteClick( wxCommandEvent& event );
  70. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_PLOT_PS_ALL_EXECUTE
  71. void OnPlotPsAllExecuteClick( wxCommandEvent& event );
  72. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CLOSE
  73. void OnCloseClick( wxCommandEvent& event );
  74. ////@end WinEDA_PlotPSFrame event handler declarations
  75. ////@begin WinEDA_PlotPSFrame member function declarations
  76. /// Retrieves bitmap resources
  77. wxBitmap GetBitmapResource( const wxString& name );
  78. /// Retrieves icon resources
  79. wxIcon GetIconResource( const wxString& name );
  80. ////@end WinEDA_PlotPSFrame member function declarations
  81. void InitOptVars(void);
  82. void CreatePSFile(int AllPages, int pagesize);
  83. void PlotOneSheetPS(const wxString & FileName,
  84. BASE_SCREEN * screen, Ki_PageDescr * sheet, int BBox[4], wxPoint plot_offset);
  85. /// Should we show tooltips?
  86. static bool ShowToolTips();
  87. ////@begin WinEDA_PlotPSFrame member variables
  88. wxRadioBox* m_SizeOption;
  89. wxRadioBox* m_PlotPSColorOption;
  90. wxCheckBox* m_Plot_Sheet_Ref;
  91. wxBoxSizer* m_DefaultLineSizeCtrlSizer;
  92. wxTextCtrl* m_MsgBox;
  93. ////@end WinEDA_PlotPSFrame member variables
  94. WinEDA_ValueCtrl * m_DefaultLineSizeCtrl;
  95. };
  96. #endif
  97. // _PLOTPS_H_