KiCad PCB EDA Suite
Loading...
Searching...
No Matches
net_inspector_panel.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) 2024 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef NET_INSPECTOR_PANEL_BASE_H
21#define NET_INSPECTOR_PANEL_BASE_H
22
23#include <bitmaps.h>
25
26#include <wx/dataview.h>
27#include <wx/gbsizer.h>
28#include <wx/panel.h>
29#include <wx/settings.h>
30#include <wx/srchctrl.h>
31#include <wx/string.h>
32
33class EDA_BASE_FRAME;
34
40class NET_INSPECTOR_PANEL : public wxPanel
41{
42public:
43 NET_INSPECTOR_PANEL( wxWindow* parent, EDA_BASE_FRAME* aFrame, wxWindowID id = wxID_ANY,
44 const wxPoint& pos = wxDefaultPosition,
45 const wxSize& size = wxSize( -1, -1 ), long style = wxTAB_TRAVERSAL,
46 const wxString& name = wxEmptyString );
47
49
56 virtual void OnParentSetupChanged(){};
57
61 virtual void SaveSettings(){};
62
66 virtual void OnShowPanel() {}
67
71 virtual void OnBoardChanged() {}
72
73protected:
74 // User-driven UI events (override in derrived classes as required)
75 virtual void OnSetFocus( wxFocusEvent& event ) { event.Skip(); }
76 virtual void OnSize( wxSizeEvent& event ) { event.Skip(); }
77 virtual void OnSearchTextChanged( wxCommandEvent& event ) { event.Skip(); }
78 virtual void OnConfigButton( wxCommandEvent& event ) { event.Skip(); }
79 virtual void OnLanguageChanged( wxCommandEvent& event );
80
84 virtual void OnLanguageChangedImpl(){};
85
86protected:
88
89 wxGridBagSizer* m_sizerOuter;
90 wxSearchCtrl* m_searchCtrl;
92 wxDataViewCtrl* m_netsList;
93};
94
95#endif
const char * name
Definition: DXF_plotter.cpp:57
A bitmap button widget that behaves like an AUI toolbar item's button when it is drawn.
Definition: bitmap_button.h:42
The base frame for deriving all KiCad main window classes.
A base class used to implement docking net inspector panels.
virtual void OnSearchTextChanged(wxCommandEvent &event)
virtual void OnBoardChanged()
Notification from file loader when board changed and connectivity rebuilt.
virtual void OnLanguageChanged(wxCommandEvent &event)
virtual void OnSize(wxSizeEvent &event)
virtual void OnLanguageChangedImpl()
Implementation-specific implementation of language update handling.
virtual void SaveSettings()
Save the net inspector settings - called from EDA_EDIT_FRAME when hiding the panel.
wxDataViewCtrl * m_netsList
virtual void OnShowPanel()
Prepare the panel when (re-)shown in the editor.
wxSearchCtrl * m_searchCtrl
virtual void OnSetFocus(wxFocusEvent &event)
virtual void OnParentSetupChanged()
Rebuild inspector data if project settings updated.
wxGridBagSizer * m_sizerOuter
EDA_BASE_FRAME * m_frame
BITMAP_BUTTON * m_configureBtn
virtual void OnConfigButton(wxCommandEvent &event)