Python Reference Guide
FBEditProperty Class Reference

Property editor widget. More...

Inheritance diagram for FBEditProperty:

Public Member Functions

 FBEditProperty ()
 Constructor. More...
 
- Public Member Functions inherited from FBVisualComponent
 FBVisualComponent ()
 Constructor. More...
 
bool AddChild (FBVisualComponent pChild, int pId=0)
 Add a child component. More...
 
FBVisualComponent GetChild (int pId=0)
 Get a child component. More...
 
QWidget GetQWidgetAddress ()
 Get internal QWidget. More...
 
bool IsView ()
 Is component a view? More...
 
 Refresh (bool pNow=False)
 Refresh component. More...
 
 ViewExpose ()
 Exposed view callback function. More...
 
 ViewInput (int pMouseX, int pMouseY, FBInputType pAction, int pButtonKey, int pModifier)
 Input callback function. More...
 

Public Attributes

float LargeInc
 Read Write Property: Indicate the large increment applied when click-draging on the property value (usually left-click-dragging)
More...
 
float Precision
 Read Write Property: Used to specify the width and precision of the value shown. A value of 7.2 indicates to show at minimum 7 numbers, with 2 decimals.
More...
 
FBReference Property
 Read Write Property: Property to edit. Set to NULL to disable.
More...
 
float SliderMax
 Read Write Property: Should the property be editable using a slider, set the maximum value atainable with the slider.
More...
 
float SliderMin
 Read Write Property: Should the property be editable using a slider, set the minimum value atainable with the slider.
More...
 
float SmallInc
 Read Write Property: Indicate the small increment applied when click-draging on the property value (usually right-click-dragging)
More...
 
- Public Attributes inherited from FBVisualComponent
str RegionName
 Read Write Property: Region name. More...
 
int RegionOffsetX
 Read Write Property: Region X offset. More...
 
int RegionOffsetY
 Read Write Property: Region Y offset. More...
 
int RegionOffsetWidth
 Read Write Property: Region width offset. More...
 
int RegionOffsetHeight
 Read Write Property: Region height offset. More...
 
float RegionRatioX
 Read Write Property: Ratio for X attachment. More...
 
float RegionRatioY
 Read Write Property: Ratio for Y attachment. More...
 
float RegionRatioWidth
 Read Write Property: Ratio for Width attachment. More...
 
float RegionRatioHeight
 Read Write Property: Ratio for Height attachment.
More...
 
FBAttachType RegionAttachTypeX
 Read Write Property: X Attachment type. More...
 
FBAttachType RegionAttachTypeY
 Read Write Property: Y Attachment type. More...
 
FBAttachType RegionAttachTypeWidth
 Read Write Property: Width Attachment type. More...
 
FBAttachType RegionAttachTypeHeight
 Read Write Property: Height Attachment type. More...
 
FBVisualComponent RegionAttachToX
 Read Write Property X Attachment source. More...
 
FBVisualComponent RegionAttachToY
 Read Write Property: Y Attachment source. More...
 
FBVisualComponent RegionAttachToWidth
 Read Write Property: Width Attachment source. More...
 
FBVisualComponent RegionAttachToHeight
 Read Write Property: Height Attachment source.
More...
 
int RegionPosMaxX
 Read Write Property: Region X position Max More...
 
int RegionPosMinX
 Read Write Property: Region X position Min More...
 
int RegionPosMaxY
 Read Write Property: Region Y position Max More...
 
int RegionPosMinY
 Read Write Property: Region Y position Min More...
 
str BorderCaption
 Read Write Property: Caption to display in border. More...
 
bool BorderShowCaption
 Read Write Property: Show caption? More...
 
FBBorderStyle BorderStyle
 Read Write Property: Style of border. More...
 
bool BorderInSet
 Read Write Property: Is border inset? More...
 
int BorderWidth
 Read Write Property: Width of border. More...
 
int BorderSpacing
 Read Write Property: Spacing of border. More...
 
