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>
|
2022-03-16 13:43:19 +00:00
|
|
|
* Copyright (C) 2014-2022 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
|
|
|
|
*/
|
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
#ifndef DIALOG_WIRE_BUS_PROPERTIES_H
|
|
|
|
#define DIALOG_WIRE_BUS_PROPERTIES_H
|
2017-10-31 16:33:37 +00:00
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
#include <dialog_wire_bus_properties_base.h>
|
2018-06-14 08:26:11 +00:00
|
|
|
#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
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
class DIALOG_WIRE_BUS_PROPERTIES : public DIALOG_WIRE_BUS_PROPERTIES_BASE
|
2017-10-31 16:33:37 +00:00
|
|
|
{
|
|
|
|
public:
|
2022-03-16 13:43:19 +00:00
|
|
|
DIALOG_WIRE_BUS_PROPERTIES( SCH_EDIT_FRAME* aParent, std::deque<SCH_ITEM*>& aItems );
|
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;
|
2022-03-16 13:43:19 +00:00
|
|
|
std::deque<SCH_ITEM*> m_items;
|
2018-06-14 08:26:11 +00:00
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
UNIT_BINDER m_wireWidth;
|
|
|
|
UNIT_BINDER m_junctionSize;
|
2017-10-31 16:33:37 +00:00
|
|
|
|
|
|
|
void resetDefaults( wxCommandEvent& event ) override;
|
|
|
|
};
|
|
|
|
|
2022-03-16 13:43:19 +00:00
|
|
|
#endif // DIALOG_WIRE_BUS_PROPERTIES_H
|