2014-10-27 14:14:39 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010-2014 Jean-Pierre Charras, jean-pierre.charras at wanadoo.fr
|
2022-12-03 19:31:41 +00:00
|
|
|
* Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
2014-10-27 14:14:39 +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 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
|
|
|
|
*/
|
|
|
|
|
2020-12-19 00:19:47 +00:00
|
|
|
#ifndef PANEL_EDIT_OPTIONS_H
|
|
|
|
#define PANEL_EDIT_OPTIONS_H
|
2008-12-21 16:54:27 +00:00
|
|
|
|
2022-01-19 13:24:02 +00:00
|
|
|
#include <widgets/unit_binder.h>
|
2020-06-17 20:45:03 +00:00
|
|
|
#include "panel_edit_options_base.h"
|
2009-10-30 17:58:15 +00:00
|
|
|
|
2018-07-15 23:15:48 +00:00
|
|
|
|
2021-11-01 11:20:13 +00:00
|
|
|
class FOOTPRINT_EDITOR_SETTINGS;
|
|
|
|
class PCBNEW_SETTINGS;
|
2022-01-19 13:24:02 +00:00
|
|
|
class EDA_BASE_FRAME;
|
2021-11-01 11:20:13 +00:00
|
|
|
|
|
|
|
|
2020-06-17 20:45:03 +00:00
|
|
|
class PANEL_EDIT_OPTIONS : public PANEL_EDIT_OPTIONS_BASE
|
2008-12-21 16:54:27 +00:00
|
|
|
{
|
|
|
|
public:
|
2022-12-03 19:31:41 +00:00
|
|
|
PANEL_EDIT_OPTIONS( wxWindow* aParent, UNITS_PROVIDER* aUnitsProvider, wxWindow* aEventSource,
|
|
|
|
bool isFootprintEditor );
|
2018-02-16 16:57:18 +00:00
|
|
|
|
2018-05-14 17:34:18 +00:00
|
|
|
bool TransferDataToWindow() override;
|
|
|
|
bool TransferDataFromWindow() override;
|
2020-12-19 00:19:47 +00:00
|
|
|
|
2021-11-01 11:20:13 +00:00
|
|
|
void ResetPanel() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void loadFPSettings( FOOTPRINT_EDITOR_SETTINGS* aCfg );
|
|
|
|
void loadPCBSettings( PCBNEW_SETTINGS* aCfg );
|
|
|
|
|
2020-12-19 00:19:47 +00:00
|
|
|
private:
|
2022-01-19 13:24:02 +00:00
|
|
|
bool m_isFootprintEditor;
|
|
|
|
|
|
|
|
UNIT_BINDER m_rotationAngle;
|
2008-12-21 16:54:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2020-12-19 00:19:47 +00:00
|
|
|
#endif // PANEL_EDIT_OPTIONS_H
|