float BorderMaxAngle
 Read Write Property: Max angle for rounding. More...
 
int BorderCornerRadius
 Read Write Property: Corner radius (rounded).
More...
 
str Caption
 Property: Widget caption.
More...
 
bool Enabled
 Read Write Property: Is visual enabled?
More...
 
int Height
 Read Write Property: Height.
More...
 
str Hint
 Read Write Property: Hint to show.
More...
 
int Left
 Read Write Property: Left coordinate.
More...
 
bool ReadOnly
 Read Write Property: Is visual component read only?
More...
 
int Top
 Read Write Property: Top coordinate.
More...
 
bool Visible
 Read Write Property: Is visual component visible?
More...
 
int Width
 Read Write Property: Width.
More...
 

Detailed Description

Property editor widget.


This widget allows users to edit the values of a property without having to manually customize the GUI depending on the type of the property being edited.SDK objects can have three types of properties:An internal property which maps to an actual property that can be seen in the property editor tool of the application. This type of property is usually obtained from the PropertyList data member.SDK-only property which does not maps onto an existing property of the encapsulated object. The existence of these types of property is often to make the object interface simpler. All the FBPropertyList-types will fall into this category, except for FBPropertyListObjects.SDK property which maps onto an existing object property, but does so indirectly using function calls instead of direct property access. This is usually for historical reason. In this case the property will usually be present twice in the PropertyList: once as an SDK-Only property and another time as an internal property.Another limitation of this widget is that it can only display non hidden internal properties. To get around this issue, the property flag can be changed to unhide it. Doing so will also cause the property to be visible via the property tool.

// In a tool header file...
FBEditProperty mEditProperty;
// In a tool source file...
FBModel* lModel = FBFindModelByLabelName( "ModelName" );
if( lModel )
{
FBProperty* lProperty = lModel->PropertyList.Find( "RotationOrder" );
if( lProperty &&
lProperty->IsInternal() &&
!lProperty->GetPropertyFlag( kFBPropertyFlagHideProperty ))
{
mEditProperty.Property = lProperty;
}
}

See sample: PropertyDrop.py.

Constructor & Destructor Documentation

◆ FBEditProperty()

Constructor.

Member Data Documentation

◆ LargeInc

float LargeInc

Read Write Property: Indicate the large increment applied when click-draging on the property value (usually left-click-dragging)

◆ Precision

float Precision

Read Write Property: Used to specify the width and precision of the value shown. A value of 7.2 indicates to show at minimum 7 numbers, with 2 decimals.

◆ Property

FBReference Property

Read Write Property: Property to edit. Set to NULL to disable.

◆ SliderMax

float SliderMax

Read Write Property: Should the property be editable using a slider, set the maximum value atainable with the slider.

◆ SliderMin

float SliderMin

Read Write Property: Should the property be editable using a slider, set the minimum value atainable with the slider.

◆ SmallInc

float SmallInc

Read Write Property: Indicate the small increment applied when click-draging on the property value (usually right-click-dragging)

FBEditProperty::Property
FBReference Property
Read Write Property: Property to edit. Set to NULL to disable.
Definition: pyfbsdk_generated.h:6023
pyfbsdk::FBFindModelByLabelName
FBModel FBFindModelByLabelName(str pModelLabelName)
Find a model in the scene by its label name.
FBProperty::IsInternal
bool IsInternal()
FBProperty
b>Property: Action Action property to trigger function.
Definition: pyfbsdk_generated.h:14271
FBComponent::PropertyList
FBManager PropertyList
Read Only Property: Manages all of the properties for the component.
Definition: pyfbsdk_generated.h:4679
FBProperty::GetPropertyFlag
bool GetPropertyFlag(FBFlag pFlag)
GetPropertyFlag.
FBModel
Model class.
Definition: pyfbsdk_generated.h:10899
FBEditProperty
Property editor widget.
Definition: pyfbsdk_generated.h:6013