KiCad PCB EDA Suite
DIR_CHECKBOX Class Reference

Helper widget to select whether a new directory should be created for a project

More...

Inheritance diagram for DIR_CHECKBOX:

Public Member Functions

 DIR_CHECKBOX (wxWindow *aParent)
 
bool CreateNewDir () const
 

Static Public Member Functions

static wxWindow * Create (wxWindow *aParent)
 

Protected Attributes

wxCheckBox * m_cbCreateDir
 

Detailed Description

Helper widget to select whether a new directory should be created for a project

Definition at line 188 of file prjconfig.cpp.

Constructor & Destructor Documentation

DIR_CHECKBOX::DIR_CHECKBOX ( wxWindow *  aParent)
inline

Definition at line 191 of file prjconfig.cpp.

192  : wxPanel( aParent )
193  {
194  m_cbCreateDir = new wxCheckBox( this, wxID_ANY,
195  _( "Create a new directory for the project" ) );
196  m_cbCreateDir->SetValue( true );
197 
198  wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
199  sizer->Add( m_cbCreateDir, 0, wxALL, 8 );
200 
201  SetSizerAndFit( sizer );
202  }
wxCheckBox * m_cbCreateDir
Definition: prjconfig.cpp:215

Member Function Documentation

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

Definition at line 209 of file prjconfig.cpp.

Referenced by KICAD_MANAGER_FRAME::OnNewProject().

210  {
211  return new DIR_CHECKBOX( aParent );
212  }
DIR_CHECKBOX(wxWindow *aParent)
Definition: prjconfig.cpp:191
bool DIR_CHECKBOX::CreateNewDir ( ) const
inline

Definition at line 204 of file prjconfig.cpp.

205  {
206  return m_cbCreateDir->GetValue();
207  }
wxCheckBox * m_cbCreateDir
Definition: prjconfig.cpp:215

Member Data Documentation

wxCheckBox* DIR_CHECKBOX::m_cbCreateDir
protected

Definition at line 215 of file prjconfig.cpp.


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