KiCad PCB EDA Suite
Loading...
Searching...
No Matches
properties_frame.h
Go to the documentation of this file.
1
4
5/*
6 * This program source code file is part of KiCad, a free EDA CAD application.
7 *
8 * Copyright (C) 2013 CERN
9 * Copyright The 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, see <https://www.gnu.org/licenses/>.
24 */
25
26#ifndef _PROPERTIES_FRAME_H
27#define _PROPERTIES_FRAME_H
28
30#include <widgets/unit_binder.h>
31
32class DS_DATA_ITEM;
33class PL_EDITOR_FRAME;
35
39
41{
44
47
50
53
56
59
62
65
68
71
73
75
76public:
79
80 void OnAcceptPrms();
81
82 // Event functions
83 void OnUpdateUI( wxUpdateUIEvent& aEvent ) override;
84 void onModify( wxCommandEvent& aEvent ) override;
85 void onTextFocusLost( wxFocusEvent& aEvent ) override;
86 void OnSetDefaultValues( wxCommandEvent& event ) override;
87 void onScintillaCharAdded( wxStyledTextEvent &aEvent );
88 void onScintillaFocusLost( wxFocusEvent& aEvent ) override;
89 void onHelp( wxHyperlinkEvent& aEvent ) override;
90 void onHAlignButton( wxCommandEvent &aEvent );
91 void onVAlignButton( wxCommandEvent &aEvent );
92
93 // Data transfer from general properties to widgets
95
96 // Data transfer from widgets to general properties
98
99 // Data transfer from item to widgets in properties frame
101
102 // Data transfer from widgets in properties frame to item
104
105 wxSize GetMinSize() const override;
106};
107
108#endif /* _PROPERTIES_FRAME_H */
Drawing sheet structure type definitions.
PANEL_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
The main window used in the drawing sheet editor.
void onModify(wxCommandEvent &aEvent) override
UNIT_BINDER m_defaultTextSizeX
void onScintillaFocusLost(wxFocusEvent &aEvent) override
UNIT_BINDER m_lineWidth
PROPERTIES_FRAME(PL_EDITOR_FRAME *aParent)
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)
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)
void onHelp(wxHyperlinkEvent &aEvent) override
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.