KiCad PCB EDA Suite
CREATE_PROJECT_CHECKBOX Class Reference

< Helper widget to select whether a new project should be created for a file when saving More...

Inheritance diagram for CREATE_PROJECT_CHECKBOX:

Public Member Functions

 CREATE_PROJECT_CHECKBOX (wxWindow *aParent)
 
bool GetValue () const
 
 CREATE_PROJECT_CHECKBOX (wxWindow *aParent)
 
bool GetValue () const
 

Static Public Member Functions

static wxWindow * Create (wxWindow *aParent)
 
static wxWindow * Create (wxWindow *aParent)
 

Protected Attributes

wxCheckBox * m_cbCreateProject
 

Detailed Description

< Helper widget to select whether a new project should be created for a file when saving

Definition at line 69 of file eeschema/files-io.cpp.

Constructor & Destructor Documentation

◆ CREATE_PROJECT_CHECKBOX() [1/2]

CREATE_PROJECT_CHECKBOX::CREATE_PROJECT_CHECKBOX ( wxWindow *  aParent)
inline

Definition at line 72 of file eeschema/files-io.cpp.

73  : wxPanel( aParent )
74  {
75  m_cbCreateProject = new wxCheckBox( this, wxID_ANY,
76  _( "Create a new project for this schematic" ) );
77  m_cbCreateProject->SetValue( true );
78  m_cbCreateProject->SetToolTip( _( "Creating a project will enable features such as "
79  "text variables, net classes, and ERC exclusions" ) );
80 
81  wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
82  sizer->Add( m_cbCreateProject, 0, wxALL, 8 );
83 
84  SetSizerAndFit( sizer );
85  }
#define _(s)

References _, and m_cbCreateProject.

Referenced by Create().

◆ CREATE_PROJECT_CHECKBOX() [2/2]

CREATE_PROJECT_CHECKBOX::CREATE_PROJECT_CHECKBOX ( wxWindow *  aParent)
inline

Definition at line 210 of file pcbnew/files.cpp.

211  : wxPanel( aParent )
212  {
213  m_cbCreateProject = new wxCheckBox( this, wxID_ANY,
214  _( "Create a new project for this board" ) );
215  m_cbCreateProject->SetValue( true );
216  m_cbCreateProject->SetToolTip( _( "Creating a project will enable features such as "
217  "design rules, net classes, and layer presets" ) );
218 
219  wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
220  sizer->Add( m_cbCreateProject, 0, wxALL, 8 );
221 
222  SetSizerAndFit( sizer );
223  }
#define _(s)

References _, and m_cbCreateProject.

Member Function Documentation

◆ Create() [1/2]

static wxWindow* CREATE_PROJECT_CHECKBOX::Create ( wxWindow *  aParent)
inlinestatic

Definition at line 92 of file eeschema/files-io.cpp.

93  {
94  return new CREATE_PROJECT_CHECKBOX( aParent );
95  }
CREATE_PROJECT_CHECKBOX(wxWindow *aParent)

References CREATE_PROJECT_CHECKBOX().

Referenced by AskSaveBoardFileName(), and SCH_EDIT_FRAME::SaveProject().

◆ Create() [2/2]

static wxWindow* CREATE_PROJECT_CHECKBOX::Create ( wxWindow *  aParent)
inlinestatic

Definition at line 230 of file pcbnew/files.cpp.

231  {
232  return new CREATE_PROJECT_CHECKBOX( aParent );
233  }
CREATE_PROJECT_CHECKBOX(wxWindow *aParent)

References CREATE_PROJECT_CHECKBOX().

◆ GetValue() [1/2]

bool CREATE_PROJECT_CHECKBOX::GetValue ( ) const
inline

Definition at line 87 of file eeschema/files-io.cpp.

88  {
89  return m_cbCreateProject->GetValue();
90  }

References m_cbCreateProject.

◆ GetValue() [2/2]

bool CREATE_PROJECT_CHECKBOX::GetValue ( ) const
inline

Definition at line 225 of file pcbnew/files.cpp.

226  {
227  return m_cbCreateProject->GetValue();
228  }

References m_cbCreateProject.

Member Data Documentation

◆ m_cbCreateProject

wxCheckBox * CREATE_PROJECT_CHECKBOX::m_cbCreateProject
protected

Definition at line 98 of file eeschema/files-io.cpp.

Referenced by CREATE_PROJECT_CHECKBOX(), and GetValue().


The documentation for this class was generated from the following files: