draftobjects.label.Label Class Reference

Public Member Functions

def execute (self, obj)
 
def onChanged (self, obj, prop)
 
def onDocumentRestored (self, obj)
 
def set_label_properties (self, obj)
 
def set_leader_properties (self, obj)
 
def set_properties (self, obj)
 
def set_target_properties (self, obj)
 
def show_and_hide (self, obj, prop)
 
- Public Member Functions inherited from draftobjects.draft_annotation.DraftAnnotation
def add_missing_properties_0v19 (self, obj, vobj)
 
def execute (self, obj)
 
def onChanged (self, obj, prop)
 
def onDocumentRestored (self, obj)
 

Additional Inherited Members

- Public Attributes inherited from draftobjects.draft_annotation.DraftAnnotation
 Type
 

Detailed Description

The Draft Label object.

Member Function Documentation

◆ execute()

◆ onChanged()

◆ onDocumentRestored()

def draftobjects.label.Label.onDocumentRestored (   self,
  obj 
)
Execute code when the document is restored.

It calls the parent class to add missing annotation properties.

Reimplemented from draftobjects.draft_annotation.DraftAnnotation.

References draftobjects.label.Label.onDocumentRestored().

Referenced by draftobjects.label.Label.onDocumentRestored().

◆ set_label_properties()

def draftobjects.label.Label.set_label_properties (   self,
  obj 
)
Set label properties only if they don't exist.

References draftobjects.label.get_label_types(), and draftutils.translate.QT_TRANSLATE_NOOP.

Referenced by draftobjects.label.Label.set_properties().

◆ set_leader_properties()

def draftobjects.label.Label.set_leader_properties (   self,
  obj 
)
Set leader properties only if they don't exist.

References draftutils.translate.QT_TRANSLATE_NOOP.

Referenced by draftobjects.label.Label.set_properties().

◆ set_properties()

◆ set_target_properties()

def draftobjects.label.Label.set_target_properties (   self,
  obj 
)
Set position properties only if they don't exist.

References draftutils.translate.QT_TRANSLATE_NOOP.

Referenced by draftobjects.label.Label.set_properties().

◆ show_and_hide()

def draftobjects.label.Label.show_and_hide (   self,
  obj,
  prop 
)
Show and hide the properties depending on the touched property.

Referenced by draftobjects.array.Array.onChanged(), draftobjects.label.Label.onChanged(), and draftobjects.patharray.PathArray.onChanged().


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