KiCad PCB EDA Suite
Loading...
Searching...
No Matches
net_selector.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) 2018-2024 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#pragma once
25
27
28
29class BOARD;
30class NETINFO_LIST;
32
33
35{
36public:
37 // Note: this list of arguments is here because it keeps us from having to customize
38 // the constructor calls in wxFormBuilder.
39 NET_SELECTOR( wxWindow *parent, wxWindowID id,
40 const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
41 long style = 0 );
42
43 void SetNetInfo( const NETINFO_LIST* aNetInfoList );
44
45 // Set to wxEmptyString to disallow indeterminate settings
46 void SetIndeterminateString( const wxString& aString );
47
48 void SetBoard( BOARD* aBoard );
49
50 void SetSelectedNetcode( int aNetcode );
51 void SetSelectedNet( const wxString& aNetname );
52 void SetIndeterminate();
53
54 bool IsIndeterminate();
56 wxString GetSelectedNetname();
57
58protected:
59
62};
63
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:290
A combobox that has a filterable popup.
Container for NETINFO_ITEM elements, which are the nets.
Definition: netinfo.h:346
void SetNetInfo(const NETINFO_LIST *aNetInfoList)
wxString m_indeterminateString
Definition: net_selector.h:61
NET_SELECTOR_COMBOPOPUP * m_netSelectorPopup
Definition: net_selector.h:60
bool IsIndeterminate()
void SetBoard(BOARD *aBoard)
int GetSelectedNetcode()
void SetIndeterminateString(const wxString &aString)
void SetSelectedNetcode(int aNetcode)
void SetIndeterminate()
void SetSelectedNet(const wxString &aNetname)
wxString GetSelectedNetname()