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.

69 lines
2.3 KiB

  1. /**
  2. * @file dialog_config_equfiles.h
  3. */
  4. /*
  5. * This program source code file is part of KICAD, a free EDA CAD application.
  6. *
  7. * Copyright (C) 2010-2015 Jean-Pierre Charras jp.charras at wanadoo.fr
  8. * Copyright (C) 1992-2015 Kicad Developers, see CHANGELOG.TXT for contributors.
  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. #ifndef _DIALOG_CONFIG_EQUFILES_H_
  28. #define _DIALOG_CONFIG_EQUFILES_H_
  29. #include <dialog_config_equfiles_base.h>
  30. class DIALOG_CONFIG_EQUFILES : public DIALOG_CONFIG_EQUFILES_BASE
  31. {
  32. private:
  33. CVPCB_MAINFRAME* m_Parent;
  34. wxString m_UserLibDirBufferImg;
  35. bool m_ListChanged;
  36. private:
  37. void Init();
  38. // Virtual event handlers
  39. void OnCloseWindow( wxCloseEvent& event ) override;
  40. void OnOkClick( wxCommandEvent& event ) override;
  41. void OnAddFiles( wxCommandEvent& event ) override;
  42. void OnEditEquFile( wxCommandEvent& event ) override;
  43. void OnRemoveFiles( wxCommandEvent& event ) override;
  44. void OnButtonMoveUp( wxCommandEvent& event ) override;
  45. void OnButtonMoveDown( wxCommandEvent& event ) override;
  46. int getEnvVarCount() // Get the number of rows in env var table
  47. {
  48. return m_gridEnvVars->GetTable()->GetRowsCount();
  49. }
  50. bool isPathRelativeAllowed()
  51. {
  52. return m_rbPathOptionChoice->GetSelection() == 1;
  53. }
  54. public:
  55. DIALOG_CONFIG_EQUFILES( CVPCB_MAINFRAME* parent );
  56. ~DIALOG_CONFIG_EQUFILES() {};
  57. };
  58. #endif // _DIALOG_CONFIG_EQUFILES_H_