KiCad PCB EDA Suite
dialog_filter_selection.cpp
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) 2017-2020 KiCad Developers, see AUTHORS.txt for contributors.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, you may find one here:
18  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19  * or you may search the http://www.gnu.org website for the version 2 license,
20  * or you may write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22  */
23 
25 #include <pcb_edit_frame.h>
26 
27 
30  m_options( aOptions )
31 {
34 
35  if( m_Include_Modules->GetValue() )
36  m_IncludeLockedModules->Enable();
37  else
38  m_IncludeLockedModules->Disable();
39 
46 
47  m_sdbSizer1OK->SetDefault();
48  SetFocus();
49  GetSizer()->SetSizeHints( this );
50  Centre();
51 }
52 
53 
54 void DIALOG_FILTER_SELECTION::checkBoxClicked( wxCommandEvent& aEvent )
55 {
56  if( m_Include_Modules->GetValue() )
57  m_IncludeLockedModules->Enable();
58  else
59  m_IncludeLockedModules->Disable();
60 }
61 
62 
63 void DIALOG_FILTER_SELECTION::ExecuteCommand( wxCommandEvent& event )
64 {
68  m_options.includeVias = m_Include_Vias->GetValue();
73 
74  EndModal( wxID_OK );
75 }
void checkBoxClicked(wxCommandEvent &aEvent) override
Reference to the options struct to fill.
Struct that will be set with the result of the user choices in the dialog.
Class DIALOG_FILTER_SELECTION_BASE.
DIALOG_FILTER_SELECTION(PCB_BASE_FRAME *aParent, OPTIONS &aOptions)
void ExecuteCommand(wxCommandEvent &event) override
PCB_BASE_FRAME basic PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.