KiCad PCB EDA Suite
dialog_env_var_config.h
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KICAD, a free EDA CAD application.
3  *
4  * Copyright (C) 2015 Wayne Stambaugh <stambaughw@gmail.com>
5  * Copyright (C) 2015 Kicad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
25 #ifndef _DIALOG_ENV_VAR_CONFIG_H_
26 #define _DIALOG_ENV_VAR_CONFIG_H_
27 
28 class EDA_DRAW_FRAME;
29 
30 #include <../common/dialogs/dialog_env_var_config_base.h>
31 
32 #include <pgm_base.h>
33 
34 
40 {
41 private:
44 
45 protected:
46  virtual void OnAddRow( wxCommandEvent& aEvent ) override;
47  virtual void OnDeleteSelectedRows( wxCommandEvent& aEvent ) override;
48  virtual void OnHelpRequest( wxCommandEvent& aEvent ) override;
49 
50 public:
51  DIALOG_ENV_VAR_CONFIG( wxWindow* parent, const ENV_VAR_MAP& aEnvVarMap );
52 
53  bool TransferDataToWindow() override;
54  bool TransferDataFromWindow() override;
55 
56  bool ExternalDefsChanged() const { return m_extDefsChanged; }
57 
58  const ENV_VAR_MAP& GetEnvVarMap() const
59  {
60  return m_envVarMap;
61  }
62 };
63 
64 #endif // _DIALOG_ENV_VAR_CONFIG_H_
bool TransferDataFromWindow() override
Class DIALOG_ENV_VAR_CONFIG_BASE.
Class EDA_DRAW_FRAME is the base class for create windows for drawing purpose.
Definition: draw_frame.h:53
const ENV_VAR_MAP & GetEnvVarMap() const
std::map< wxString, ENV_VAR_ITEM > ENV_VAR_MAP
Definition: pgm_base.h:87
virtual void OnAddRow(wxCommandEvent &aEvent) override
virtual void OnHelpRequest(wxCommandEvent &aEvent) override
DIALOG_ENV_VAR_CONFIG class declaration.
see class PGM_BASE
virtual void OnDeleteSelectedRows(wxCommandEvent &aEvent) override
DIALOG_ENV_VAR_CONFIG(wxWindow *parent, const ENV_VAR_MAP &aEnvVarMap)
bool TransferDataToWindow() override