KiCad PCB EDA Suite
Loading...
Searching...
No Matches
properties_frame.h
Go to the documentation of this file.
1
5/*
6 * This program source code file is part of KiCad, a free EDA CAD application.
7 *
8 * Copyright (C) 2013 CERN
9 * Copyright (C) 2013-2022 KiCad Developers, see AUTHORS.txt for contributors.
10 * @author Jean-Pierre Charras, jp.charras at wanadoo.fr
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, you may find one here:
24 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
25 * or you may search the http://www.gnu.org website for the version 2 license,
26 * or you may write to the Free Software Foundation, Inc.,
27 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
28 */
29
30#ifndef _PROPERTIES_FRAME_H
31#define _PROPERTIES_FRAME_H
32
34#include <widgets/unit_binder.h>
35
36class DS_DATA_ITEM;
37class PL_EDITOR_FRAME;
39
45{
48
51
54
57
60
63
66
69
72
75
77
79
80public:
83
84 void OnAcceptPrms();
85
86 // Event functions
87 void OnUpdateUI( wxUpdateUIEvent& aEvent ) override;
88 void onModify( wxCommandEvent& aEvent ) override;
89 void onTextFocusLost( wxFocusEvent& aEvent ) override;
90 void OnSetDefaultValues( wxCommandEvent& event ) override;
91 void onScintillaCharAdded( wxStyledTextEvent &aEvent );
92 void onScintillaFocusLost( wxFocusEvent& aEvent ) override;
93 void onHelp( wxCommandEvent& aEvent ) override;
94 void onHAlignButton( wxCommandEvent &aEvent );
95 void onVAlignButton( wxCommandEvent &aEvent );
96
97 // Data transfer from general properties to widgets
99
100 // Data transfer from widgets to general properties
102
103 // Data transfer from item to widgets in properties frame
105
106 // Data transfer from widgets in properties frame to item
108
109 wxSize GetMinSize() const override;
110};
111
112#endif /* _PROPERTIES_FRAME_H */
Drawing sheet structure type definitions.
Definition: ds_data_item.h:96
Class PANEL_PROPERTIES_BASE.
The main window used in the drawing sheet editor.
PROPERTIES_FRAME display properties of the current item.
void onModify(wxCommandEvent &aEvent) override
UNIT_BINDER m_defaultTextSizeX
void onScintillaFocusLost(wxFocusEvent &aEvent) override
UNIT_BINDER m_lineWidth
UNIT_BINDER m_constraintX
UNIT_BINDER m_defaultLineWidth
UNIT_BINDER m_textBottomMargin
PL_EDITOR_FRAME * m_parent
UNIT_BINDER m_textSizeY
UNIT_BINDER m_textLeftMargin
UNIT_BINDER m_defaultTextThickness
void onScintillaCharAdded(wxStyledTextEvent &aEvent)
void onHelp(wxCommandEvent &aEvent) override
UNIT_BINDER m_textEndX
void OnSetDefaultValues(wxCommandEvent &event) override
void onTextFocusLost(wxFocusEvent &aEvent) override
void CopyPrmsFromItemToPanel(DS_DATA_ITEM *aItem)
void OnUpdateUI(wxUpdateUIEvent &aEvent) override
void onHAlignButton(wxCommandEvent &aEvent)
bool CopyPrmsFromPanelToItem(DS_DATA_ITEM *aItem)
UNIT_BINDER m_textEndY
wxSize GetMinSize() const override
UNIT_BINDER m_textSizeX
void onVAlignButton(wxCommandEvent &aEvent)
UNIT_BINDER m_constraintY
UNIT_BINDER m_defaultTextSizeY
UNIT_BINDER m_textPosX
UNIT_BINDER m_textStepY
UNIT_BINDER m_textTopMargin
UNIT_BINDER m_textRightMargin
UNIT_BINDER m_textPosY
UNIT_BINDER m_textStepX
SCINTILLA_TRICKS * m_scintillaTricks
Add cut/copy/paste, dark theme, autocomplete and brace highlighting to a wxStyleTextCtrl instance.