KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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 <
[email protected]
>
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 <
dialogs/panel_color_settings.h
>
26
#include <
class_draw_panel_gal.h
>
27
#include <
gal_display_options_common.h
>
28
29
class
PAGE_INFO
;
30
class
EDA_ITEM
;
31
class
SCH_PREVIEW_PANEL
;
32
class
TITLE_BLOCK
;
33
class
DS_PROXY_VIEW_ITEM
;
34
35
36
class
PANEL_EESCHEMA_COLOR_SETTINGS
:
public
PANEL_COLOR_SETTINGS
37
{
38
public
:
39
PANEL_EESCHEMA_COLOR_SETTINGS
( wxWindow* aParent );
40
41
~PANEL_EESCHEMA_COLOR_SETTINGS
()
override
;
42
43
void
ResetPanel
()
override
;
44
45
protected
:
46
bool
TransferDataFromWindow
()
override
;
47
48
bool
TransferDataToWindow
()
override
;
49
50
void
OnOverrideItemColorsClicked
( wxCommandEvent& aEvent )
override
;
51
void
OnSize
( wxSizeEvent& aEvent )
override
;
52
void
onNewThemeSelected
()
override
;
53
void
onColorChanged
()
override
;
54
55
bool
validateSave
(
bool
aQuiet =
false
)
override
;
56
57
bool
saveCurrentTheme
(
bool
aValidate )
override
;
58
59
void
createSwatches
()
override
;
60
61
private
:
62
void
createPreviewItems
();
63
64
void
updatePreview
();
65
void
updateAllowedSwatches
();
66
void
zoomFitPreview
();
67
68
private
:
69
SCH_PREVIEW_PANEL
*
m_preview
;
70
PAGE_INFO
*
m_page
;
71
TITLE_BLOCK
*
m_titleBlock
;
72
DS_PROXY_VIEW_ITEM
*
m_drawingSheet
;
73
std::vector<EDA_ITEM*>
m_previewItems
;
74
75
GAL_DISPLAY_OPTIONS_IMPL
m_galDisplayOptions
;
76
EDA_DRAW_PANEL_GAL::GAL_TYPE
m_galType
;
77
};
78
79
80
#endif
DS_PROXY_VIEW_ITEM
Definition:
ds_proxy_view_item.h:48
EDA_DRAW_PANEL_GAL::GAL_TYPE
GAL_TYPE
Definition:
class_draw_panel_gal.h:63
EDA_ITEM
A base class for most all the KiCad significant classes used in schematics and boards.
Definition:
eda_item.h:89
GAL_DISPLAY_OPTIONS_IMPL
Definition:
gal_display_options_common.h:37
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_EESCHEMA_COLOR_SETTINGS
Definition:
panel_eeschema_color_settings.h:37
PANEL_EESCHEMA_COLOR_SETTINGS::m_titleBlock
TITLE_BLOCK * m_titleBlock
Definition:
panel_eeschema_color_settings.h:71
PANEL_EESCHEMA_COLOR_SETTINGS::saveCurrentTheme
bool saveCurrentTheme(bool aValidate) override
Definition:
panel_eeschema_color_settings.cpp:166
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:241
PANEL_EESCHEMA_COLOR_SETTINGS::OnOverrideItemColorsClicked
void OnOverrideItemColorsClicked(wxCommandEvent &aEvent) override
Definition:
panel_eeschema_color_settings.cpp:554
PANEL_EESCHEMA_COLOR_SETTINGS::updatePreview
void updatePreview()
Definition:
panel_eeschema_color_settings.cpp:495
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:141
PANEL_EESCHEMA_COLOR_SETTINGS::ResetPanel
void ResetPanel() override
Reset the contents of this panel.
Definition:
panel_eeschema_color_settings.cpp:488
PANEL_EESCHEMA_COLOR_SETTINGS::m_galDisplayOptions
GAL_DISPLAY_OPTIONS_IMPL m_galDisplayOptions
Definition:
panel_eeschema_color_settings.h:75
PANEL_EESCHEMA_COLOR_SETTINGS::OnSize
void OnSize(wxSizeEvent &aEvent) override
Definition:
panel_eeschema_color_settings.cpp:532
PANEL_EESCHEMA_COLOR_SETTINGS::m_page
PAGE_INFO * m_page
Definition:
panel_eeschema_color_settings.h:70
PANEL_EESCHEMA_COLOR_SETTINGS::m_drawingSheet
DS_PROXY_VIEW_ITEM * m_drawingSheet
Definition:
panel_eeschema_color_settings.h:72
PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems
void createPreviewItems()
Definition:
panel_eeschema_color_settings.cpp:247
PANEL_EESCHEMA_COLOR_SETTINGS::~PANEL_EESCHEMA_COLOR_SETTINGS
~PANEL_EESCHEMA_COLOR_SETTINGS() override
Definition:
panel_eeschema_color_settings.cpp:102
PANEL_EESCHEMA_COLOR_SETTINGS::updateAllowedSwatches
void updateAllowedSwatches()
Definition:
panel_eeschema_color_settings.cpp:539
PANEL_EESCHEMA_COLOR_SETTINGS::m_galType
EDA_DRAW_PANEL_GAL::GAL_TYPE m_galType
Definition:
panel_eeschema_color_settings.h:76
PANEL_EESCHEMA_COLOR_SETTINGS::onColorChanged
void onColorChanged() override
Event fired when the user changes any color.
Definition:
panel_eeschema_color_settings.cpp:482
PANEL_EESCHEMA_COLOR_SETTINGS::m_preview
SCH_PREVIEW_PANEL * m_preview
Definition:
panel_eeschema_color_settings.h:69
PANEL_EESCHEMA_COLOR_SETTINGS::createSwatches
void createSwatches() override
Definition:
panel_eeschema_color_settings.cpp:187
PANEL_EESCHEMA_COLOR_SETTINGS::TransferDataToWindow
bool TransferDataToWindow() override
Definition:
panel_eeschema_color_settings.cpp:134
PANEL_EESCHEMA_COLOR_SETTINGS::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition:
panel_eeschema_color_settings.cpp:118
PANEL_EESCHEMA_COLOR_SETTINGS::zoomFitPreview
void zoomFitPreview()
Definition:
panel_eeschema_color_settings.cpp:512
PANEL_EESCHEMA_COLOR_SETTINGS::m_previewItems
std::vector< EDA_ITEM * > m_previewItems
Definition:
panel_eeschema_color_settings.h:73
SCH_PREVIEW_PANEL
Definition:
sch_preview_panel.h:42
TITLE_BLOCK
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition:
title_block.h:41
class_draw_panel_gal.h
gal_display_options_common.h
panel_color_settings.h
src
eeschema
dialogs
panel_eeschema_color_settings.h
Generated on Sun Dec 22 2024 00:05:21 for KiCad PCB EDA Suite by
1.9.6