2019-06-08 21:48:22 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2021-10-06 02:46:53 +00:00
|
|
|
* Copyright (C) 2019-2021 KiCad Developers, see AUTHORS.TXT for contributors.
|
2019-06-08 21:48:22 +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-16 13:31:32 +00:00
|
|
|
#ifndef PCB_SELECTION_H
|
|
|
|
#define PCB_SELECTION_H
|
2019-06-08 21:48:22 +00:00
|
|
|
|
2021-07-29 09:47:43 +00:00
|
|
|
#include <layer_ids.h>
|
2019-06-08 21:48:22 +00:00
|
|
|
#include <tool/selection.h>
|
|
|
|
|
|
|
|
|
2020-12-16 13:31:32 +00:00
|
|
|
class PCB_SELECTION : public SELECTION
|
2019-06-08 21:48:22 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-11-13 12:21:02 +00:00
|
|
|
EDA_ITEM* GetTopLeftItem( bool aFootprintsOnly = false ) const override;
|
2024-05-02 17:56:13 +00:00
|
|
|
|
|
|
|
BOX2I GetBoundingBox( bool aOnlyVisible = false ) const override;
|
|
|
|
|
2021-10-03 12:58:56 +00:00
|
|
|
const std::vector<KIGFX::VIEW_ITEM*> updateDrawList() const override;
|
2019-06-08 21:48:22 +00:00
|
|
|
};
|
|
|
|
|
2020-12-16 13:31:32 +00:00
|
|
|
#endif // PCB_SELECTION_H
|