KiCad PCB EDA Suite
dialog_config_equfiles.h
Go to the documentation of this file.
1 
5 /*
6  * This program source code file is part of KICAD, a free EDA CAD application.
7  *
8  * Copyright (C) 2010-2015 Jean-Pierre Charras jp.charras at wanadoo.fr
9  * Copyright (C) 1992-2021 Kicad Developers, see AUTHORS.TXT for contributors.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, you may find one here:
23  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
24  * or you may search the http://www.gnu.org website for the version 2 license,
25  * or you may write to the Free Software Foundation, Inc.,
26  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
27  */
28 
29 #ifndef _DIALOG_CONFIG_EQUFILES_H_
30 #define _DIALOG_CONFIG_EQUFILES_H_
31 
33 
35 {
36 public:
39 
40 private:
41  void Init();
42 
43  // Virtual event handlers
44  void OnCloseWindow( wxCloseEvent& event ) override;
45  void OnOkClick( wxCommandEvent& event ) override;
46  void OnAddFiles( wxCommandEvent& event ) override;
47  void OnEditEquFile( wxCommandEvent& event ) override;
48  void OnRemoveFiles( wxCommandEvent& event ) override;
49  void OnButtonMoveUp( wxCommandEvent& event ) override;
50  void OnButtonMoveDown( wxCommandEvent& event ) override;
51 
52  int getEnvVarCount() // Get the number of rows in env var table
53  {
54  return m_gridEnvVars->GetTable()->GetRowsCount();
55  }
56 
58  {
59  return m_rbPathOptionChoice->GetSelection() == 1;
60  }
61 
64 
66 };
67 
68 #endif // _DIALOG_CONFIG_EQUFILES_H_
void OnEditEquFile(wxCommandEvent &event) override
void OnAddFiles(wxCommandEvent &event) override
void OnCloseWindow(wxCloseEvent &event) override
void OnButtonMoveUp(wxCommandEvent &event) override
Class DIALOG_CONFIG_EQUFILES_BASE.
void OnButtonMoveDown(wxCommandEvent &event) override
void OnOkClick(wxCommandEvent &event) override
DIALOG_CONFIG_EQUFILES(CVPCB_MAINFRAME *parent)
void OnRemoveFiles(wxCommandEvent &event) override
The CvPcb application main window.