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 ()
 
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. More...
 
bool ValidateValue (wxVariant &, wxPGValidationInfo &) const override
 

Protected Attributes

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

Detailed Description

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

Definition at line 121 of file pg_properties.h.

Constructor & Destructor Documentation

◆ PGPROPERTY_ANGLE()

PGPROPERTY_ANGLE::PGPROPERTY_ANGLE ( )
inline

Definition at line 124 of file pg_properties.h.

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 535 of file pg_properties.cpp.

◆ SetScale()

void PGPROPERTY_ANGLE::SetScale ( double  aScale)
inline

Definition at line 134 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 493 of file pg_properties.cpp.

References m_scale.

◆ ValidateValue()

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

Definition at line 142 of file pg_properties.h.

◆ ValueToString()

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

Definition at line 515 of file pg_properties.cpp.

References m_scale.

Member Data Documentation

◆ m_scale

double PGPROPERTY_ANGLE::m_scale
protected

< Scale factor to convert between raw and displayed value

Definition at line 146 of file pg_properties.h.

Referenced by SetScale(), StringToValue(), and ValueToString().


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