2017-10-31 16:33:37 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2017 Seth Hillbrand <hillbrand@ucdavis.edu>
|
2020-06-19 11:48:00 +00:00
|
|
|
* Copyright (C) 2014-2020 KiCad Developers, see AUTHORS.txt for contributors.
|
2017-10-31 16:33:37 +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
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __dialog_edit_line_style__
|
|
|
|
#define __dialog_edit_line_style__
|
|
|
|
|
2018-06-14 08:26:11 +00:00
|
|
|
#include <dialog_edit_line_style_base.h>
|
|
|
|
#include <widgets/unit_binder.h>
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
|
2018-06-14 08:26:11 +00:00
|
|
|
class SCH_EDIT_FRAME;
|
|
|
|
class SCH_LINE;
|
|
|
|
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
class DIALOG_EDIT_LINE_STYLE : public DIALOG_EDIT_LINE_STYLE_BASE
|
|
|
|
{
|
|
|
|
public:
|
2020-06-19 11:48:00 +00:00
|
|
|
DIALOG_EDIT_LINE_STYLE( SCH_EDIT_FRAME* aParent, std::deque<SCH_ITEM*>& strokeItems );
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2018-06-14 08:26:11 +00:00
|
|
|
bool TransferDataToWindow() override;
|
|
|
|
bool TransferDataFromWindow() override;
|
2017-11-14 23:19:03 +00:00
|
|
|
|
2017-10-31 16:33:37 +00:00
|
|
|
private:
|
2019-12-31 04:05:51 +00:00
|
|
|
SCH_EDIT_FRAME* m_frame;
|
2020-06-19 11:48:00 +00:00
|
|
|
std::deque<SCH_ITEM*> m_strokeItems;
|
2018-06-14 08:26:11 +00:00
|
|
|
|
2020-08-18 16:12:26 +00:00
|
|
|
UNIT_BINDER m_width;
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
void resetDefaults( wxCommandEvent& event ) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __dialog_edit_line_style__
|