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.

58 lines
2.0 KiB

  1. #ifndef __DIALOG_SELECT_PRETTY_LIB_H__
  2. #define __DIALOG_SELECT_PRETTY_LIB_H__
  3. /*
  4. * This program source code file is part of KiCad, a free EDA CAD application.
  5. *
  6. * Copyright (C) 2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
  7. * Copyright (C) 1992-2014 KiCad Developers, see change_log.txt for contributors.
  8. *
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * as published by the Free Software Foundation; either version 2
  13. * of the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, you may find one here:
  22. * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  23. * or you may search the http://www.gnu.org website for the version 2 license,
  24. * or you may write to the Free Software Foundation, Inc.,
  25. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
  26. */
  27. /**
  28. * @file dialog_select_pretty_lib.h
  29. * @brief A dialog to select/create a .pretty folder which is a
  30. * footprint library.
  31. * footprints are .kicad_mod files inside this folder
  32. */
  33. #include <dialog_select_pretty_lib_base.h>
  34. class DIALOG_SELECT_PRETTY_LIB : public DIALOG_SELECT_PRETTY_LIB_BASE
  35. {
  36. public:
  37. DIALOG_SELECT_PRETTY_LIB( wxWindow* parent,
  38. const wxString& aDefaultPath );
  39. ~DIALOG_SELECT_PRETTY_LIB() {};
  40. /**
  41. * @return the full .pretty lib name, which is an absolute path
  42. *, ending wityh ".pretty"
  43. */
  44. const wxString GetFullPrettyLibName();
  45. private:
  46. virtual void OnSelectFolder( wxFileDirPickerEvent& event ) override;
  47. virtual void OnOKButton( wxCommandEvent& event ) override;
  48. };
  49. #endif //__DIALOG_SELECT_PRETTY_LIB_BASE_H__