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
|
2019-03-31 09:37:57 +00:00
|
|
|
* Copyright (C) 1992-2019 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
|
|
|
|
*/
|
2010-11-21 18:28:32 +00:00
|
|
|
|
2019-03-31 09:37:57 +00:00
|
|
|
#ifndef DIALOG_CLEANUP_TRACKS_AND_VIAS_H_
|
|
|
|
#define DIALOG_CLEANUP_TRACKS_AND_VIAS_H_
|
2010-11-21 18:28:32 +00:00
|
|
|
|
2019-03-31 09:37:57 +00:00
|
|
|
#include <dialog_cleanup_tracks_and_vias_base.h>
|
2020-06-17 12:46:50 +00:00
|
|
|
#include <cleanup_item.h>
|
2019-03-31 09:37:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
class PCB_EDIT_FRAME;
|
|
|
|
|
|
|
|
|
|
|
|
class DIALOG_CLEANUP_TRACKS_AND_VIAS: public DIALOG_CLEANUP_TRACKS_AND_VIAS_BASE
|
2010-11-21 18:28:32 +00:00
|
|
|
{
|
2020-06-17 12:46:50 +00:00
|
|
|
PCB_EDIT_FRAME* m_parentFrame;
|
2020-08-11 13:33:16 +00:00
|
|
|
std::vector<std::shared_ptr<CLEANUP_ITEM> > m_items;
|
2020-06-17 12:46:50 +00:00
|
|
|
RC_TREE_MODEL* m_changesTreeModel;
|
2010-11-21 18:28:32 +00:00
|
|
|
|
2019-03-31 09:37:57 +00:00
|
|
|
void doCleanup( bool aDryRun );
|
2010-11-21 18:28:32 +00:00
|
|
|
|
2019-03-31 09:37:57 +00:00
|
|
|
void OnCheckBox( wxCommandEvent& anEvent ) override;
|
2020-02-24 23:17:30 +00:00
|
|
|
void OnSelectItem( wxDataViewEvent& event ) override;
|
2019-03-31 09:37:57 +00:00
|
|
|
void OnLeftDClickItem( wxMouseEvent& event ) override;
|
2010-11-21 18:28:32 +00:00
|
|
|
|
2019-03-31 09:37:57 +00:00
|
|
|
bool TransferDataToWindow() override;
|
|
|
|
bool TransferDataFromWindow() override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
DIALOG_CLEANUP_TRACKS_AND_VIAS( PCB_EDIT_FRAME* parent );
|
|
|
|
~DIALOG_CLEANUP_TRACKS_AND_VIAS();
|
2010-11-21 18:28:32 +00:00
|
|
|
};
|
|
|
|
|
2019-03-31 09:37:57 +00:00
|
|
|
#endif // DIALOG_CLEANUP_TRACKS_AND_VIAS_H_
|