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.

133 lines
3.9 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: annotate_dialog.h
  3. // Purpose:
  4. // Author: jean-pierre Charras
  5. // Modified by:
  6. // Created: 16/04/2008 17:50:59
  7. // RCS-ID:
  8. // Copyright: License GNU
  9. // Licence:
  10. /////////////////////////////////////////////////////////////////////////////
  11. // Generated by DialogBlocks (unregistered), 16/04/2008 17:50:59
  12. #ifndef _ANNOTATE_DIALOG_H_
  13. #define _ANNOTATE_DIALOG_H_
  14. #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
  15. #pragma interface "annotate_dialog.h"
  16. #endif
  17. /*!
  18. * Includes
  19. */
  20. ////@begin includes
  21. #include "wx/statline.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_ENTIRE_SCHEMATIC 10002
  35. #define ID_CURRENT_PAGE 10003
  36. #define ID_KEEP_ANNOTATION 10009
  37. #define ID_RESET_ANNOTATION 10009
  38. #define ID_SORT_BY_X_POSITION 10001
  39. #define ID_SORT_BY_Y_POSITION 10001
  40. #define ID_SORT_BY_VALUE 10011
  41. #define ID_CLEAR_ANNOTATION_CMP 10004
  42. #define SYMBOL_WINEDA_ANNOTATEFRAME_STYLE wxDEFAULT_DIALOG_STYLE|MAYBE_RESIZE_BORDER
  43. #define SYMBOL_WINEDA_ANNOTATEFRAME_TITLE _("EESchema Annotation")
  44. #define SYMBOL_WINEDA_ANNOTATEFRAME_IDNAME ID_DIALOG
  45. #define SYMBOL_WINEDA_ANNOTATEFRAME_SIZE wxSize(400, 300)
  46. #define SYMBOL_WINEDA_ANNOTATEFRAME_POSITION wxDefaultPosition
  47. ////@end control identifiers
  48. /*!
  49. * WinEDA_AnnotateFrame class declaration
  50. */
  51. class WinEDA_AnnotateFrame: public wxDialog
  52. {
  53. DECLARE_DYNAMIC_CLASS( WinEDA_AnnotateFrame )
  54. DECLARE_EVENT_TABLE()
  55. public:
  56. /// Constructors
  57. WinEDA_AnnotateFrame();
  58. WinEDA_AnnotateFrame( WinEDA_SchematicFrame* parent, wxWindowID id = SYMBOL_WINEDA_ANNOTATEFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_ANNOTATEFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_ANNOTATEFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_ANNOTATEFRAME_SIZE, long style = SYMBOL_WINEDA_ANNOTATEFRAME_STYLE );
  59. /// Creation
  60. bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_ANNOTATEFRAME_IDNAME, const wxString& caption = SYMBOL_WINEDA_ANNOTATEFRAME_TITLE, const wxPoint& pos = SYMBOL_WINEDA_ANNOTATEFRAME_POSITION, const wxSize& size = SYMBOL_WINEDA_ANNOTATEFRAME_SIZE, long style = SYMBOL_WINEDA_ANNOTATEFRAME_STYLE );
  61. /// Destructor
  62. ~WinEDA_AnnotateFrame();
  63. /// Initialises member variables
  64. void Init();
  65. /// Creates the controls and sizers
  66. void CreateControls();
  67. ////@begin WinEDA_AnnotateFrame event handler declarations
  68. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
  69. void OnCancelClick( wxCommandEvent& event );
  70. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_CLEAR_ANNOTATION_CMP
  71. void OnClearAnnotationCmpClick( wxCommandEvent& event );
  72. /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_APPLY
  73. void OnApplyClick( wxCommandEvent& event );
  74. ////@end WinEDA_AnnotateFrame event handler declarations
  75. ////@begin WinEDA_AnnotateFrame 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_AnnotateFrame member function declarations
  81. /// Should we show tooltips?
  82. static bool ShowToolTips();
  83. // User functions:
  84. bool GetLevel( void );
  85. bool GetResetItems( void );
  86. int GetSortOrder( void );
  87. ////@begin WinEDA_AnnotateFrame member variables
  88. wxRadioButton* m_rbEntireSchematic;
  89. wxRadioButton* m_rbKeepAnnotation;
  90. wxRadioButton* m_rbResetAnnotation;
  91. wxRadioButton* m_rbSortBy_X_Position;
  92. wxRadioButton* m_rbSortBy_Y_Position;
  93. wxRadioButton* rbSortByValue;
  94. wxBoxSizer* sizerDialogButtons;
  95. wxButton* m_btnClose;
  96. wxButton* m_btnClear;
  97. wxButton* m_btnApply;
  98. ////@end WinEDA_AnnotateFrame member variables
  99. WinEDA_SchematicFrame * m_Parent;
  100. };
  101. #endif
  102. // _ANNOTATE_DIALOG_H_