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
24
#include <
dialogs/panel_color_settings.h
>
25
26
class
PAGE_INFO
;
27
class
FOOTPRINT_PREVIEW_PANEL
;
28
class
TITLE_BLOCK
;
29
30
31
class
PANEL_PCBNEW_COLOR_SETTINGS
:
public
PANEL_COLOR_SETTINGS
32
{
33
public
:
34
PANEL_PCBNEW_COLOR_SETTINGS
( wxWindow* aParent,
BOARD
* aBoard );
35
36
~PANEL_PCBNEW_COLOR_SETTINGS
()
override
;
37
38
void
ResetPanel
()
override
;
39
40
protected
:
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
51
enum
COLOR_CONTEXT_ID
52
{
53
ID_COPY
= wxID_HIGHEST + 1,
54
ID_PASTE
,
55
ID_REVERT
56
};
57
58
private
:
59
void
createPreviewItems
();
60
61
void
updatePreview
();
62
void
zoomFitPreview
();
63
64
FOOTPRINT_PREVIEW_PANEL
*
m_preview
;
65
PAGE_INFO
*
m_page
;
66
TITLE_BLOCK
*
m_titleBlock
;
67
BOARD
*
m_board
;
68
};
69
70
71
#endif
BOARD
Information pertinent to a Pcbnew printed circuit board.
Definition:
board.h:269
FOOTPRINT_PREVIEW_PANEL
Panel that renders a single footprint via Cairo GAL, meant to be exported through Kiface.
Definition:
footprint_preview_panel.h:51
PAGE_INFO
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition:
page_info.h:54
PANEL_COLOR_SETTINGS
Definition:
panel_color_settings.h:33
PANEL_COLOR_SETTINGS::COLOR_CONTEXT_ID
COLOR_CONTEXT_ID
Definition:
panel_color_settings.h:40
PANEL_PCBNEW_COLOR_SETTINGS
Definition:
panel_pcbnew_color_settings.h:32
PANEL_PCBNEW_COLOR_SETTINGS::updatePreview
void updatePreview()
Definition:
panel_pcbnew_color_settings.cpp:531
PANEL_PCBNEW_COLOR_SETTINGS::OnSize
void OnSize(wxSizeEvent &aEvent) override
Definition:
panel_pcbnew_color_settings.cpp:573
PANEL_PCBNEW_COLOR_SETTINGS::TransferDataToWindow
bool TransferDataToWindow() override
Definition:
panel_pcbnew_color_settings.cpp:435
PANEL_PCBNEW_COLOR_SETTINGS::m_page
PAGE_INFO * m_page
Definition:
panel_pcbnew_color_settings.h:65
PANEL_PCBNEW_COLOR_SETTINGS::onColorChanged
void onColorChanged() override
Event fired when the user changes any color.
Definition:
panel_pcbnew_color_settings.cpp:518
PANEL_PCBNEW_COLOR_SETTINGS::m_titleBlock
TITLE_BLOCK * m_titleBlock
Definition:
panel_pcbnew_color_settings.h:66
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:476
PANEL_PCBNEW_COLOR_SETTINGS::m_board
BOARD * m_board
Definition:
panel_pcbnew_color_settings.h:67
PANEL_PCBNEW_COLOR_SETTINGS::m_preview
FOOTPRINT_PREVIEW_PANEL * m_preview
Definition:
panel_pcbnew_color_settings.h:64
PANEL_PCBNEW_COLOR_SETTINGS::zoomFitPreview
void zoomFitPreview()
Definition:
panel_pcbnew_color_settings.cpp:548
PANEL_PCBNEW_COLOR_SETTINGS::createPreviewItems
void createPreviewItems()
Definition:
panel_pcbnew_color_settings.cpp:482
PANEL_PCBNEW_COLOR_SETTINGS::PANEL_PCBNEW_COLOR_SETTINGS
PANEL_PCBNEW_COLOR_SETTINGS(wxWindow *aParent, BOARD *aBoard)
Definition:
panel_pcbnew_color_settings.cpp:375
PANEL_PCBNEW_COLOR_SETTINGS::createSwatches
void createSwatches() override
Definition:
panel_pcbnew_color_settings.cpp:442
PANEL_PCBNEW_COLOR_SETTINGS::~PANEL_PCBNEW_COLOR_SETTINGS
~PANEL_PCBNEW_COLOR_SETTINGS() override
Definition:
panel_pcbnew_color_settings.cpp:417
PANEL_PCBNEW_COLOR_SETTINGS::ID_PASTE
@ ID_PASTE
Definition:
panel_pcbnew_color_settings.h:54
PANEL_PCBNEW_COLOR_SETTINGS::ID_REVERT
@ ID_REVERT
Definition:
panel_pcbnew_color_settings.h:55
PANEL_PCBNEW_COLOR_SETTINGS::ID_COPY
@ ID_COPY
Definition:
panel_pcbnew_color_settings.h:53
PANEL_PCBNEW_COLOR_SETTINGS::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition:
panel_pcbnew_color_settings.cpp:425
PANEL_PCBNEW_COLOR_SETTINGS::ResetPanel
void ResetPanel() override
Reset the contents of this panel.
Definition:
panel_pcbnew_color_settings.cpp:524
TITLE_BLOCK
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition:
title_block.h:41
panel_color_settings.h
src
pcbnew
dialogs
panel_pcbnew_color_settings.h
Generated on Mon Mar 6 2023 00:04:32 for KiCad PCB EDA Suite by
1.9.4