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 <jon@craftyjon.com>
5
* Copyright (C) 2020 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
24
#include <
gal/color4d.h
>
25
#include <
layers_id_colors_and_visibility.h
>
26
#include <
dialogs/panel_color_settings.h
>
27
28
class
COLOR_SETTINGS
;
29
class
PAGE_INFO
;
30
class
PCB_EDIT_FRAME
;
31
class
FOOTPRINT_PREVIEW_PANEL
;
32
class
TITLE_BLOCK
;
33
class
DS_PROXY_VIEW_ITEM
;
34
35
36
class
PANEL_PCBNEW_COLOR_SETTINGS
:
public
PANEL_COLOR_SETTINGS
37
{
38
public
:
39
PANEL_PCBNEW_COLOR_SETTINGS
(
PCB_EDIT_FRAME
* aFrame, wxWindow* aParent );
40
41
~PANEL_PCBNEW_COLOR_SETTINGS
()
override
;
42
43
void
ResetPanel
()
override
;
44
45
protected
:
46
bool
TransferDataFromWindow
()
override
;
47
48
bool
TransferDataToWindow
()
override
;
49
50
void
OnSize
( wxSizeEvent& aEvent )
override
;
51
void
onNewThemeSelected
()
override
;
52
void
onColorChanged
()
override
;
53
54
enum
COLOR_CONTEXT_ID
55
{
56
ID_COPY
= wxID_HIGHEST + 1,
57
ID_PASTE
,
58
ID_REVERT
59
};
60
61
private
:
62
PCB_EDIT_FRAME
*
m_frame
;
63
64
FOOTPRINT_PREVIEW_PANEL
*
m_preview
;
65
PAGE_INFO
*
m_page
;
66
TITLE_BLOCK
*
m_titleBlock
;
67
68
private
:
69
void
createPreviewItems
();
70
void
createSwatches
();
71
72
void
updatePreview
();
73
void
zoomFitPreview
();
74
};
75
76
77
#endif
PANEL_COLOR_SETTINGS
Definition:
panel_color_settings.h:32
PANEL_PCBNEW_COLOR_SETTINGS::TransferDataToWindow
bool TransferDataToWindow() override
Definition:
panel_pcbnew_color_settings.cpp:445
color4d.h
PANEL_PCBNEW_COLOR_SETTINGS::ResetPanel
void ResetPanel() override
Reset the contents of this panel.
Definition:
panel_pcbnew_color_settings.cpp:530
TITLE_BLOCK
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition:
title_block.h:40
PANEL_PCBNEW_COLOR_SETTINGS::m_page
PAGE_INFO * m_page
Definition:
panel_pcbnew_color_settings.h:65
PANEL_PCBNEW_COLOR_SETTINGS::createSwatches
void createSwatches()
Definition:
panel_pcbnew_color_settings.cpp:452
PANEL_PCBNEW_COLOR_SETTINGS::PANEL_PCBNEW_COLOR_SETTINGS
PANEL_PCBNEW_COLOR_SETTINGS(PCB_EDIT_FRAME *aFrame, wxWindow *aParent)
Definition:
panel_pcbnew_color_settings.cpp:373
FOOTPRINT_PREVIEW_PANEL
Panel that renders a single footprint via Cairo GAL, meant to be exported through Kiface.
Definition:
footprint_preview_panel.h:50
PANEL_PCBNEW_COLOR_SETTINGS::updatePreview
void updatePreview()
Definition:
panel_pcbnew_color_settings.cpp:537
PANEL_PCBNEW_COLOR_SETTINGS::m_titleBlock
TITLE_BLOCK * m_titleBlock
Definition:
panel_pcbnew_color_settings.h:66
PANEL_COLOR_SETTINGS::COLOR_CONTEXT_ID
COLOR_CONTEXT_ID
Definition:
panel_color_settings.h:39
PANEL_PCBNEW_COLOR_SETTINGS::m_frame
PCB_EDIT_FRAME * m_frame
Definition:
panel_pcbnew_color_settings.h:62
PANEL_PCBNEW_COLOR_SETTINGS::OnSize
void OnSize(wxSizeEvent &aEvent) override
Definition:
panel_pcbnew_color_settings.cpp:576
PAGE_INFO
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition:
page_info.h:53
PANEL_PCBNEW_COLOR_SETTINGS::~PANEL_PCBNEW_COLOR_SETTINGS
~PANEL_PCBNEW_COLOR_SETTINGS() override
Definition:
panel_pcbnew_color_settings.cpp:427
PANEL_PCBNEW_COLOR_SETTINGS::ID_PASTE
Definition:
panel_pcbnew_color_settings.h:57
DS_PROXY_VIEW_ITEM
Definition:
ds_proxy_view_item.h:47
PANEL_PCBNEW_COLOR_SETTINGS::onColorChanged
void onColorChanged() override
Event fired when the user changes any color.
Definition:
panel_pcbnew_color_settings.cpp:524
PANEL_PCBNEW_COLOR_SETTINGS::createPreviewItems
void createPreviewItems()
Definition:
panel_pcbnew_color_settings.cpp:490
PANEL_PCBNEW_COLOR_SETTINGS::ID_REVERT
Definition:
panel_pcbnew_color_settings.h:58
PANEL_PCBNEW_COLOR_SETTINGS::zoomFitPreview
void zoomFitPreview()
Definition:
panel_pcbnew_color_settings.cpp:554
layers_id_colors_and_visibility.h
Board layer functions and definitions.
panel_color_settings.h
PANEL_PCBNEW_COLOR_SETTINGS
Definition:
panel_pcbnew_color_settings.h:36
PCB_EDIT_FRAME
The main frame for Pcbnew.
Definition:
pcb_edit_frame.h:73
COLOR_SETTINGS
Color settings are a bit different than most of the settings objects in that there can be more than o...
Definition:
color_settings.h:49
PANEL_PCBNEW_COLOR_SETTINGS::ID_COPY
Definition:
panel_pcbnew_color_settings.h:56
PANEL_PCBNEW_COLOR_SETTINGS::m_preview
FOOTPRINT_PREVIEW_PANEL * m_preview
Definition:
panel_pcbnew_color_settings.h:64
PANEL_PCBNEW_COLOR_SETTINGS::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition:
panel_pcbnew_color_settings.cpp:435
PANEL_PCBNEW_COLOR_SETTINGS::onNewThemeSelected
void onNewThemeSelected() override
Event fired when a new theme is selected that can be overridden in children.
Definition:
panel_pcbnew_color_settings.cpp:484
pcbnew
dialogs
panel_pcbnew_color_settings.h
Generated on Sat Feb 27 2021 04:19:44 for KiCad PCB EDA Suite by
1.8.15