Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::FontPropertyEditor Class Reference

#include <vcf/ApplicationKit/DefaultPropertyEditors.h>

Inheritance diagram for VCF::FontPropertyEditor:

VCF::AbstractPropertyEditor VCF::ObjectWithCallbacks VCF::PropertyEditor VCF::Object List of all members.

Public Member Functions

 FontPropertyEditor ()
virtual ~FontPropertyEditor ()
virtual void paintValue (VariantData *value, GraphicsContext *context, const Rect &bounds, const DrawUIState &state)
 Paints a representation of the editor.
virtual void edit ()
 This method is used to edit the property value.
virtual std::vector< PropertyEditor * > getSubProperties ()
 Returns a array of proeprty editors from the current value of this editor.

Constructor & Destructor Documentation

VCF::FontPropertyEditor::FontPropertyEditor  ) 
 

virtual VCF::FontPropertyEditor::~FontPropertyEditor  )  [virtual]
 


Member Function Documentation

virtual void VCF::FontPropertyEditor::edit  )  [virtual]
 

This method is used to edit the property value.

This is an optional method to implement, and only needs to be done if createEditingControl() returns a non null value. If createEditingControl() is NULL then it's assumed that the actual editing process will be completely handled by the host of the property editor.

If the implementor does edit this method, then it's up to the implemementor to properly transfer the contents of the propert value to the control.

Reimplemented from VCF::AbstractPropertyEditor.

virtual std::vector<PropertyEditor*> VCF::FontPropertyEditor::getSubProperties  )  [virtual]
 

Returns a array of proeprty editors from the current value of this editor.

The requirement, of course, is that the variant data that is returned by getValue() is a pdObject. This is not meaningful to call unless PropertEditor::paHasSubProperties is set.

See also:
PropertEditor::paHasSubProperties

Reimplemented from VCF::AbstractPropertyEditor.

virtual void VCF::FontPropertyEditor::paintValue VariantData value,
GraphicsContext context,
const Rect bounds,
const DrawUIState state
[virtual]
 

Paints a representation of the editor.

This will only get called if needsCustomPaint() method returns true. This is for custom painting of the property editor when it is not being edited.

Reimplemented from VCF::AbstractPropertyEditor.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information