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