2020-02-04 08:40:25 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KICAD, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2020 CERN
|
|
|
|
* @author Maciej Suminski <maciej.suminski@cern.ch>
|
|
|
|
*
|
|
|
|
* 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 3
|
|
|
|
* 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PCB_PROPERTIES_PANEL_H
|
|
|
|
#define PCB_PROPERTIES_PANEL_H
|
|
|
|
|
|
|
|
#include <widgets/properties_panel.h>
|
|
|
|
|
|
|
|
class SELECTION;
|
|
|
|
class BOARD;
|
|
|
|
class PCB_EDIT_FRAME;
|
|
|
|
class PROPERTY_MANAGER;
|
2022-11-03 02:50:49 +00:00
|
|
|
class wxPGEditor;
|
2020-02-04 08:40:25 +00:00
|
|
|
|
|
|
|
class PCB_PROPERTIES_PANEL : public PROPERTIES_PANEL
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PCB_PROPERTIES_PANEL( wxWindow* aParent, PCB_EDIT_FRAME* aFrame );
|
|
|
|
|
|
|
|
virtual ~PCB_PROPERTIES_PANEL()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-03-30 15:27:17 +00:00
|
|
|
void UpdateData() override;
|
2020-02-04 08:40:25 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
wxPGProperty* createPGProperty( const PROPERTY_BASE* aProperty ) const override;
|
|
|
|
|
|
|
|
void valueChanged( wxPropertyGridEvent& aEvent ) override;
|
|
|
|
|
|
|
|
///> Regenerates caches storing layer and net names
|
|
|
|
void updateLists( const BOARD* aBoard );
|
|
|
|
|
|
|
|
PCB_EDIT_FRAME* m_frame;
|
|
|
|
PROPERTY_MANAGER& m_propMgr;
|
2022-11-03 02:50:49 +00:00
|
|
|
wxPGEditor* m_editor;
|
2020-02-04 08:40:25 +00:00
|
|
|
|
|
|
|
wxPGChoices m_nets;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PCB_PROPERTIES_PANEL_H */
|