KiCad PCB EDA Suite
dialog_swap_layers.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) 2018 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 
24 #ifndef _DIALOG_SCRIPTING_H_
25 #define _DIALOG_SCRIPTING_H_
26 
28 
29 class PCB_EDIT_FRAME;
30 class LAYER_GRID_TABLE;
31 
32 
34 {
35 private:
38 
40 
41 public:
43  ~DIALOG_SWAP_LAYERS() override;
44 
45 private:
46  bool TransferDataToWindow() override;
47  bool TransferDataFromWindow() override;
48 
49  void OnSize( wxSizeEvent& event ) override;
50 
51  void adjustGridColumns( int aWidth );
52 };
53 
54 #endif
PCB_LAYER_ID * m_layerDestinations
void adjustGridColumns(int aWidth)
PCB_LAYER_ID
A quick note on layer IDs:
Class DIALOG_SWAP_LAYERS_BASE.
DIALOG_SWAP_LAYERS(PCB_BASE_EDIT_FRAME *aParent, PCB_LAYER_ID *aArray)
Common, abstract interface for edit frames.
Class PCB_EDIT_FRAME is the main frame for Pcbnew.
bool TransferDataFromWindow() override
void OnSize(wxSizeEvent &event) override
PCB_BASE_EDIT_FRAME * m_parent
bool TransferDataToWindow() override
LAYER_GRID_TABLE * m_gridTable