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, see <https://www.gnu.org/licenses/>.
18 */
19
20
21#ifndef DRC_RE_CONSTRAINT_PANEL_PARAMS_H_
22#define DRC_RE_CONSTRAINT_PANEL_PARAMS_H_
23
24#include <wx/string.h>
25
29
30
32{
33public:
35
36 DRC_RE_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
37 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType ) :
38 m_constraintTitle( aConstraintTitle ), m_constraintType( aConstraintType )
39 {
40 }
41
44};
45
46
48{
49public:
50
54
55 DRC_RE_NUMERIC_INPUT_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
56 const std::shared_ptr<DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA>& aConstraintData,
57 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType ) :
58 DRC_RE_CONSTRAINT_PANEL_PARAMS( aConstraintTitle, aConstraintType ),
59 m_constraintData( aConstraintData )
60 {
61 }
62
63 DRC_RE_NUMERIC_INPUT_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
64 const std::shared_ptr<DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA>& aConstraintData,
65 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType,
66 const wxString& aCustomLabelText ) :
67 DRC_RE_NUMERIC_INPUT_CONSTRAINT_PANEL_PARAMS( aConstraintTitle, aConstraintData, aConstraintType )
68 {
69 m_customLabelText = aCustomLabelText;
70 }
71
72
73 void SetInputIsCount( bool aInputIsCount ) { m_isCountInput = aInputIsCount; }
74
76 bool m_isCountInput = false;
77 std::shared_ptr<DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA> m_constraintData;
78};
79
80
82{
83public:
85
86 DRC_RE_BOOL_INPUT_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
87 const std::shared_ptr<DRC_RE_BOOL_INPUT_CONSTRAINT_DATA>& aConstraintData,
88 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType ) :
89 DRC_RE_CONSTRAINT_PANEL_PARAMS( aConstraintTitle, aConstraintType ),
90 m_constraintData( aConstraintData )
91 {
92 }
93
94 DRC_RE_BOOL_INPUT_CONSTRAINT_PANEL_PARAMS( const wxString& aConstraintTitle,
95 const std::shared_ptr<DRC_RE_BOOL_INPUT_CONSTRAINT_DATA>& aConstraintData,
96 const DRC_RULE_EDITOR_CONSTRAINT_NAME& aConstraintType,
97 const wxString& aCustomLabelText ) :
98 DRC_RE_BOOL_INPUT_CONSTRAINT_PANEL_PARAMS( aConstraintTitle, aConstraintData,
99 aConstraintType )
100 {
101 m_customLabelText = aCustomLabelText;
102 }
103
105 std::shared_ptr<DRC_RE_BOOL_INPUT_CONSTRAINT_DATA> m_constraintData;
106};
107
108#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