KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_shape_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 The KiCad Developers, see CHANGELOG.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#ifndef DIALOG_SHAPE_PROPERTIES_H
21#define DIALOG_SHAPE_PROPERTIES_H
22
23
24class SCH_SHAPE;
25class SCH_BASE_FRAME;
26
27
29#include <widgets/unit_binder.h>
30
31
33{
34public:
36 ~DIALOG_SHAPE_PROPERTIES() override;
37
38 bool TransferDataToWindow() override;
39 bool TransferDataFromWindow() override;
40
42 bool GetApplyToAllUnits() { return m_checkApplyToAllUnits->IsChecked(); }
43
44private:
45 void onBorderChecked( wxCommandEvent& aEvent) override;
46 void onBorderSwatch( wxCommandEvent& aEvent );
47 void onFillChoice( wxCommandEvent& event ) override;
48 void onFillRadioButton(wxCommandEvent &aEvent) override;
49 void onCustomColorSwatch( wxCommandEvent& aEvent );
50
51private:
55};
56
57#endif // DIALOG_SHAPE_PROPERTIES_H
DIALOG_SHAPE_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("%s Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
DIALOG_SHAPE_PROPERTIES(SCH_BASE_FRAME *aParent, SCH_SHAPE *aShape)
void onBorderChecked(wxCommandEvent &aEvent) override
void onFillChoice(wxCommandEvent &event) override
void onFillRadioButton(wxCommandEvent &aEvent) override
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...