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

A wxEnumProperty that displays a color next to the enum value. More...

#include <pg_properties.h>

Inheritance diagram for PGPROPERTY_ANGLE:

Public Member Functions

 PGPROPERTY_ANGLE ()
 
virtual ~PGPROPERTY_ANGLE ()=default
 
bool StringToValue (wxVariant &aVariant, const wxString &aText, int aArgFlags=0) const override
 
wxString ValueToString (wxVariant &aVariant, int aArgFlags=0) const override
 
void SetScale (double aScale)
 
wxValidator * DoGetValidator () const override
 Do not perform PG validation; the UX is not what we want.
 
bool ValidateValue (wxVariant &, wxPGValidationInfo &) const override
 

Protected Attributes

double m_scale
 < Scale factor to convert between raw and displayed value
 

Detailed Description

A wxEnumProperty that displays a color next to the enum value.

Definition at line 170 of file pg_properties.h.

Constructor & Destructor Documentation

◆ PGPROPERTY_ANGLE()

PGPROPERTY_ANGLE::PGPROPERTY_ANGLE ( )
inline

Definition at line 173 of file pg_properties.h.

◆ ~PGPROPERTY_ANGLE()

virtual PGPROPERTY_ANGLE::~PGPROPERTY_ANGLE ( )
virtualdefault

Member Function Documentation

◆ DoGetValidator()

wxValidator * PGPROPERTY_ANGLE::DoGetValidator ( ) const
override

Do not perform PG validation; the UX is not what we want.

Definition at line 576 of file pg_properties.cpp.

◆ SetScale()

void PGPROPERTY_ANGLE::SetScale ( double  aScale)
inline

Definition at line 193 of file pg_properties.h.

References m_scale.

Referenced by PGPropertyFactory().

◆ StringToValue()

bool PGPROPERTY_ANGLE::StringToValue ( wxVariant &  aVariant,
const wxString &  aText,
int  aArgFlags = 0 
) const
override

Definition at line 527 of file pg_properties.cpp.

◆ ValidateValue()

bool PGPROPERTY_ANGLE::ValidateValue ( wxVariant &  ,
wxPGValidationInfo &   
) const
inlineoverride

Definition at line 201 of file pg_properties.h.

◆ ValueToString()

wxString PGPROPERTY_ANGLE::ValueToString ( wxVariant &  aVariant,
int  aArgFlags = 0 
) const
override

Definition at line 555 of file pg_properties.cpp.

Member Data Documentation

◆ m_scale

double PGPROPERTY_ANGLE::m_scale
protected

< Scale factor to convert between raw and displayed value

Definition at line 205 of file pg_properties.h.

Referenced by SetScale().


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