KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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-2022 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
30class BOARD_ITEM;
33
34
36{
37public:
39
41
42protected:
43 bool TransferDataToWindow() override;
44
45 bool TransferDataFromWindow() override;
46
47private:
48 void onFontSelected( wxCommandEvent &aEvent ) override;
49 void onBoldToggle( wxCommandEvent &aEvent ) override;
50 void onAlignButton( wxCommandEvent &aEvent ) override;
51 void onThickness( wxCommandEvent &aEvent ) override;
52
54
55 void updatePreviewText();
56
57private:
59
62
63 PCB_LAYER_BOX_SELECTOR* m_cbLayerActual; // The active layer box control
64 wxTextCtrl* m_txtValueActual; // The active value control
65
71 UNIT_BINDER m_orientation; // rotation in degrees
76};
77
78
79#endif // KICAD_DIALOG_DIMENSION_PROPERTIES_H
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition: board_item.h:79
Class DIALOG_DIMENSION_PROPERTIES_BASE.
void onFontSelected(wxCommandEvent &aEvent) override
PCB_LAYER_BOX_SELECTOR * m_cbLayerActual
void onBoldToggle(wxCommandEvent &aEvent) override
void updateDimensionFromDialog(PCB_DIMENSION_BASE *aTarget)
void onAlignButton(wxCommandEvent &aEvent) override
void onThickness(wxCommandEvent &aEvent) override
Common, abstract interface for edit frames.
Abstract dimension API.
Class to display a pcb layer list in a wxBitmapComboBox.