KiCad PCB EDA Suite
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
27
28class PAGE_INFO;
29class EDA_ITEM;
31class TITLE_BLOCK;
33
34
36{
37public:
38 PANEL_EESCHEMA_COLOR_SETTINGS( wxWindow* aParent );
39
41
42 void ResetPanel() override;
43
44protected:
45 bool TransferDataFromWindow() override;
46
47 bool TransferDataToWindow() override;
48
49 void OnOverrideItemColorsClicked( wxCommandEvent& aEvent ) override;
50 void OnSize( wxSizeEvent& aEvent ) override;
51 void onNewThemeSelected() override;
52 void onColorChanged() override;
53
54 bool validateSave( bool aQuiet = false ) override;
55
56 bool saveCurrentTheme( bool aValidate ) override;
57
58 void createSwatches() override;
59
60private:
61 void createPreviewItems();
62
63 void updatePreview();
64 void zoomFitPreview();
65
66private:
71 std::vector<EDA_ITEM*> m_previewItems;
72
75};
76
77
78#endif
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:100
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition: page_info.h:54
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.
void OnSize(wxSizeEvent &aEvent) override
KIGFX::GAL_DISPLAY_OPTIONS m_galDisplayOptions
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