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
|
2016-06-11 23:37:43 +00:00
|
|
|
* Copyright (C) 1992-2016 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
|
|
|
|
*/
|
|
|
|
|
2008-12-21 16:54:27 +00:00
|
|
|
#ifndef __dialog_general_options_h
|
|
|
|
#define __dialog_general_options_h
|
|
|
|
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <dialog_general_options_BoardEditor_base.h>
|
2009-10-30 17:58:15 +00:00
|
|
|
|
2012-04-11 18:54:20 +00:00
|
|
|
class DIALOG_GENERALOPTIONS : public DIALOG_GENERALOPTIONS_BOARDEDITOR_BASE
|
2008-12-21 16:54:27 +00:00
|
|
|
{
|
|
|
|
private:
|
2011-09-26 20:32:56 +00:00
|
|
|
BOARD* m_Board;
|
2018-02-16 16:57:18 +00:00
|
|
|
int m_last_scale;
|
2009-02-24 22:41:30 +00:00
|
|
|
|
|
|
|
void init();
|
|
|
|
|
2008-12-21 16:54:27 +00:00
|
|
|
public:
|
2012-04-11 18:54:20 +00:00
|
|
|
DIALOG_GENERALOPTIONS( PCB_EDIT_FRAME* parent );
|
|
|
|
~DIALOG_GENERALOPTIONS() {};
|
2018-02-16 16:57:18 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void OnScaleSlider( wxScrollEvent& aEvent ) override;
|
|
|
|
void OnScaleAuto( wxCommandEvent& aEvent ) override;
|
|
|
|
|
2016-09-24 18:53:15 +00:00
|
|
|
void OnOkClick( wxCommandEvent& event ) override;
|
|
|
|
void OnCancelClick( wxCommandEvent& event ) override;
|
2011-09-26 20:32:56 +00:00
|
|
|
|
2014-05-04 17:08:36 +00:00
|
|
|
PCB_EDIT_FRAME* GetParent() const { return (PCB_EDIT_FRAME*) wxDialog::GetParent(); }
|
2008-12-21 16:54:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // __dialog_general_options_h
|