parameters: (self, vobj)
docstring: Set the properties only if they don't already exist.
docstring_summary: Set the properties only if they don't already exist.
docstring_tokens: Set the properties only if they don t already exist .
function: def set_properties(self, vobj):
          """Set the properties only if they don't already exist."""
          super(ViewProviderText, self).set_properties(vobj)
          properties = vobj.PropertiesList
  
          if "FontSize" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "The size of the text")
              vobj.addProperty("App::PropertyLength",
                               "FontSize",
                               "Text",
                               _tip)
              vobj.FontSize = utils.get_param("textheight", 1)
  
          if "FontName" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "The font of the text")
              vobj.addProperty("App::PropertyFont",
                               "FontName",
                               "Text",
                               _tip)
              vobj.FontName = utils.get_param("textfont", "sans")
  
          if "Justification" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "The vertical alignment of the text")
              vobj.addProperty("App::PropertyEnumeration",
                               "Justification",
                               "Text",
                               _tip)
              vobj.Justification = ["Left", "Center", "Right"]
  
          if "TextColor" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "Text color")
              vobj.addProperty("App::PropertyColor",
                               "TextColor",
                               "Text",
                               _tip)
  
          if "LineSpacing" not in properties:
              _tip = QT_TRANSLATE_NOOP("App::Property",
                                       "Line spacing (relative to font size)")
              vobj.addProperty("App::PropertyFloat",
                               "LineSpacing",
                               "Text",
                               _tip)
function_tokens: def set_properties ( self , vobj ) : super ( ViewProviderText , self ) . set_properties ( vobj ) properties = vobj . PropertiesList if "FontSize" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "The size of the text" ) vobj . addProperty ( "App::PropertyLength" , "FontSize" , "Text" , _tip ) vobj . FontSize = utils . get_param ( "textheight" , 1 ) if "FontName" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "The font of the text" ) vobj . addProperty ( "App::PropertyFont" , "FontName" , "Text" , _tip ) vobj . FontName = utils . get_param ( "textfont" , "sans" ) if "Justification" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "The vertical alignment of the text" ) vobj . addProperty ( "App::PropertyEnumeration" , "Justification" , "Text" , _tip ) vobj . Justification = [ "Left" , "Center" , "Right" ] if "TextColor" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "Text color" ) vobj . addProperty ( "App::PropertyColor" , "TextColor" , "Text" , _tip ) if "LineSpacing" not in properties : _tip = QT_TRANSLATE_NOOP ( "App::Property" , "Line spacing (relative to font size)" ) vobj . addProperty ( "App::PropertyFloat" , "LineSpacing" , "Text" , _tip )