KiCad PCB EDA Suite
dialog_dimension_properties.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) 2020 Jon Evans <[email protected]>
5  * Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
6  *
7  * This program is free software: you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by the
9  * Free Software Foundation, either version 3 of the License, or (at your
10  * option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef KICAD_DIALOG_DIMENSION_PROPERTIES_H
22 #define KICAD_DIALOG_DIMENSION_PROPERTIES_H
23 
24 #include <widgets/unit_binder.h>
25 #include <wx/valnum.h>
26 
28 
29 
30 class BOARD_ITEM;
31 class PCB_DIMENSION_BASE;
33 
34 
36 {
37 public:
39 
41 
42 protected:
43  bool TransferDataToWindow() override;
44 
45  bool TransferDataFromWindow() override;
46 
47 private:
48 
50 
53 
54  PCB_LAYER_BOX_SELECTOR* m_cbLayerActual; // The active layer box control
55  wxTextCtrl* m_txtValueActual; // The active value control
56 
62 
63  wxFloatingPointValidator<double> m_orientValidator;
64  double m_orientValue;
65 
69 
71 
72  void updatePreviewText();
73 };
74 
75 
76 #endif // KICAD_DIALOG_DIMENSION_PROPERTIES_H
Class DIALOG_DIMENSION_PROPERTIES_BASE.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition: board_item.h:49
Abstract dimension API.
Definition: pcb_dimension.h:95
Class to display a pcb layer list in a wxBitmapComboBox.
wxFloatingPointValidator< double > m_orientValidator
PCB_LAYER_BOX_SELECTOR * m_cbLayerActual
Common, abstract interface for edit frames.
DIALOG_DIMENSION_PROPERTIES(PCB_BASE_EDIT_FRAME *aParent, BOARD_ITEM *aItem)
void updateDimensionFromDialog(PCB_DIMENSION_BASE *aTarget)