KiCad PCB EDA Suite
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 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
39{
40 friend class PL_EDITOR_FRAME;
41
42private:
43 wxGrid* GetGridList() const { return m_gridListItems; }
44 void onCellClicked( wxGridEvent& event ) override;
45
46 // The list of DS_DATA_ITEM found in drawing sheet
47 std::vector<DS_DATA_ITEM*> m_itemsList;
49
50public:
53
54 void ReCreateDesignList();
55
59 DS_DATA_ITEM* GetDrawingSheetDataItem( int aRow ) const;
60
61 // Select the tree item corresponding to the DS_DATA_ITEM aItem
62 void SelectRow( DS_DATA_ITEM* aItem );
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)
DIALOG_INSPECTOR(PL_EDITOR_FRAME *aParent)
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.