KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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#include <units_provider.h>
26
27class PAGE_INFO;
29class TITLE_BLOCK;
30
31
33{
34public:
35 PANEL_PCBNEW_COLOR_SETTINGS( wxWindow* aParent, BOARD* aBoard );
36
38
39 void ResetPanel() override;
40
41protected:
42 bool TransferDataFromWindow() override;
43
44 bool TransferDataToWindow() override;
45
46 void OnSize( wxSizeEvent& aEvent ) override;
47 void onNewThemeSelected() override;
48 void onColorChanged() override;
49
50 void createSwatches() override;
51
53 {
54 ID_COPY = wxID_HIGHEST + 1,
57 };
58
59private:
60 void createPreviewItems();
61
62 void updatePreview();
63 void zoomFitPreview();
64
69};
70
71
72#endif
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:282
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:59
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
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