|
|
@ -1,3 +1,27 @@ |
|
|
|
/* |
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application. |
|
|
|
* |
|
|
|
* Copyright (C) 2011-2014 Jean-Pierre Charras |
|
|
|
* Copyright (C) 2004-2014 KiCad Developers, see change_log.txt for contributors. |
|
|
|
* |
|
|
|
* 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 2 |
|
|
|
* 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, you may find one here: |
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
|
|
|
* or you may search the http://www.gnu.org website for the version 2 license, |
|
|
|
* or you may write to the Free Software Foundation, Inc., |
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|
|
|
*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* @file UnitSelector.h |
|
|
|
* a wxChoiceBox to select units in Pcb_Calculator |
|
|
@ -14,9 +38,9 @@ |
|
|
|
class UNIT_SELECTOR: public wxChoice |
|
|
|
{ |
|
|
|
public: |
|
|
|
UNIT_SELECTOR(wxWindow *parent, wxWindowID id, |
|
|
|
const wxPoint& pos, const wxSize& size, |
|
|
|
const wxArrayString& choices, long style = 0 ): |
|
|
|
UNIT_SELECTOR( wxWindow *parent, wxWindowID id, |
|
|
|
const wxPoint& pos, const wxSize& size, |
|
|
|
const wxArrayString& choices, long style = 0 ): |
|
|
|
wxChoice( parent, id, pos, size, choices, style ) |
|
|
|
{ |
|
|
|
} |
|
|
@ -37,7 +61,7 @@ public: |
|
|
|
class UNIT_SELECTOR_LEN: public UNIT_SELECTOR |
|
|
|
{ |
|
|
|
public: |
|
|
|
UNIT_SELECTOR_LEN(wxWindow *parent, wxWindowID id, |
|
|
|
UNIT_SELECTOR_LEN( wxWindow *parent, wxWindowID id, |
|
|
|
const wxPoint& pos, const wxSize& size, |
|
|
|
const wxArrayString& choices, long style = 0 ); |
|
|
|
|
|
|
@ -52,7 +76,7 @@ public: |
|
|
|
class UNIT_SELECTOR_FREQUENCY: public UNIT_SELECTOR |
|
|
|
{ |
|
|
|
public: |
|
|
|
UNIT_SELECTOR_FREQUENCY(wxWindow *parent, wxWindowID id, |
|
|
|
UNIT_SELECTOR_FREQUENCY( wxWindow *parent, wxWindowID id, |
|
|
|
const wxPoint& pos, const wxSize& size, |
|
|
|
const wxArrayString& choices, long style = 0 ); |
|
|
|
|
|
|
@ -67,7 +91,7 @@ public: |
|
|
|
class UNIT_SELECTOR_ANGLE: public UNIT_SELECTOR |
|
|
|
{ |
|
|
|
public: |
|
|
|
UNIT_SELECTOR_ANGLE(wxWindow *parent, wxWindowID id, |
|
|
|
UNIT_SELECTOR_ANGLE( wxWindow *parent, wxWindowID id, |
|
|
|
const wxPoint& pos, const wxSize& size, |
|
|
|
const wxArrayString& choices, long style = 0 ); |
|
|
|
|
|
|
@ -82,7 +106,7 @@ public: |
|
|
|
class UNIT_SELECTOR_RESISTOR: public UNIT_SELECTOR |
|
|
|
{ |
|
|
|
public: |
|
|
|
UNIT_SELECTOR_RESISTOR(wxWindow *parent, wxWindowID id, |
|
|
|
UNIT_SELECTOR_RESISTOR( wxWindow *parent, wxWindowID id, |
|
|
|
const wxPoint& pos, const wxSize& size, |
|
|
|
const wxArrayString& choices, long style = 0 ); |
|
|
|
|
|
|
@ -93,5 +117,6 @@ public: |
|
|
|
*/ |
|
|
|
virtual double GetUnitScale(); |
|
|
|
}; |
|
|
|
|
|
|
|
#endif // _UnitSelector_h_ |
|
|
|
|