KiCad PCB EDA Suite
panel_pcbnew_color_settings.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 (C) 2020 Jon Evans <[email protected]>
5 * Copyright (C) 2020-2021 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef PANEL_PCBNEW_COLOR_SETTINGS_H_
22#define PANEL_PCBNEW_COLOR_SETTINGS_H_
23
25
26class PAGE_INFO;
28class TITLE_BLOCK;
29
30
32{
33public:
34 PANEL_PCBNEW_COLOR_SETTINGS( wxWindow* aParent, BOARD* aBoard );
35
37
38 void ResetPanel() override;
39
40protected:
41 bool TransferDataFromWindow() override;
42
43 bool TransferDataToWindow() override;
44
45 void OnSize( wxSizeEvent& aEvent ) override;
46 void onNewThemeSelected() override;
47 void onColorChanged() override;
48
49 void createSwatches() override;
50
52 {
53 ID_COPY = wxID_HIGHEST + 1,
56 };
57
58private:
59 void createPreviewItems();
60
61 void updatePreview();
62 void zoomFitPreview();
63
68};
69
70
71#endif
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:269
Panel that renders a single footprint via Cairo GAL, meant to be exported through Kiface.
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition: page_info.h:54
void OnSize(wxSizeEvent &aEvent) override
void onColorChanged() override
Event fired when the user changes any color.
void onNewThemeSelected() override
Event fired when a new theme is selected that can be overridden in children.
FOOTPRINT_PREVIEW_PANEL * m_preview
PANEL_PCBNEW_COLOR_SETTINGS(wxWindow *aParent, BOARD *aBoard)
void ResetPanel() override
Reset the contents of this panel.
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition: title_block.h:41