KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_textbox_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 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#ifndef DIALOG_TEXTBOX_PROPERTIES_H
21#define DIALOG_TEXTBOX_PROPERTIES_H
22
23#include <wx/hyperlink.h>
24#include <widgets/unit_binder.h>
25#include <wx/valnum.h>
26
28
29
31class PCB_TEXTBOX;
34class wxHyperlinkCtrl;
35
36
38{
39public:
42
43private:
44 void onFontSelected( wxCommandEvent& aEvent ) override;
45 void onBoldToggle( wxCommandEvent& aEvent ) override;
46 void onHalignButton( wxCommandEvent& aEvent ) override;
47 void onValignButton( wxCommandEvent& aEvent ) override;
48 void onThickness( wxCommandEvent& aEvent ) override;
49 void onBorderChecked( wxCommandEvent& event ) override;
50 void onTextSize( wxCommandEvent& aEvent ) override;
51 void onAutoTextThickness( wxCommandEvent& aEvent ) override;
52
53 bool TransferDataToWindow() override;
54 bool TransferDataFromWindow() override;
55 void onMultiLineTCLostFocus( wxFocusEvent& event ) override;
56
57 void onSyntaxHelp( wxHyperlinkEvent& aEvent );
58
59private:
62
66 UNIT_BINDER m_orientation; // rotation in degrees
68
70 wxHyperlinkCtrl* m_syntaxHelp;
72};
73
74
75#endif //DIALOG_TEXTBOX_PROPERTIES_H
DIALOG_TEXTBOX_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Text Box Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU)
void onHalignButton(wxCommandEvent &aEvent) override
void onTextSize(wxCommandEvent &aEvent) override
void onThickness(wxCommandEvent &aEvent) override
void onBoldToggle(wxCommandEvent &aEvent) override
void onAutoTextThickness(wxCommandEvent &aEvent) override
DIALOG_TEXTBOX_PROPERTIES(PCB_BASE_EDIT_FRAME *aParent, PCB_TEXTBOX *aTextBox)
void onMultiLineTCLostFocus(wxFocusEvent &event) override
void onSyntaxHelp(wxHyperlinkEvent &aEvent)
void onFontSelected(wxCommandEvent &aEvent) override
void onValignButton(wxCommandEvent &aEvent) override
void onBorderChecked(wxCommandEvent &event) override
Common, abstract interface for edit frames.
Add cut/copy/paste, dark theme, autocomplete and brace highlighting to a wxStyleTextCtrl instance.