KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drc_re_constraint_panel_params.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) 2024 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
25#ifndef DRC_RE_CONSTRAINT_PANEL_PARAMS_H_
26#define DRC_RE_CONSTRAINT_PANEL_PARAMS_H_
27
28#include <wx/string.h>
29
33
34
36{
37public:
39
40 DRC_RE_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
41 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType ) :
42 m_constraintTitle( aConstraintTitle ), m_constraintType( aConstraintType )
43 {
44 }
45
48};
49
50
52{
53public:
54
58
59 DRC_RE_NUMERIC_INPUT_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
60 const std::shared_ptr<DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA>& aConstraintData,
61 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType ) :
62 DRC_RE_CONSTRAINT_PANEL_PARAMS( aConstraintTitle, aConstraintType ),
63 m_constraintData( aConstraintData )
64 {
65 }
66
67 DRC_RE_NUMERIC_INPUT_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
68 const std::shared_ptr<DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA>& aConstraintData,
69 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType,
70 const wxString& aCustomLabelText ) :
71 DRC_RE_NUMERIC_INPUT_CONSTRAINT_PANEL_PARAMS( aConstraintTitle, aConstraintData, aConstraintType )
72 {
73 m_customLabelText = aCustomLabelText;
74 }
75
76
77 void SetInputIsCount( bool aInputIsCount ) { m_isCountInput = aInputIsCount; }
78
80 bool m_isCountInput = false;
81 std::shared_ptr<DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA> m_constraintData;
82};
83
84
86{
87public:
89
90 DRC_RE_BOOL_INPUT_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
91 const std::shared_ptr<DRC_RE_BOOL_INPUT_CONSTRAINT_DATA>& aConstraintData,
92 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType ) :
93 DRC_RE_CONSTRAINT_PANEL_PARAMS( aConstraintTitle, aConstraintType ),
94 m_constraintData( aConstraintData )
95 {
96 }
97
98 DRC_RE_BOOL_INPUT_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
99 const std::shared_ptr<DRC_RE_BOOL_INPUT_CONSTRAINT_DATA>& aConstraintData,
100 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType,
101 const wxString& aCustomLabelText ) :
102 DRC_RE_BOOL_INPUT_CONSTRAINT_PANEL_PARAMS( aConstraintTitle, aConstraintData,
103 aConstraintType )
104 {
105 m_customLabelText = aCustomLabelText;
106 }
107
109 std::shared_ptr<DRC_RE_BOOL_INPUT_CONSTRAINT_DATA> m_constraintData;
110};
111
112#endif // DRC_RE_CONSTRAINT_PANEL_PARAMS_H_
std::shared_ptr< DRC_RE_BOOL_INPUT_CONSTRAINT_DATA > m_constraintData
DRC_RE_BOOL_INPUT_CONSTRAINT_PANEL_PARAMS(const wxString &aConstraintTitle, const std::shared_ptr< DRC_RE_BOOL_INPUT_CONSTRAINT_DATA > &aConstraintData, const DRC_RULE_EDITOR_CONSTRAINT_NAME &aConstraintType)
DRC_RE_BOOL_INPUT_CONSTRAINT_PANEL_PARAMS(const wxString &aConstraintTitle, const std::shared_ptr< DRC_RE_BOOL_INPUT_CONSTRAINT_DATA > &aConstraintData, const DRC_RULE_EDITOR_CONSTRAINT_NAME &aConstraintType, const wxString &aCustomLabelText)
DRC_RE_CONSTRAINT_PANEL_PARAMS(const wxString &aConstraintTitle, const DRC_RULE_EDITOR_CONSTRAINT_NAME &aConstraintType)
DRC_RULE_EDITOR_CONSTRAINT_NAME m_constraintType
DRC_RE_NUMERIC_INPUT_CONSTRAINT_PANEL_PARAMS(const wxString &aConstraintTitle, const std::shared_ptr< DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA > &aConstraintData, const DRC_RULE_EDITOR_CONSTRAINT_NAME &aConstraintType, const wxString &aCustomLabelText)
DRC_RE_NUMERIC_INPUT_CONSTRAINT_PANEL_PARAMS(const wxString &aConstraintTitle, const std::shared_ptr< DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA > &aConstraintData, const DRC_RULE_EDITOR_CONSTRAINT_NAME &aConstraintType)
std::shared_ptr< DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA > m_constraintData
DRC_RULE_EDITOR_CONSTRAINT_NAME