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

#include <footprint_wizard.h>

Inheritance diagram for WIZARD_INT_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::WizardIntParameter &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::optional< int > min
 
std::optional< int > max
 
std::optional< int > multiple
 
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 71 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_INT_PARAMETER::FromProto ( const kiapi::common::types::WizardIntParameter & aProto)

Definition at line 339 of file footprint_wizard.cpp.

References default_value, max, min, multiple, and value.

Referenced by WIZARD_PARAMETER::Create().

◆ Pack()

kiapi::common::types::WizardParameter WIZARD_INT_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 268 of file footprint_wizard.cpp.

References default_value, max, min, multiple, WIZARD_PARAMETER::Pack(), and value.

◆ ParameterCategoryName()

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

Definition at line 197 of file footprint_wizard.cpp.

References _.

Referenced by FOOTPRINT_WIZARD_PROPERTIES_PANEL::RebuildParameters().

◆ Reset()

void WIZARD_INT_PARAMETER::Reset ( )
inlineoverridevirtual

Implements WIZARD_PARAMETER.

Definition at line 74 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().

◆ default_value

int WIZARD_INT_PARAMETER::default_value = 0

Definition at line 78 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().

◆ max

std::optional<int> WIZARD_INT_PARAMETER::max

Definition at line 80 of file footprint_wizard.h.

Referenced by FromProto(), and Pack().

◆ min

std::optional<int> WIZARD_INT_PARAMETER::min

Definition at line 79 of file footprint_wizard.h.

Referenced by FromProto(), and Pack().

◆ multiple

std::optional<int> WIZARD_INT_PARAMETER::multiple

Definition at line 81 of file footprint_wizard.h.

Referenced by FromProto(), 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

Definition at line 64 of file footprint_wizard.h.

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

◆ value

int WIZARD_INT_PARAMETER::value = 0

Definition at line 77 of file footprint_wizard.h.

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


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