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 47 of file kicad_manager_control.cpp.

Constructor & Destructor Documentation

◆ DIR_CHECKBOX()

DIR_CHECKBOX::DIR_CHECKBOX ( wxWindow *  aParent)
inline

Definition at line 50 of file kicad_manager_control.cpp.

51  : wxPanel( aParent )
52  {
53  m_cbCreateDir = new wxCheckBox( this, wxID_ANY,
54  _( "Create a new folder for the project" ) );
55  m_cbCreateDir->SetValue( true );
56 
57  wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL );
58  sizer->Add( m_cbCreateDir, 0, wxALL, 8 );
59 
60  SetSizerAndFit( sizer );
61  }
#define _(s)
wxCheckBox * m_cbCreateDir

References _, and m_cbCreateDir.

Referenced by Create().

Member Function Documentation

◆ Create()

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

Definition at line 68 of file kicad_manager_control.cpp.

69  {
70  return new DIR_CHECKBOX( aParent );
71  }
DIR_CHECKBOX(wxWindow *aParent)

References DIR_CHECKBOX().

Referenced by KICAD_MANAGER_CONTROL::NewFromTemplate(), and KICAD_MANAGER_CONTROL::NewProject().

◆ CreateNewDir()

bool DIR_CHECKBOX::CreateNewDir ( ) const
inline

Definition at line 63 of file kicad_manager_control.cpp.

64  {
65  return m_cbCreateDir->GetValue();
66  }
wxCheckBox * m_cbCreateDir

References m_cbCreateDir.

Member Data Documentation

◆ m_cbCreateDir

wxCheckBox* DIR_CHECKBOX::m_cbCreateDir
protected

Definition at line 74 of file kicad_manager_control.cpp.

Referenced by CreateNewDir(), and DIR_CHECKBOX().


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