79 changed files with 835 additions and 310 deletions
-
183d-viewer/dialogs/panel_3D_colors.cpp
-
53d-viewer/dialogs/panel_3D_colors.h
-
43d-viewer/dialogs/panel_3D_colors_base.cpp
-
53d-viewer/dialogs/panel_3D_colors_base.fbp
-
63d-viewer/dialogs/panel_3D_colors_base.h
-
593d-viewer/dialogs/panel_3D_display_options.cpp
-
83d-viewer/dialogs/panel_3D_display_options.h
-
23d-viewer/dialogs/panel_3D_display_options_base.cpp
-
23d-viewer/dialogs/panel_3D_display_options_base.fbp
-
33d-viewer/dialogs/panel_3D_display_options_base.h
-
373d-viewer/dialogs/panel_3D_opengl_options.cpp
-
83d-viewer/dialogs/panel_3D_opengl_options.h
-
43d-viewer/dialogs/panel_3D_opengl_options_base.cpp
-
53d-viewer/dialogs/panel_3D_opengl_options_base.fbp
-
63d-viewer/dialogs/panel_3D_opengl_options_base.h
-
1453d-viewer/dialogs/panel_3D_raytracing_options.cpp
-
103d-viewer/dialogs/panel_3D_raytracing_options.h
-
4common/eda_base_frame.cpp
-
14common/widgets/gal_options_panel.cpp
-
17common/widgets/paged_dialog.cpp
-
1eeschema/CMakeLists.txt
-
25eeschema/dialogs/panel_eeschema_display_options.cpp
-
8eeschema/dialogs/panel_eeschema_display_options.h
-
2eeschema/dialogs/panel_eeschema_display_options_base.cpp
-
2eeschema/dialogs/panel_eeschema_display_options_base.fbp
-
3eeschema/dialogs/panel_eeschema_display_options_base.h
-
56eeschema/dialogs/panel_eeschema_editing_options.cpp
-
7eeschema/dialogs/panel_eeschema_editing_options.h
-
2eeschema/dialogs/panel_eeschema_editing_options_base.cpp
-
2eeschema/dialogs/panel_eeschema_editing_options_base.fbp
-
3eeschema/dialogs/panel_eeschema_editing_options_base.h
-
75eeschema/dialogs/panel_sym_display_options.cpp
-
45eeschema/dialogs/panel_sym_display_options.h
-
31eeschema/dialogs/panel_sym_editing_options.cpp
-
7eeschema/dialogs/panel_sym_editing_options.h
-
2eeschema/dialogs/panel_sym_editing_options_base.cpp
-
2eeschema/dialogs/panel_sym_editing_options_base.fbp
-
3eeschema/dialogs/panel_sym_editing_options_base.h
-
7eeschema/eeschema.cpp
-
42gerbview/dialogs/panel_gerbview_display_options.cpp
-
7gerbview/dialogs/panel_gerbview_display_options.h
-
2gerbview/dialogs/panel_gerbview_display_options_base.cpp
-
2gerbview/dialogs/panel_gerbview_display_options_base.fbp
-
3gerbview/dialogs/panel_gerbview_display_options_base.h
-
2include/dialogs/panel_color_settings.h
-
4include/frame_type.h
-
1include/id.h
-
2include/panel_hotkeys_editor.h
-
2include/widgets/gal_options_panel.h
-
27include/widgets/resettable_panel.h
-
1pagelayout_editor/CMakeLists.txt
-
12pagelayout_editor/dialogs/panel_pl_editor_color_settings.cpp
-
6pagelayout_editor/dialogs/panel_pl_editor_color_settings.h
-
2pagelayout_editor/dialogs/panel_pl_editor_color_settings_base.cpp
-
2pagelayout_editor/dialogs/panel_pl_editor_color_settings_base.fbp
-
3pagelayout_editor/dialogs/panel_pl_editor_color_settings_base.h
-
75pagelayout_editor/dialogs/panel_pl_editor_display_options.cpp
-
45pagelayout_editor/dialogs/panel_pl_editor_display_options.h
-
4pagelayout_editor/pl_editor.cpp
-
40pcbnew/dialogs/panel_display_options.cpp
-
6pcbnew/dialogs/panel_display_options.h
-
2pcbnew/dialogs/panel_display_options_base.cpp
-
2pcbnew/dialogs/panel_display_options_base.fbp
-
3pcbnew/dialogs/panel_display_options_base.h
-
81pcbnew/dialogs/panel_edit_options.cpp
-
11pcbnew/dialogs/panel_edit_options.h
-
2pcbnew/dialogs/panel_edit_options_base.cpp
-
2pcbnew/dialogs/panel_edit_options_base.fbp
-
3pcbnew/dialogs/panel_edit_options_base.h
-
40pcbnew/dialogs/panel_fp_editor_defaults.cpp
-
9pcbnew/dialogs/panel_fp_editor_defaults.h
-
2pcbnew/dialogs/panel_fp_editor_defaults_base.cpp
-
2pcbnew/dialogs/panel_fp_editor_defaults_base.fbp
-
3pcbnew/dialogs/panel_fp_editor_defaults_base.h
-
30pcbnew/dialogs/panel_pcbnew_display_origin.cpp
-
6pcbnew/dialogs/panel_pcbnew_display_origin.h
-
3pcbnew/dialogs/panel_pcbnew_display_origin_base.cpp
-
4pcbnew/dialogs/panel_pcbnew_display_origin_base.fbp
-
5pcbnew/dialogs/panel_pcbnew_display_origin_base.h
@ -0,0 +1,75 @@ |
|||
/*
|
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2021 KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* This program is free software; you can redistribute it and/or |
|||
* modify it under the terms of the GNU General Public License |
|||
* as published by the Free Software Foundation; either version 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|||
* or you may search the http://www.gnu.org website for the version 2 license,
|
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
#include <settings/settings_manager.h>
|
|||
#include <symbol_editor_settings.h>
|
|||
#include <panel_sym_display_options.h>
|
|||
#include <widgets/gal_options_panel.h>
|
|||
#include <widgets/ui_common.h>
|
|||
#include <wx/sizer.h>
|
|||
|
|||
|
|||
PANEL_SYM_DISPLAY_OPTIONS::PANEL_SYM_DISPLAY_OPTIONS( wxWindow* aParent, |
|||
APP_SETTINGS_BASE* aAppSettings ) : |
|||
RESETTABLE_PANEL( aParent ) |
|||
{ |
|||
wxBoxSizer* bPanelSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
wxBoxSizer* bLeftCol = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_galOptsPanel = new GAL_OPTIONS_PANEL( this, aAppSettings ); |
|||
bLeftCol->Add( m_galOptsPanel, 1, wxEXPAND, 0 ); |
|||
|
|||
bPanelSizer->Add( bLeftCol, 1, wxEXPAND, 0 ); |
|||
bPanelSizer->Add( 0, 0, 1, wxEXPAND, 5 ); |
|||
|
|||
this->SetSizer( bPanelSizer ); |
|||
this->Layout(); |
|||
bPanelSizer->Fit( this ); |
|||
} |
|||
|
|||
|
|||
bool PANEL_SYM_DISPLAY_OPTIONS::TransferDataToWindow() |
|||
{ |
|||
m_galOptsPanel->TransferDataToWindow(); |
|||
|
|||
return true; |
|||
} |
|||
|
|||
|
|||
bool PANEL_SYM_DISPLAY_OPTIONS::TransferDataFromWindow() |
|||
{ |
|||
m_galOptsPanel->TransferDataFromWindow(); |
|||
|
|||
return true; |
|||
} |
|||
|
|||
|
|||
void PANEL_SYM_DISPLAY_OPTIONS::ResetPanel() |
|||
{ |
|||
SYMBOL_EDITOR_SETTINGS cfg; |
|||
cfg.Load(); // Loading without a file will init to defaults
|
|||
|
|||
m_galOptsPanel->ResetPanel( &cfg ); |
|||
} |
|||
|
|||
|
@ -0,0 +1,45 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2021 KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify it |
|||
* under the terms of the GNU General Public License as published by the |
|||
* Free Software Foundation, either version 3 of the License, or (at your |
|||
* option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, but |
|||
* WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
* General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef PANEL_SYM_DISPLAY_OPTIONS_H |
|||
#define PANEL_SYM_DISPLAY_OPTIONS_H |
|||
|
|||
#include <widgets/resettable_panel.h> |
|||
|
|||
|
|||
class APP_SETTINGS_BASE; |
|||
class GAL_OPTIONS_PANEL; |
|||
|
|||
|
|||
class PANEL_SYM_DISPLAY_OPTIONS : public RESETTABLE_PANEL |
|||
{ |
|||
public: |
|||
PANEL_SYM_DISPLAY_OPTIONS( wxWindow* aParent, APP_SETTINGS_BASE* aAppSettings ); |
|||
|
|||
bool TransferDataToWindow() override; |
|||
bool TransferDataFromWindow() override; |
|||
|
|||
void ResetPanel() override; |
|||
|
|||
private: |
|||
GAL_OPTIONS_PANEL* m_galOptsPanel; |
|||
}; |
|||
|
|||
|
|||
#endif // PANEL_SYM_DISPLAY_OPTIONS_H |
@ -0,0 +1,75 @@ |
|||
/*
|
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2021 KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* This program is free software; you can redistribute it and/or |
|||
* modify it under the terms of the GNU General Public License |
|||
* as published by the Free Software Foundation; either version 2 |
|||
* of the License, or (at your option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program; if not, you may find one here: |
|||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|||
* or you may search the http://www.gnu.org website for the version 2 license,
|
|||
* or you may write to the Free Software Foundation, Inc., |
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|||
*/ |
|||
|
|||
#include <settings/settings_manager.h>
|
|||
#include <pl_editor_settings.h>
|
|||
#include <panel_pl_editor_display_options.h>
|
|||
#include <widgets/gal_options_panel.h>
|
|||
#include <widgets/ui_common.h>
|
|||
#include <wx/sizer.h>
|
|||
|
|||
|
|||
PANEL_PL_EDITOR_DISPLAY_OPTIONS::PANEL_PL_EDITOR_DISPLAY_OPTIONS( wxWindow* aParent, |
|||
APP_SETTINGS_BASE* aAppSettings ) : |
|||
RESETTABLE_PANEL( aParent ) |
|||
{ |
|||
wxBoxSizer* bPanelSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
wxBoxSizer* bLeftCol = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_galOptsPanel = new GAL_OPTIONS_PANEL( this, aAppSettings ); |
|||
bLeftCol->Add( m_galOptsPanel, 1, wxEXPAND, 0 ); |
|||
|
|||
bPanelSizer->Add( bLeftCol, 1, wxEXPAND, 0 ); |
|||
bPanelSizer->Add( 0, 0, 1, wxEXPAND, 5 ); |
|||
|
|||
this->SetSizer( bPanelSizer ); |
|||
this->Layout(); |
|||
bPanelSizer->Fit( this ); |
|||
} |
|||
|
|||
|
|||
bool PANEL_PL_EDITOR_DISPLAY_OPTIONS::TransferDataToWindow() |
|||
{ |
|||
m_galOptsPanel->TransferDataToWindow(); |
|||
|
|||
return true; |
|||
} |
|||
|
|||
|
|||
bool PANEL_PL_EDITOR_DISPLAY_OPTIONS::TransferDataFromWindow() |
|||
{ |
|||
m_galOptsPanel->TransferDataFromWindow(); |
|||
|
|||
return true; |
|||
} |
|||
|
|||
|
|||
void PANEL_PL_EDITOR_DISPLAY_OPTIONS::ResetPanel() |
|||
{ |
|||
PL_EDITOR_SETTINGS cfg; |
|||
cfg.Load(); // Loading without a file will init to defaults
|
|||
|
|||
m_galOptsPanel->ResetPanel( &cfg ); |
|||
} |
|||
|
|||
|
@ -0,0 +1,45 @@ |
|||
/* |
|||
* This program source code file is part of KiCad, a free EDA CAD application. |
|||
* |
|||
* Copyright (C) 2021 KiCad Developers, see AUTHORS.txt for contributors. |
|||
* |
|||
* This program is free software: you can redistribute it and/or modify it |
|||
* under the terms of the GNU General Public License as published by the |
|||
* Free Software Foundation, either version 3 of the License, or (at your |
|||
* option) any later version. |
|||
* |
|||
* This program is distributed in the hope that it will be useful, but |
|||
* WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
* General Public License for more details. |
|||
* |
|||
* You should have received a copy of the GNU General Public License along |
|||
* with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
*/ |
|||
|
|||
#ifndef PANEL_PL_EDITOR_DISPLAY_OPTIONS_H |
|||
#define PANEL_PL_EDITOR_DISPLAY_OPTIONS_H |
|||
|
|||
#include <widgets/resettable_panel.h> |
|||
|
|||
|
|||
class APP_SETTINGS_BASE; |
|||
class GAL_OPTIONS_PANEL; |
|||
|
|||
|
|||
class PANEL_PL_EDITOR_DISPLAY_OPTIONS : public RESETTABLE_PANEL |
|||
{ |
|||
public: |
|||
PANEL_PL_EDITOR_DISPLAY_OPTIONS( wxWindow* aParent, APP_SETTINGS_BASE* aAppSettings ); |
|||
|
|||
bool TransferDataToWindow() override; |
|||
bool TransferDataFromWindow() override; |
|||
|
|||
void ResetPanel() override; |
|||
|
|||
private: |
|||
GAL_OPTIONS_PANEL* m_galOptsPanel; |
|||
}; |
|||
|
|||
|
|||
#endif // PANEL_PL_EDITOR_DISPLAY_OPTIONS_H |
Write
Preview
Loading…
Cancel
Save
Reference in new issue