@@ -112,6 +112,7 @@ def __init__(self):
112112 self ._MirrorSupport = False
113113 self ._SType = 'cylinder'
114114 self ._SubType = 'cross'
115+ self ._SMsg = 'Remove All'
115116
116117 # Shortcut
117118 if not VERSION_QT5 :
@@ -128,7 +129,7 @@ def __init__(self):
128129
129130 self ._application = CuraApplication .getInstance ()
130131
131- self .setExposedProperties ("SSize" , "MSize" , "ISize" , "AAngle" , "SType" , "YDirection" , "EHeights" , "SMain" , "SubType" , "SMirror" )
132+ self .setExposedProperties ("SSize" , "MSize" , "ISize" , "AAngle" , "SType" , "YDirection" , "EHeights" , "SMain" , "SubType" , "SMirror" , "SMsg" )
132133
133134 CuraApplication .getInstance ().globalContainerStackChanged .connect (self ._updateEnabled )
134135
@@ -395,6 +396,8 @@ def _createSupportMesh(self, parent: CuraSceneNode, position: Vector , position2
395396 op .push ()
396397 node .setPosition (position , CuraSceneNode .TransformSpace .World )
397398 self ._all_picked_node .append (node )
399+ self ._SMsg = 'Remove Last'
400+ Ret = self .getSMsg
398401
399402 CuraApplication .getInstance ().getController ().getScene ().sceneChanged .emit (node )
400403
@@ -941,6 +944,7 @@ def removeAllSupportMesh(self):
941944 if node_stack .getProperty ("support_mesh" , "value" ):
942945 self ._removeSupportMesh (node )
943946 self ._all_picked_node = []
947+ self ._SMsg = 'Remove All'
944948 else :
945949 for node in DepthFirstIterator (self ._application .getController ().getScene ().getRoot ()):
946950 if node .callDecoration ("isSliceable" ):
@@ -1044,7 +1048,20 @@ def setAAngle(self, AAngle: str) -> None:
10441048 # Logger.log('d', 's_value : ' + str(s_value))
10451049 self ._UseAngle = s_value
10461050 self ._preferences .setValue ("customsupportcylinder/a_angle" , s_value )
1051+
1052+ def getSMsg (self ) -> bool :
1053+ """
1054+ return: golabl _SMsg as text paramater.
1055+ """
1056+ return self ._SMsg
10471057
1058+ def setSMsg (self , SMsg : str ) -> None :
1059+ """
1060+ param SType: SMsg as text paramater.
1061+ """
1062+ self ._SMsg = SMsg
1063+
1064+
10481065 def getSType (self ) -> bool :
10491066 """
10501067 return: golabl _SType as text paramater.
0 commit comments