KiCad PCB EDA Suite
dialog_lib_edit_draw_item.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) 2009 Wayne Stambaugh <stambaughw@verizon.net>
5  * Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, you may find one here:
19  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20  * or you may search the http://www.gnu.org website for the version 2 license,
21  * or you may write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23  */
24 
25 #ifndef __dialog_lib_edit_draw_item__
26 #define __dialog_lib_edit_draw_item__
27 
34 class LIB_DRAW_ITEM;
35 
36 
38 
39 
44 {
45 public:
47  DIALOG_LIB_EDIT_DRAW_ITEM( wxWindow* parent, const wxString& itemName );
48 
49  wxString GetWidth( void );
50  void SetWidth( const wxString& width );
51 
52  bool GetApplyToAllConversions( void );
53  void SetApplyToAllConversions( bool applyToAll );
54  void EnableApplyToAllConversions( bool enable = true );
55 
56  bool GetApplyToAllUnits( void );
57  void SetApplyToAllUnits( bool applyToAll );
58  void EnableApplyToAllUnits( bool enable = true );
59 
60  int GetFillStyle( void );
61  void SetFillStyle( int fillStyle );
62  void EnableFillStyle( bool enable = true );
63 
64  void SetWidthUnits( const wxString& units );
65 };
66 
67 #endif // __dialog_lib_edit_draw_item__
void EnableFillStyle(bool enable=true)
void EnableApplyToAllConversions(bool enable=true)
void SetWidth(const wxString &width)
Class DIALOG_LIB_EDIT_DRAW_ITEM_BASE.
void SetApplyToAllConversions(bool applyToAll)
void EnableApplyToAllUnits(bool enable=true)
void SetWidthUnits(const wxString &units)
Dialog to edit library component graphic items.
DIALOG_LIB_EDIT_DRAW_ITEM(wxWindow *parent, const wxString &itemName)
Constructor.
void SetApplyToAllUnits(bool applyToAll)