KiCad PCB EDA Suite
dialog_sch_sheet_props.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_sch_sheet_props__
26 #define __dialog_sch_sheet_props__
27 
34 
37 {
38 public:
40  DIALOG_SCH_SHEET_PROPS( wxWindow* parent );
41 
42  void SetFileName( const wxString& aFileName );
43  const wxString GetFileName();
44 
45  void SetSheetName( const wxString& aSheetName )
46  {
47  m_textSheetName->SetValue( aSheetName );
48  }
49  wxString GetSheetName() { return m_textSheetName->GetValue(); }
50 
51  void SetFileNameTextSize( const wxString& aTextSize )
52  {
53  m_textFileNameSize->SetValue( aTextSize );
54  }
55  wxString GetFileNameTextSize() { return m_textFileNameSize->GetValue(); }
56 
57  void SetSheetNameTextSize( const wxString& aTextSize )
58  {
59  m_textSheetNameSize->SetValue( aTextSize );
60  }
61  wxString GetSheetNameTextSize() { return m_textSheetNameSize->GetValue(); }
62 
63  void SetFileNameTextSizeUnits(const wxString& aUnits)
64  {
65  m_staticFileNameSizeUnits->SetLabel( aUnits );
66  }
67 
68  void SetSheetNameTextSizeUnits(const wxString& aUnits)
69  {
70  m_staticSheetNameSizeUnits->SetLabel( aUnits );
71  }
72 
73  void SetSheetTimeStamp(const wxString& aTimeStamp)
74  {
75  m_textCtrlTimeStamp->SetValue( aTimeStamp );
76  }
77 
78 };
79 
80 #endif // __dialog_sch_sheet_props__
void SetSheetNameTextSize(const wxString &aTextSize)
void SetFileNameTextSizeUnits(const wxString &aUnits)
DIALOG_SCH_SHEET_PROPS(wxWindow *parent)
Constructor.
void SetSheetName(const wxString &aSheetName)
void SetSheetTimeStamp(const wxString &aTimeStamp)
void SetSheetNameTextSizeUnits(const wxString &aUnits)
Class DIALOG_SCH_SHEET_PROPS_BASE.
void SetFileName(const wxString &aFileName)
Implementing DIALOG_SCH_SHEET_PROPS_BASE.
void SetFileNameTextSize(const wxString &aTextSize)