KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_eeschema_color_settings.h
Go to the documentation of this file.
1
2/*
3 * This program source code file is part of KiCad, a free EDA CAD application.
4 *
5 * Copyright (C) 2020 Jon Evans <[email protected]>
6 * Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef PANEL_EESCHEMA_COLOR_SETTINGS_H_
23#define PANEL_EESCHEMA_COLOR_SETTINGS_H_
24
28
29class PAGE_INFO;
30class EDA_ITEM;
32class TITLE_BLOCK;
34
35
37{
38public:
39 PANEL_EESCHEMA_COLOR_SETTINGS( wxWindow* aParent );
40
42
43 void ResetPanel() override;
44
45protected:
46 bool TransferDataFromWindow() override;
47
48 bool TransferDataToWindow() override;
49
50 void OnOverrideItemColorsClicked( wxCommandEvent& aEvent ) override;
51 void OnSize( wxSizeEvent& aEvent ) override;
52 void onNewThemeSelected() override;
53 void onColorChanged() override;
54
55 bool validateSave( bool aQuiet = false ) override;
56
57 bool saveCurrentTheme( bool aValidate ) override;
58
59 void createSwatches() override;
60
61private:
62 void createPreviewItems();
63
64 void updatePreview();
66 void zoomFitPreview();
67
68private:
73 std::vector<EDA_ITEM*> m_previewItems;
74
77};
78
79
80#endif
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:88
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition: page_info.h:59
bool saveCurrentTheme(bool aValidate) override
void onNewThemeSelected() override
Event fired when a new theme is selected that can be overridden in children.
void OnOverrideItemColorsClicked(wxCommandEvent &aEvent) override
bool validateSave(bool aQuiet=false) override
Performs a pre-save validation of the current color theme.
void ResetPanel() override
Reset the contents of this panel.
GAL_DISPLAY_OPTIONS_IMPL m_galDisplayOptions
void OnSize(wxSizeEvent &aEvent) override
EDA_DRAW_PANEL_GAL::GAL_TYPE m_galType
void onColorChanged() override
Event fired when the user changes any color.
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition: title_block.h:41