- added a toggle button in Preferences to toggle on/off the display of the selection box on canvas when the user is clicking an object or selecting it by mouse dragging.

This commit is contained in:
Marius Stanciu
2019-04-25 20:59:45 +03:00
parent 4c275b25af
commit ac3833f746
3 changed files with 26 additions and 8 deletions

View File

@@ -3603,6 +3603,16 @@ class GeneralGUISetGroupUI(OptionsGroupUI):
)
self.hover_cb = FCCheckBox()
# Enable Selection box
self.selection_label = QtWidgets.QLabel(_('Sel. Shape:'))
self.selection_label.setToolTip(
_("Enable the display of a selection shape for FlatCAM objects.\n"
"It is displayed whenever the mouse selects an object\n"
"either by clicking or dragging mouse from left to right or\n"
"right to left.")
)
self.selection_cb = FCCheckBox()
# Just to add empty rows
self.spacelabel = QtWidgets.QLabel('')
@@ -3614,6 +3624,7 @@ class GeneralGUISetGroupUI(OptionsGroupUI):
self.form_box.addRow(self.hdpi_label, self.hdpi_cb)
self.form_box.addRow(self.clear_label, self.clear_btn)
self.form_box.addRow(self.hover_label, self.hover_cb)
self.form_box.addRow(self.selection_label, self.selection_cb)
# Add the QFormLayout that holds the Application general defaults
# to the main layout of this TAB