KiCad PCB EDA Suite
Loading...
Searching...
No Matches
design_inspector.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 (C) 2019 jp.charras at wanadoo.fr
5 * Copyright (C) 2019, 2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21
26#ifndef _DESIGN_INSPECTOR_H
27#define _DESIGN_INSPECTOR_H
28
29#include <vector>
30
32class PL_EDITOR_FRAME;
33
38{
39public:
42
43 void ReCreateDesignList();
44
48 DS_DATA_ITEM* GetDrawingSheetDataItem( int aRow ) const;
49
50 // Select the tree item corresponding to the DS_DATA_ITEM aItem
51 void SelectRow( DS_DATA_ITEM* aItem );
52
53private:
54 friend class PL_EDITOR_FRAME;
55
56 wxGrid* GetGridList() const { return m_gridListItems; }
57 void onCellClicked( wxGridEvent& event ) override;
58
59 // The list of DS_DATA_ITEM found in drawing sheet
60 std::vector<DS_DATA_ITEM*> m_itemsList;
62
63};
64
65#endif /* _DESIGN_INSPECTOR_H */
Class DIALOG_INSPECTOR_BASE.
DESIGN_INSPECTOR is the left window showing the list of items.
void onCellClicked(wxGridEvent &event) override
DS_DATA_ITEM * GetDrawingSheetDataItem(int aRow) const
wxGrid * GetGridList() const
void SelectRow(DS_DATA_ITEM *aItem)
PL_EDITOR_FRAME * m_editorFrame
std::vector< DS_DATA_ITEM * > m_itemsList
Drawing sheet structure type definitions.
Definition: ds_data_item.h:96
The main window used in the drawing sheet editor.