KiCad PCB EDA Suite
panel_eeschema_color_settings.h
Go to the documentation of this file.
1
2
/*
3
* This program source code file is part of KiCad, a free EDA CAD application.
4
*
5
* Copyright (C) 2020 Jon Evans <jon@craftyjon.com>
6
* Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
7
*
8
* This program is free software: you can redistribute it and/or modify it
9
* under the terms of the GNU General Public License as published by the
10
* Free Software Foundation, either version 3 of the License, or (at your
11
* option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License along
19
* with this program. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef PANEL_EESCHEMA_COLOR_SETTINGS_H_
23
#define PANEL_EESCHEMA_COLOR_SETTINGS_H_
24
25
#include <
gal/color4d.h
>
26
#include <
gal/gal_display_options.h
>
27
#include <
layers_id_colors_and_visibility.h
>
28
#include <
dialogs/panel_color_settings.h
>
29
30
class
COLOR_SETTINGS
;
31
class
SCH_BASE_FRAME
;
32
class
PAGE_INFO
;
33
class
SCH_ITEM
;
34
class
SCH_PREVIEW_PANEL
;
35
class
TITLE_BLOCK
;
36
class
DS_PROXY_VIEW_ITEM
;
37
38
39
class
PANEL_EESCHEMA_COLOR_SETTINGS
:
public
PANEL_COLOR_SETTINGS
40
{
41
public
:
42
PANEL_EESCHEMA_COLOR_SETTINGS
(
SCH_BASE_FRAME
* aFrame, wxWindow* aParent );
43
44
~PANEL_EESCHEMA_COLOR_SETTINGS
()
override
;
45
46
void
ResetPanel
()
override
;
47
48
protected
:
49
bool
TransferDataFromWindow
()
override
;
50
51
bool
TransferDataToWindow
()
override
;
52
53
void
OnOverrideItemColorsClicked
( wxCommandEvent& aEvent )
override
;
54
void
OnSize
( wxSizeEvent& aEvent )
override
;
55
void
onNewThemeSelected
()
override
;
56
void
onColorChanged
()
override
;
57
58
bool
validateSave
(
bool
aQuiet =
false
)
override
;
59
60
bool
saveCurrentTheme
(
bool
aValidate )
override
;
61
62
private
:
63
SCH_BASE_FRAME
*
m_frame
;
64
65
SCH_PREVIEW_PANEL
*
m_preview
;
66
PAGE_INFO
*
m_page
;
67
TITLE_BLOCK
*
m_titleBlock
;
68
DS_PROXY_VIEW_ITEM
*
m_drawingSheet
;
69
std::vector<EDA_ITEM*>
m_previewItems
;
70
71
KIGFX::GAL_DISPLAY_OPTIONS
m_galDisplayOptions
;
72
73
private
:
74
void
createPreviewItems
();
75
void
createSwatches
();
76
77
void
updatePreview
();
78
void
zoomFitPreview
();
79
};
80
81
82
#endif
PANEL_EESCHEMA_COLOR_SETTINGS::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition:
panel_eeschema_color_settings.cpp:119
PANEL_EESCHEMA_COLOR_SETTINGS::ResetPanel
void ResetPanel() override
Reset the contents of this panel.
Definition:
panel_eeschema_color_settings.cpp:421
PANEL_COLOR_SETTINGS
Definition:
panel_color_settings.h:32
PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems
void createPreviewItems()
Definition:
panel_eeschema_color_settings.cpp:236
color4d.h
PANEL_EESCHEMA_COLOR_SETTINGS::m_frame
SCH_BASE_FRAME * m_frame
Definition:
panel_eeschema_color_settings.h:63
PANEL_EESCHEMA_COLOR_SETTINGS::updatePreview
void updatePreview()
Definition:
panel_eeschema_color_settings.cpp:428
KIGFX::GAL_DISPLAY_OPTIONS
Definition:
gal_display_options.h:83
PANEL_EESCHEMA_COLOR_SETTINGS::OnSize
void OnSize(wxSizeEvent &aEvent) override
Definition:
panel_eeschema_color_settings.cpp:462
PANEL_EESCHEMA_COLOR_SETTINGS::validateSave
bool validateSave(bool aQuiet=false) override
Performs a pre-save validation of the current color theme.
Definition:
panel_eeschema_color_settings.cpp:143
TITLE_BLOCK
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition:
title_block.h:40
PANEL_EESCHEMA_COLOR_SETTINGS::saveCurrentTheme
bool saveCurrentTheme(bool aValidate) override
Definition:
panel_eeschema_color_settings.cpp:167
PANEL_EESCHEMA_COLOR_SETTINGS::m_page
PAGE_INFO * m_page
Definition:
panel_eeschema_color_settings.h:66
PANEL_EESCHEMA_COLOR_SETTINGS::onNewThemeSelected
void onNewThemeSelected() override
Event fired when a new theme is selected that can be overridden in children.
Definition:
panel_eeschema_color_settings.cpp:219
PANEL_EESCHEMA_COLOR_SETTINGS
Definition:
panel_eeschema_color_settings.h:39
PANEL_EESCHEMA_COLOR_SETTINGS::zoomFitPreview
void zoomFitPreview()
Definition:
panel_eeschema_color_settings.cpp:445
gal_display_options.h
PANEL_EESCHEMA_COLOR_SETTINGS::onColorChanged
void onColorChanged() override
Event fired when the user changes any color.
Definition:
panel_eeschema_color_settings.cpp:415
PANEL_EESCHEMA_COLOR_SETTINGS::PANEL_EESCHEMA_COLOR_SETTINGS
PANEL_EESCHEMA_COLOR_SETTINGS(SCH_BASE_FRAME *aFrame, wxWindow *aParent)
Definition:
panel_eeschema_color_settings.cpp:49
PANEL_EESCHEMA_COLOR_SETTINGS::m_preview
SCH_PREVIEW_PANEL * m_preview
Definition:
panel_eeschema_color_settings.h:65
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_EESCHEMA_COLOR_SETTINGS::~PANEL_EESCHEMA_COLOR_SETTINGS
~PANEL_EESCHEMA_COLOR_SETTINGS() override
Definition:
panel_eeschema_color_settings.cpp:107
PANEL_EESCHEMA_COLOR_SETTINGS::m_previewItems
std::vector< EDA_ITEM * > m_previewItems
Definition:
panel_eeschema_color_settings.h:69
PANEL_EESCHEMA_COLOR_SETTINGS::m_titleBlock
TITLE_BLOCK * m_titleBlock
Definition:
panel_eeschema_color_settings.h:67
DS_PROXY_VIEW_ITEM
Definition:
ds_proxy_view_item.h:47
PANEL_EESCHEMA_COLOR_SETTINGS::TransferDataToWindow
bool TransferDataToWindow() override
Definition:
panel_eeschema_color_settings.cpp:136
PANEL_EESCHEMA_COLOR_SETTINGS::OnOverrideItemColorsClicked
void OnOverrideItemColorsClicked(wxCommandEvent &aEvent) override
Definition:
panel_eeschema_color_settings.cpp:469
layers_id_colors_and_visibility.h
Board layer functions and definitions.
panel_color_settings.h
SCH_PREVIEW_PANEL
Definition:
sch_preview_panel.h:42
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_EESCHEMA_COLOR_SETTINGS::m_galDisplayOptions
KIGFX::GAL_DISPLAY_OPTIONS m_galDisplayOptions
Definition:
panel_eeschema_color_settings.h:71
SCH_BASE_FRAME
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
Definition:
sch_base_frame.h:90
SCH_ITEM
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition:
sch_item.h:197
PANEL_EESCHEMA_COLOR_SETTINGS::m_drawingSheet
DS_PROXY_VIEW_ITEM * m_drawingSheet
Definition:
panel_eeschema_color_settings.h:68
PANEL_EESCHEMA_COLOR_SETTINGS::createSwatches
void createSwatches()
Definition:
panel_eeschema_color_settings.cpp:188
eeschema
dialogs
panel_eeschema_color_settings.h
Generated on Tue Apr 20 2021 04:12:53 for KiCad PCB EDA Suite by
1.8.15