- small change

This commit is contained in:
Marius Stanciu
2021-09-06 01:25:05 +03:00
committed by Marius Stanciu
parent 358ae2d960
commit c3ac752c12
2 changed files with 9 additions and 16 deletions

View File

@@ -1381,20 +1381,6 @@ class CNCObjectUI(ObjectUI):
grid_par.setColumnStretch(1, 1)
self.gp_frame.setLayout(grid_par)
# Annotation
self.annotation_cb = FCCheckBox(_("Display Annotation"))
self.annotation_cb.setToolTip(
_("This selects if to display text annotation on the plot.\n"
"When checked it will display numbers in order for each end\n"
"of a travel line.")
)
grid_par.addWidget(self.annotation_cb, 0, 0, 1, 3)
self.separator_line = QtWidgets.QFrame()
self.separator_line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
self.separator_line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
grid_par.addWidget(self.separator_line, 2, 0, 1, 3)
# Travelled Distance
self.t_distance_label = FCLabel("<b>%s:</b>" % _("Travelled distance"))
self.t_distance_label.setToolTip(
@@ -1439,6 +1425,15 @@ class CNCObjectUI(ObjectUI):
)
grid_par.addWidget(self.snippets_cb, 12, 0, 1, 3)
# Annotation
self.annotation_cb = FCCheckBox(_("Display Annotation"))
self.annotation_cb.setToolTip(
_("This selects if to display text annotation on the plot.\n"
"When checked it will display numbers in order for each end\n"
"of a travel line.")
)
grid_par.addWidget(self.annotation_cb, 14, 0, 1, 3)
# #############################################################################################################
# CNC Tool Table Frame
# #############################################################################################################

View File

@@ -564,7 +564,6 @@ class CNCJobObject(FlatCAMObj, CNCjob):
}
""")
self.ui.separator_line.hide()
self.ui.annotation_cb.hide()
else:
self.ui.level.setText('%s' % _('Advanced'))
@@ -575,7 +574,6 @@ class CNCJobObject(FlatCAMObj, CNCjob):
}
""")
self.ui.separator_line.show()
self.ui.annotation_cb.show()
def ui_connect(self):