KiCad PCB EDA Suite
Loading...
Searching...
No Matches
geom_field_helpers.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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * 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, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef GEOM_FIELD_HELPERS_H
21#define GEOM_FIELD_HELPERS_H
22
23#include <memory>
24#include <vector>
25
26#include <origin_transforms.h>
27
28class EDA_DRAW_FRAME;
29class UNIT_BINDER;
30class wxGridBagSizer;
31class wxString;
32class wxTextCtrl;
33
35{
36 std::unique_ptr<UNIT_BINDER> m_Binder;
37 wxTextCtrl* m_Ctrl;
38};
39
40void AddXYPointToSizer( EDA_DRAW_FRAME& aFrame, wxGridBagSizer& aSizer, int row, int col,
41 const wxString& aName, bool aRelative,
42 std::vector<BOUND_CONTROL>& aBoundCtrls );
43
44void AddFieldToSizer( EDA_DRAW_FRAME& aFrame, wxGridBagSizer& aSizer, int row, int col,
45 const wxString& aName, ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType,
46 bool aIsAngle, std::vector<BOUND_CONTROL>& aBoundCtrls );
47
48#endif
The base class for create windows for drawing purpose.
COORD_TYPES_T
The supported Display Origin Transform types.
void AddXYPointToSizer(EDA_DRAW_FRAME &aFrame, wxGridBagSizer &aSizer, int row, int col, const wxString &aName, bool aRelative, std::vector< BOUND_CONTROL > &aBoundCtrls)
void AddFieldToSizer(EDA_DRAW_FRAME &aFrame, wxGridBagSizer &aSizer, int row, int col, const wxString &aName, ORIGIN_TRANSFORMS::COORD_TYPES_T aCoordType, bool aIsAngle, std::vector< BOUND_CONTROL > &aBoundCtrls)
std::unique_ptr< UNIT_BINDER > m_Binder
wxTextCtrl * m_Ctrl