wxSizeProperty::wxSizeProperty(const wxString& label, const wxString& name, const Size& value) : wxPGProperty(label, name) { SetValue(WXVARIANT(value)); AddPrivateChild( new wxIntProperty(wxT("Width"), wxPG_LABEL, value.Width) ); AddPrivateChild( new wxIntProperty(wxT("Height"), wxPG_LABEL, value.Height) ); }
wxAABBox3DProperty::wxAABBox3DProperty(const wxString& label, const wxString& name, const AABBox3D& value) : wxPGProperty(label, name) { SetValue(WXVARIANT(value)); AddPrivateChild( new wxVector3Property(wxT("Min"), wxPG_LABEL, value.Min()) ); AddPrivateChild( new wxVector3Property(wxT("Max"), wxPG_LABEL, value.Max()) ); }
wxVector2Property::wxVector2Property(const wxString& label, const wxString& name, const Vector2& value) : wxPGProperty(label, name) { SetValue(WXVARIANT(value)); AddPrivateChild(new wxFloatProperty(wxT("X"), wxPG_LABEL, value.X)); AddPrivateChild(new wxFloatProperty(wxT("Y"), wxPG_LABEL, value.Y)); }
wxRangeProperty::wxRangeProperty(const wxString& label, const wxString& name, const Range& value) : wxPGProperty(label, name) { SetValue(WXVARIANT(value)); AddPrivateChild( new wxFloatProperty(wxT("Min"), wxPG_LABEL, value.Min) ); AddPrivateChild( new wxFloatProperty(wxT("Max"), wxPG_LABEL, value.Max) ); }
WxGUISizeProperty::WxGUISizeProperty( const wxString& label, const CGUISize& value) : wxPGProperty(label,GetUniquePropName()) { SetValue( WXVARIANT(value) ); AddPrivateChild( new wxFloatProperty(wxT("width"), wxT("WIDTH"),value.m_fWidth) ); AddPrivateChild( new wxFloatProperty(wxT("height"), wxT("HEIGHT"),value.m_fHeight) ); }
wxPointProperty::wxPointProperty( const wxString& label, const wxString& name, const wxPoint& value) : wxPGProperty(label,name) { SetValueI(value); AddPrivateChild( new wxIntProperty("X",wxPG_LABEL,value.x) ); AddPrivateChild( new wxIntProperty("Y",wxPG_LABEL,value.y) ); }
wxSizeProperty::wxSizeProperty( const wxString& label, const wxString& name, const wxSize& value) : wxPGProperty(label,name) { SetValueI(value); AddPrivateChild( new wxIntProperty("Width",wxPG_LABEL,value.x) ); AddPrivateChild( new wxIntProperty("Height",wxPG_LABEL,value.y) ); }
nsVector3Property::nsVector3Property(const wxString& label, const wxString& name, const Math::Vector3& value) : wxPGProperty(label, name) { SetValue(WXVARIANT(value)); AddPrivateChild(new wxFloatProperty(wxT("x"), wxPG_LABEL, value._x)); AddPrivateChild(new wxFloatProperty(wxT("y"), wxPG_LABEL, value._y)); AddPrivateChild(new wxFloatProperty(wxT("z"), wxPG_LABEL, value._z)); }
luVector3Property::luVector3Property( const wxString& label, const wxString& name, const gkVector3& value ) : wxPGProperty(label,name) { SetValue( WXVARIANT(value) ); AddPrivateChild( new wxFloatProperty(wxT("X"),wxPG_LABEL,value.x) ); AddPrivateChild( new wxFloatProperty(wxT("Y"),wxPG_LABEL,value.y) ); AddPrivateChild( new wxFloatProperty(wxT("Z"),wxPG_LABEL,value.z) ); }
luEntityObjProperty::luEntityObjProperty(const wxString& label, const wxString& name) : wxPGProperty(label, name) { AddPrivateChild(new wxStringProperty("Mesh")); AddPrivateChild(new wxBoolProperty("Casts")); AddPrivateChild(new wxStringProperty("Source")); AddPrivateChild(new wxStringProperty("StartPose")); }
WxGUIVector2Property::WxGUIVector2Property( const wxString& label,const CGUIVector2& value) : wxPGProperty(label,GetUniquePropName()) { //ChangeFlag(wxPG_PROP_READONLY, true); SetValue( WXVARIANT(value) ); AddPrivateChild( new wxFloatProperty(wxT("x"), wxT("X"),value.x) ); AddPrivateChild( new wxFloatProperty(wxT("y"), wxT("Y"),value.y) ); }
WxGUIRotatorProperty::WxGUIRotatorProperty( const wxString& label,const CGUIRotator& value) : wxPGProperty(label,GetUniquePropName()) { //ChangeFlag(wxPG_PROP_READONLY, true); SetValue( WXVARIANT(value) ); AddPrivateChild( new wxFloatProperty(wxT("Pitch"), wxT("Pitch"),value.Pitch) ); AddPrivateChild( new wxFloatProperty(wxT("Yaw"), wxT("Yaw"),value.Yaw) ); AddPrivateChild( new wxFloatProperty(wxT("Roll"), wxT("Roll"),value.Roll) ); }
WxGUIStringInfoProperty::WxGUIStringInfoProperty( const wxString& label,const CGUIStringRenderInfo& value) : wxPGProperty(label,GetUniquePropName()) { //ChangeFlag(wxPG_PROP_READONLY, true); SetValue( WXVARIANT(value) ); AddPrivateChild( new wxFloatProperty(wxT("scale"),wxT("scale"), value.m_fFontScale) ); AddPrivateChild( new WxGUIFontProperty(wxT("font"),value.m_uFontID) ); AddPrivateChild( new WxGuiColorProperty(wxT("color"), value.m_aColor) ); }
WxGUIRectProperty::WxGUIRectProperty( const wxString& label,const CGUIRect& value) : wxPGProperty(label,GetUniquePropName()) { //ChangeFlag(wxPG_PROP_READONLY, true); SetValue( WXVARIANT(value) ); AddPrivateChild( new wxFloatProperty(wxT("left"), wxT("LEFT"),value.m_fLeft) ); AddPrivateChild( new wxFloatProperty(wxT("top"), wxT("TOP"),value.m_fTop) ); AddPrivateChild( new wxFloatProperty(wxT("right"), wxT("RIGHT"),value.m_fRight) ); AddPrivateChild( new wxFloatProperty(wxT("bottom"), wxT("BOTTOM"),value.m_fBottom) ); }
WxGUIWidgetSizeProperty::WxGUIWidgetSizeProperty( const wxString& label,const CGUIWidgetSize& value) : wxPGProperty(label,GetUniquePropName()) { //ChangeFlag(wxPG_PROP_READONLY, true); SetValue( WXVARIANT(value) ); m_arrEnums = CPropertyConfigMgr::Instance()->GetEnumDefine("EScreenValue"); AddPrivateChild( new wxEnumProperty(wxT("type"), wxT("type"), m_arrEnums) ); AddPrivateChild( new WxGUISizeProperty(wxT("size"), value.m_aValue) ); RefreshChildren(); }
luProjectProperty::luProjectProperty(const wxString& label, const wxString& name) : wxPGProperty(label, name) { AddPrivateChild(new wxStringProperty("ProjectName")); AddPrivateChild(new wxStringProperty("Directroy")); AddPrivateChild(new wxIntProperty("WinSizeX")); AddPrivateChild(new wxIntProperty("WinSizeY")); AddPrivateChild(new wxBoolProperty("FullScreen")); }
luCameraObjProperty::luCameraObjProperty(const wxString& label, const wxString& name) : wxPGProperty(label, name) { AddPrivateChild(new wxFloatProperty("ClipStart")); AddPrivateChild(new wxFloatProperty("ClipEnd")); AddPrivateChild(new wxFloatProperty("Fov")); AddPrivateChild(new wxFloatProperty("OrthoScale")); AddPrivateChild(new wxBoolProperty("Start")); AddPrivateChild(new wxIntProperty("Type")); }
wxFontDataProperty::wxFontDataProperty( const wxString& label, const wxString& name, const wxFontData& value ) : wxFontProperty(label,name,value.GetInitialFont()) { wxFontData fontData(value); // Fix value. fontData.SetChosenFont(value.GetInitialFont()); if ( !fontData.GetColour().IsOk() ) fontData.SetColour(*wxBLACK); // Set initial value - should be done in a simpler way like this // (instead of calling SetValue) in derived (wxObject) properties. m_value_wxFontData << value; // Add extra children. AddPrivateChild( new wxColourProperty(_("Colour"), wxPG_LABEL, fontData.GetColour() ) ); }
luPhysicsProperty::luPhysicsProperty(const wxString& label, const wxString& name) : wxPGProperty(label, name) { AddPrivateChild(new wxBoolProperty("IsContactListener")); AddPrivateChild(new wxBoolProperty("IsDosser")); AddPrivateChild(new wxBoolProperty("IsRigidOrDynamic")); AddPrivateChild(new wxBoolProperty("IsRigidOrStatic")); AddPrivateChild(new wxBoolProperty("IsPhysicsObject")); AddPrivateChild(new wxBoolProperty("IsStatic")); AddPrivateChild(new wxBoolProperty("IsDynamic")); AddPrivateChild(new wxBoolProperty("IsRigid")); AddPrivateChild(new wxBoolProperty("IsSoft")); AddPrivateChild(new wxBoolProperty("IsMeshShape")); AddPrivateChild(new wxIntProperty("Type")); AddPrivateChild(new wxIntProperty("Mode")); AddPrivateChild(new wxIntProperty("Shape")); AddPrivateChild(new wxFloatProperty("Margin")); AddPrivateChild(new wxFloatProperty("Cpt")); AddPrivateChild(new wxFloatProperty("Mass")); AddPrivateChild(new wxFloatProperty("Radius")); AddPrivateChild(new wxFloatProperty("LinearDamp")); AddPrivateChild(new wxFloatProperty("AngularDamp")); AddPrivateChild(new wxFloatProperty("FormFactor")); AddPrivateChild(new wxFloatProperty("MinVel")); AddPrivateChild(new wxFloatProperty("MaxVel")); AddPrivateChild(new wxFloatProperty("Restitution")); AddPrivateChild(new wxFloatProperty("Friction")); }
luObjectProperty::luObjectProperty(const wxString& label, const wxString& name) : wxPGProperty(label, name) { //keep order match to OBJPROP AddPrivateChild(new wxStringProperty("Name", wxPG_LABEL)); AddPrivateChild(new wxStringProperty("Type", wxPG_LABEL)); AddPrivateChild(new luVector3Property("Position")); AddPrivateChild(new luVector3Property("Scale")); AddPrivateChild(new luVector3Property("Front")); AddPrivateChild(new luVector3Property("Up")); AddPrivateChild(new luVector3Property("Dimentions")); AddPrivateChild(new wxIntProperty("Flags")); AddPrivateChild(new wxIntProperty("State")); AddPrivateChild(new wxBoolProperty("HasParent")); AddPrivateChild(new wxIntProperty("NumChilds")); AddPrivateChild(new wxBoolProperty("IsGroupInstance")); AddPrivateChild(new wxBoolProperty("IsInGroup")); AddPrivateChild(new wxBoolProperty("IsStaticGeometry")); AddPrivateChild(new wxBoolProperty("IsImmovable")); AddPrivateChild(new wxBoolProperty("IsActor")); AddPrivateChild(new wxBoolProperty("IsInvisible")); AddPrivateChild(new wxBoolProperty("IsOccluder")); AddPrivateChild(new wxBoolProperty("IsGhost")); AddPrivateChild(new wxBoolProperty("HasCharactor")); AddPrivateChild(new wxBoolProperty("HasLogicBricks")); AddPrivateChild(new wxArrayStringProperty("Animations")); }
luLightObjProperty::luLightObjProperty(const wxString& label, const wxString& name) : wxPGProperty(label, name) { static const wxChar* lightNames[] = {wxT("Point"), wxT("Spot"), wxT("Directional") }; static long lightValues[] = { 0, 1, 2 }; AddPrivateChild(new wxColourProperty("Diffuse")); AddPrivateChild(new wxColourProperty("Specular")); AddPrivateChild(new wxEnumProperty("Type", wxPG_LABEL, lightNames, lightValues)); AddPrivateChild(new luVector2Property("Spot")); AddPrivateChild(new luVector3Property("Direction")); AddPrivateChild(new wxFloatProperty("Power")); AddPrivateChild(new wxFloatProperty("Falloff")); AddPrivateChild(new wxFloatProperty("Range")); AddPrivateChild(new wxFloatProperty("Constant")); AddPrivateChild(new wxFloatProperty("Linear")); AddPrivateChild(new wxFloatProperty("Quadratic")); AddPrivateChild(new wxBoolProperty("Casts")); AddPrivateChild(new wxBoolProperty("Extra")); AddPrivateChild(new wxFloatProperty("Param0")); AddPrivateChild(new wxFloatProperty("Param1")); AddPrivateChild(new wxFloatProperty("Param2")); AddPrivateChild(new wxFloatProperty("Param3")); }