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.

44 lines
1.2 KiB

  1. /**
  2. * This file is part of the common libary.
  3. * @file dialog_get_component.h
  4. */
  5. #ifndef __INCLUDE_DIALOG_GET_COMPONENT_H__
  6. #define __INCLUDE_DIALOG_GET_COMPONENT_H__
  7. #include "../common/dialogs/dialog_get_component_base.h"
  8. wxPoint GetComponentDialogPosition( void );
  9. void AddHistoryComponentName( wxArrayString& HistoryList,
  10. const wxString& Name );
  11. /* Dialog frame to choose a component name */
  12. class DIALOG_GET_COMPONENT : public DIALOG_GET_COMPONENT_BASE
  13. {
  14. private:
  15. bool m_auxToolSelector;
  16. wxString m_Text;
  17. public:
  18. bool m_GetExtraFunction;
  19. public:
  20. // Constructor and destructor
  21. DIALOG_GET_COMPONENT( EDA_DRAW_FRAME* parent, const wxPoint& framepos,
  22. wxArrayString& HistoryList, const wxString& Title,
  23. bool show_extra_tool );
  24. ~DIALOG_GET_COMPONENT() {};
  25. wxString GetComponentName( void );
  26. void SetComponentName( const wxString& name );
  27. private:
  28. void initDialog( wxArrayString& aHistoryList );
  29. void OnCancel( wxCommandEvent& event );
  30. void Accept( wxCommandEvent& event );
  31. void GetExtraSelection( wxCommandEvent& event );
  32. };
  33. #endif /* __INCLUDE_DIALOG_GET_COMPONENT_H__ */