2018-04-28 15:22:25 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2022-09-10 08:12:22 +00:00
|
|
|
* Copyright (C) 2017-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
2018-04-28 15:22:25 +00:00
|
|
|
*
|
|
|
|
* 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 KICAD_DIALOG_BOARD_SETUP_H
|
|
|
|
#define KICAD_DIALOG_BOARD_SETUP_H
|
|
|
|
|
|
|
|
#include <widgets/paged_dialog.h>
|
2021-08-25 23:14:36 +00:00
|
|
|
#include "panel_setup_formatting.h"
|
2018-04-28 15:22:25 +00:00
|
|
|
|
|
|
|
class PCB_EDIT_FRAME;
|
2021-01-26 11:41:47 +00:00
|
|
|
class PANEL_SETUP_CONSTRAINTS;
|
2018-04-28 15:22:25 +00:00
|
|
|
class PANEL_SETUP_LAYERS;
|
|
|
|
class PANEL_SETUP_TEXT_AND_GRAPHICS;
|
|
|
|
class PANEL_SETUP_NETCLASSES;
|
2020-05-16 22:30:30 +00:00
|
|
|
class PANEL_SETUP_RULES;
|
2018-07-17 06:52:33 +00:00
|
|
|
class PANEL_SETUP_TRACKS_AND_VIAS;
|
2018-04-28 15:22:25 +00:00
|
|
|
class PANEL_SETUP_MASK_AND_PASTE;
|
2019-07-27 19:09:43 +00:00
|
|
|
class PANEL_SETUP_BOARD_STACKUP;
|
2021-02-24 21:20:11 +00:00
|
|
|
class PANEL_SETUP_BOARD_FINISH;
|
2020-03-10 18:46:57 +00:00
|
|
|
class PANEL_SETUP_SEVERITIES;
|
2020-03-26 11:02:59 +00:00
|
|
|
class PANEL_TEXT_VARIABLES;
|
2018-04-28 15:22:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
class DIALOG_BOARD_SETUP : public PAGED_DIALOG
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DIALOG_BOARD_SETUP( PCB_EDIT_FRAME* aFrame );
|
2019-07-27 19:09:43 +00:00
|
|
|
~DIALOG_BOARD_SETUP();
|
2018-04-28 15:22:25 +00:00
|
|
|
|
|
|
|
protected:
|
2021-12-28 14:43:57 +00:00
|
|
|
// event handlers
|
2022-09-10 08:12:22 +00:00
|
|
|
void onPageChanged( wxBookCtrlEvent& aEvent ) override;
|
|
|
|
void onAuxiliaryAction( wxCommandEvent& aEvent ) override;
|
2018-04-28 15:22:25 +00:00
|
|
|
|
|
|
|
PCB_EDIT_FRAME* m_frame;
|
|
|
|
|
2021-01-26 11:41:47 +00:00
|
|
|
PANEL_SETUP_CONSTRAINTS* m_constraints;
|
2018-04-28 15:22:25 +00:00
|
|
|
PANEL_SETUP_LAYERS* m_layers;
|
|
|
|
PANEL_SETUP_TEXT_AND_GRAPHICS* m_textAndGraphics;
|
2021-08-25 23:14:36 +00:00
|
|
|
PANEL_SETUP_FORMATTING* m_formatting;
|
2018-04-28 15:22:25 +00:00
|
|
|
PANEL_SETUP_NETCLASSES* m_netclasses;
|
2020-05-16 22:30:30 +00:00
|
|
|
PANEL_SETUP_RULES* m_rules;
|
2018-07-17 06:52:33 +00:00
|
|
|
PANEL_SETUP_TRACKS_AND_VIAS* m_tracksAndVias;
|
2018-04-28 15:22:25 +00:00
|
|
|
PANEL_SETUP_MASK_AND_PASTE* m_maskAndPaste;
|
2019-07-27 19:09:43 +00:00
|
|
|
PANEL_SETUP_BOARD_STACKUP* m_physicalStackup;
|
2021-02-24 21:20:11 +00:00
|
|
|
PANEL_SETUP_BOARD_FINISH* m_boardFinish;
|
2020-03-10 18:46:57 +00:00
|
|
|
PANEL_SETUP_SEVERITIES* m_severities;
|
2020-03-26 11:02:59 +00:00
|
|
|
PANEL_TEXT_VARIABLES* m_textVars;
|
|
|
|
|
2019-07-27 19:09:43 +00:00
|
|
|
private:
|
2021-12-15 10:01:46 +00:00
|
|
|
int m_currentPage; // the current page index
|
2019-07-27 19:09:43 +00:00
|
|
|
int m_physicalStackupPage; // the page index of the PANEL_SETUP_BOARD_STACKUP page
|
2021-02-24 02:31:12 +00:00
|
|
|
int m_layerSetupPage; // the page index of the PANEL_SETUP_LAYERS page
|
2018-04-28 15:22:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //KICAD_DIALOG_BOARD_SETUP_H
|