KiCad PCB EDA Suite
Loading...
Searching...
No Matches
WIZARD_ENUM_PARAMETER Class Reference

#include <footprint_wizard.h>

Inheritance diagram for WIZARD_ENUM_PARAMETER:
WIZARD_PARAMETER

Public Member Functions

void Reset () override
 
kiapi::common::types::WizardParameter Pack (bool aCompact=true) override
 Packs the current state of this parameter back into a protobuf message.
 
void FromProto (const kiapi::common::types::WizardEnumParameter &aProto)
 

Static Public Member Functions

static std::unique_ptr< WIZARD_PARAMETERCreate (const kiapi::common::types::WizardParameter &aProto)
 
static wxString ParameterCategoryName (kiapi::common::types::WizardParameterCategory aCategory)
 

Public Attributes

int value = 0
 
int default_value = 0
 
std::vector< std::pair< wxString, wxString > > choices
 pair<identifier, label>
 
wxString identifier
 
wxString name
 
wxString description
 
kiapi::common::types::WizardParameterCategory category = kiapi::common::types::WPC_UNKNOWN
 
kiapi::common::types::WizardParameterDataType type = kiapi::common::types::WPDT_UNKNOWN
 

Detailed Description

Definition at line 125 of file footprint_wizard.h.

Member Function Documentation

◆ Create()

std::unique_ptr< WIZARD_PARAMETER > WIZARD_PARAMETER::Create ( const kiapi::common::types::WizardParameter & aProto)
staticinherited

◆ FromProto()

void WIZARD_ENUM_PARAMETER::FromProto ( const kiapi::common::types::WizardEnumParameter & aProto)

Definition at line 418 of file footprint_wizard.cpp.

References choices, default_value, and value.

Referenced by WIZARD_PARAMETER::Create().

◆ Pack()

kiapi::common::types::WizardParameter WIZARD_ENUM_PARAMETER::Pack ( bool aCompact = true)
overridevirtual

Packs the current state of this parameter back into a protobuf message.

Parameters
aCompactwill only include the identifier and value if true
Returns
a protobuf message describing this parameter

Reimplemented from WIZARD_PARAMETER.

Definition at line 338 of file footprint_wizard.cpp.

References choices, default_value, WIZARD_PARAMETER::Pack(), and value.

◆ ParameterCategoryName()

wxString WIZARD_PARAMETER::ParameterCategoryName ( kiapi::common::types::WizardParameterCategory aCategory)
staticinherited

Definition at line 188 of file footprint_wizard.cpp.

References _.

Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL::RebuildParameters().

◆ Reset()

void WIZARD_ENUM_PARAMETER::Reset ( )
inlineoverridevirtual

Implements WIZARD_PARAMETER.

Definition at line 128 of file footprint_wizard.h.

References default_value, and value.

Member Data Documentation

◆ category

kiapi::common::types::WizardParameterCategory WIZARD_PARAMETER::category = kiapi::common::types::WPC_UNKNOWN
inherited

Definition at line 63 of file footprint_wizard.h.

Referenced by Pack().

◆ choices

std::vector<std::pair<wxString, wxString> > WIZARD_ENUM_PARAMETER::choices

pair<identifier, label>

Definition at line 135 of file footprint_wizard.h.

Referenced by FromProto(), and Pack().

◆ default_value

int WIZARD_ENUM_PARAMETER::default_value = 0

Definition at line 132 of file footprint_wizard.h.

Referenced by FromProto(), Pack(), and Reset().

◆ description

wxString WIZARD_PARAMETER::description
inherited

Definition at line 62 of file footprint_wizard.h.

Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL::createPGProperty(), and Pack().

◆ identifier

wxString WIZARD_PARAMETER::identifier
inherited

Definition at line 60 of file footprint_wizard.h.

Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL::createPGProperty(), and Pack().

◆ name

wxString WIZARD_PARAMETER::name
inherited

Definition at line 61 of file footprint_wizard.h.

Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL::createPGProperty(), and Pack().

◆ type

kiapi::common::types::WizardParameterDataType WIZARD_PARAMETER::type = kiapi::common::types::WPDT_UNKNOWN
inherited

◆ value

int WIZARD_ENUM_PARAMETER::value = 0

Definition at line 131 of file footprint_wizard.h.

Referenced by FromProto(), Pack(), and Reset().


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