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
32
#include <
dialog_config_equfiles_base.h
>
33
34
class
DIALOG_CONFIG_EQUFILES
:
public
DIALOG_CONFIG_EQUFILES_BASE
35
{
36
public
:
37
DIALOG_CONFIG_EQUFILES
(
CVPCB_MAINFRAME
* parent );
38
~DIALOG_CONFIG_EQUFILES
() {};
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
57
bool
isPathRelativeAllowed
()
58
{
59
return
m_rbPathOptionChoice
->GetSelection() == 1;
60
}
61
62
CVPCB_MAINFRAME
*
m_Parent
;
63
wxString
m_UserLibDirBufferImg
;
64
65
bool
m_ListChanged
;
66
};
67
68
#endif // _DIALOG_CONFIG_EQUFILES_H_
DIALOG_CONFIG_EQUFILES::Init
void Init()
Definition:
dialog_config_equfiles.cpp:60
DIALOG_CONFIG_EQUFILES::getEnvVarCount
int getEnvVarCount()
Definition:
dialog_config_equfiles.h:52
DIALOG_CONFIG_EQUFILES::m_ListChanged
bool m_ListChanged
Definition:
dialog_config_equfiles.h:65
DIALOG_CONFIG_EQUFILES::m_UserLibDirBufferImg
wxString m_UserLibDirBufferImg
Definition:
dialog_config_equfiles.h:63
DIALOG_CONFIG_EQUFILES::OnEditEquFile
void OnEditEquFile(wxCommandEvent &event) override
Definition:
dialog_config_equfiles.cpp:97
DIALOG_CONFIG_EQUFILES::OnAddFiles
void OnAddFiles(wxCommandEvent &event) override
Definition:
dialog_config_equfiles.cpp:228
DIALOG_CONFIG_EQUFILES::OnCloseWindow
void OnCloseWindow(wxCloseEvent &event) override
Definition:
dialog_config_equfiles.cpp:138
DIALOG_CONFIG_EQUFILES::OnButtonMoveUp
void OnButtonMoveUp(wxCommandEvent &event) override
Definition:
dialog_config_equfiles.cpp:144
DIALOG_CONFIG_EQUFILES_BASE::m_rbPathOptionChoice
wxRadioBox * m_rbPathOptionChoice
Definition:
dialog_config_equfiles_base.h:58
dialog_config_equfiles_base.h
DIALOG_CONFIG_EQUFILES::isPathRelativeAllowed
bool isPathRelativeAllowed()
Definition:
dialog_config_equfiles.h:57
DIALOG_CONFIG_EQUFILES_BASE::m_gridEnvVars
wxGrid * m_gridEnvVars
Definition:
dialog_config_equfiles_base.h:57
DIALOG_CONFIG_EQUFILES_BASE
Class DIALOG_CONFIG_EQUFILES_BASE.
Definition:
dialog_config_equfiles_base.h:37
DIALOG_CONFIG_EQUFILES::m_Parent
CVPCB_MAINFRAME * m_Parent
Definition:
dialog_config_equfiles.h:62
DIALOG_CONFIG_EQUFILES::OnButtonMoveDown
void OnButtonMoveDown(wxCommandEvent &event) override
Definition:
dialog_config_equfiles.cpp:177
DIALOG_CONFIG_EQUFILES::OnOkClick
void OnOkClick(wxCommandEvent &event) override
Definition:
dialog_config_equfiles.cpp:118
DIALOG_CONFIG_EQUFILES
Definition:
dialog_config_equfiles.h:34
DIALOG_CONFIG_EQUFILES::~DIALOG_CONFIG_EQUFILES
~DIALOG_CONFIG_EQUFILES()
Definition:
dialog_config_equfiles.h:38
DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES
DIALOG_CONFIG_EQUFILES(CVPCB_MAINFRAME *parent)
Definition:
dialog_config_equfiles.cpp:45
DIALOG_CONFIG_EQUFILES::OnRemoveFiles
void OnRemoveFiles(wxCommandEvent &event) override
Definition:
dialog_config_equfiles.cpp:213
CVPCB_MAINFRAME
The CvPcb application main window.
Definition:
cvpcb_mainframe.h:56
cvpcb
dialogs
dialog_config_equfiles.h
Generated on Sat Jul 2 2022 04:06:07 for KiCad PCB EDA Suite by
1.8.15