KiCad PCB EDA Suite
Loading...
Searching...
No Matches
constraint_list_view.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <functional>
23
24class BOARD;
25class PCB_CONSTRAINT;
26class UNITS_PROVIDER;
27class wxListCtrl;
29
30
40
41
43void AddConstraintListColumns( wxListCtrl* aList );
44
45
53void PopulateConstraintList( wxListCtrl* aList, BOARD* aBoard, UNITS_PROVIDER* aUnits,
55 const std::function<void( long, PCB_CONSTRAINT* )>& aOnRow );
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:373
A geometric constraint between board items (issue #2329).
CONSTRAINT_LIST_COL
Columns of a geometric-constraint list, shared by the dockable panel and the footprint dialog.
@ CONSTRAINT_COL_TYPE
@ CONSTRAINT_COL_COUNT
@ CONSTRAINT_COL_ITEM_1
@ CONSTRAINT_COL_ITEM_2
@ CONSTRAINT_COL_STATE
void PopulateConstraintList(wxListCtrl *aList, BOARD *aBoard, UNITS_PROVIDER *aUnits, const BOARD_CONSTRAINT_DIAGNOSTICS &aDiag, const std::function< void(long, PCB_CONSTRAINT *)> &aOnRow)
Fill aList with one row per constraint on aBoard (board-owned then footprint-owned),...
void AddConstraintListColumns(wxListCtrl *aList)
Add the four constraint columns (Item 1 / Item 2 / Constraint / State) to a report-mode list.
Board-wide diagnostics for the constraint overlay and info bar.