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

#include <pg_editors.h>

Inheritance diagram for PG_COLOR_EDITOR:

Public Member Functions

 PG_COLOR_EDITOR ()
 
virtual ~PG_COLOR_EDITOR ()
 
wxString GetName () const override
 
wxPGWindowList CreateControls (wxPropertyGrid *aGrid, wxPGProperty *aProperty, const wxPoint &aPos, const wxSize &aSize) const override
 
void UpdateControl (wxPGProperty *aProperty, wxWindow *aCtrl) const override
 
bool OnEvent (wxPropertyGrid *aGrid, wxPGProperty *aProperty, wxWindow *aWindow, wxEvent &aEvent) const override
 

Static Public Attributes

static const wxString EDITOR_NAME = wxS( "KiCadColorEditor" )
 

Private Member Functions

KIGFX::COLOR4D colorFromVariant (const wxVariant &aVariant) const
 
KIGFX::COLOR4D colorFromProperty (wxPGProperty *aProperty) const
 

Detailed Description

Definition at line 88 of file pg_editors.h.

Constructor & Destructor Documentation

◆ PG_COLOR_EDITOR()

PG_COLOR_EDITOR::PG_COLOR_EDITOR ( )
inline

Definition at line 93 of file pg_editors.h.

◆ ~PG_COLOR_EDITOR()

virtual PG_COLOR_EDITOR::~PG_COLOR_EDITOR ( )
inlinevirtual

Definition at line 95 of file pg_editors.h.

Member Function Documentation

◆ colorFromProperty()

KIGFX::COLOR4D PG_COLOR_EDITOR::colorFromProperty ( wxPGProperty *  aProperty) const
private

Definition at line 362 of file pg_editors.cpp.

References colorFromVariant().

Referenced by CreateControls(), and UpdateControl().

◆ colorFromVariant()

KIGFX::COLOR4D PG_COLOR_EDITOR::colorFromVariant ( const wxVariant &  aVariant) const
private

◆ CreateControls()

wxPGWindowList PG_COLOR_EDITOR::CreateControls ( wxPropertyGrid *  aGrid,
wxPGProperty *  aProperty,
const wxPoint &  aPos,
const wxSize &  aSize 
) const
override

Definition at line 297 of file pg_editors.cpp.

References color, colorFromProperty(), colorFromVariant(), editor, and SWATCH_LARGE.

◆ GetName()

wxString PG_COLOR_EDITOR::GetName ( ) const
inlineoverride

Definition at line 97 of file pg_editors.h.

References EDITOR_NAME.

◆ OnEvent()

bool PG_COLOR_EDITOR::OnEvent ( wxPropertyGrid *  aGrid,
wxPGProperty *  aProperty,
wxWindow *  aWindow,
wxEvent &  aEvent 
) const
override

Definition at line 290 of file pg_editors.cpp.

◆ UpdateControl()

void PG_COLOR_EDITOR::UpdateControl ( wxPGProperty *  aProperty,
wxWindow *  aCtrl 
) const
override

Definition at line 340 of file pg_editors.cpp.

References colorFromProperty().

Member Data Documentation

◆ EDITOR_NAME

const wxString PG_COLOR_EDITOR::EDITOR_NAME = wxS( "KiCadColorEditor" )
static

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