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 The 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#pragma once
21
22#include <bitmaps.h>
24
25#include <wx/dataview.h>
26#include <wx/gbsizer.h>
27#include <wx/panel.h>
28#include <wx/settings.h>
29#include <wx/srchctrl.h>
30#include <wx/string.h>
31
32class EDA_BASE_FRAME;
33
39class NET_INSPECTOR_PANEL : public wxPanel
40{
41public:
42 NET_INSPECTOR_PANEL( wxWindow* parent, EDA_BASE_FRAME* aFrame, wxWindowID id = wxID_ANY,
43 const wxPoint& pos = wxDefaultPosition,
44 const wxSize& size = wxSize( -1, -1 ), long style = wxTAB_TRAVERSAL,
45 const wxString& name = wxEmptyString );
46
48
55 virtual void OnParentSetupChanged() {};
56
60 virtual void SaveSettings() {};
61
65 virtual void OnShowPanel() {}
66
70 virtual void OnBoardChanged() {}
71
72protected:
73 // User-driven UI events (override in derrived classes as required)
74 virtual void OnSetFocus( wxFocusEvent& event ) { event.Skip(); }
75 virtual void OnSize( wxSizeEvent& event ) { event.Skip(); }
76 virtual void OnSearchTextChanged( wxCommandEvent& event ) { event.Skip(); }
77 virtual void OnConfigButton( wxCommandEvent& event ) { event.Skip(); }
78 virtual void OnLanguageChanged( wxCommandEvent& event );
79
83 virtual void OnLanguageChangedImpl() {};
84
85protected:
87
88 wxGridBagSizer* m_sizerOuter;
89 wxSearchCtrl* m_searchCtrl;
91 wxDataViewCtrl* m_netsList;
92};
const char * name
A bitmap button widget that behaves like an AUI toolbar item's button when it is drawn.
The base frame for deriving all KiCad main window classes.
virtual void OnSearchTextChanged(wxCommandEvent &event)
NET_INSPECTOR_PANEL(wxWindow *parent, EDA_BASE_FRAME *aFrame, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1, -1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
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)