- changes for the Document object
This commit is contained in:
@@ -71,6 +71,12 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
|
||||
self.menufilenewexc.setToolTip(
|
||||
_("Will create a new, empty Excellon Object.")
|
||||
)
|
||||
self.menufilenew.addSeparator()
|
||||
|
||||
self.menufilenewdoc = self.menufilenew.addAction(QtGui.QIcon('share/notes16_1.png'), _('Document\tD'))
|
||||
self.menufilenewdoc.setToolTip(
|
||||
_("Will create a new, empty Document Object.")
|
||||
)
|
||||
|
||||
self.menufile_open = self.menufile.addMenu(QtGui.QIcon('share/folder32_bis.png'), _('Open'))
|
||||
self.menufile_open.setToolTipsVisible(True)
|
||||
|
||||
@@ -1793,6 +1793,22 @@ class DocumentObjectUI(ObjectUI):
|
||||
self.name_hlay.addWidget(name_label)
|
||||
self.name_hlay.addWidget(self.name_entry)
|
||||
|
||||
h_lay = QtWidgets.QHBoxLayout()
|
||||
h_lay.setAlignment(QtCore.Qt.AlignVCenter)
|
||||
self.custom_box.addLayout(h_lay)
|
||||
|
||||
self.autocomplete_cb = FCCheckBox("%s" % _("Auto Completer"))
|
||||
self.autocomplete_cb.setToolTip(
|
||||
_("This selects if the auto completer is enabled in the Document Editor.")
|
||||
)
|
||||
self.autocomplete_cb.setStyleSheet(
|
||||
"""
|
||||
QCheckBox {font-weight: bold; color: black}
|
||||
"""
|
||||
)
|
||||
h_lay.addWidget(self.autocomplete_cb)
|
||||
h_lay.addStretch()
|
||||
|
||||
# Plot CB - this is added only for compatibility; other FlatCAM objects expect it and the mechanism is already
|
||||
# established and I don't want to changed it right now
|
||||
self.plot_cb = FCCheckBox()
|
||||
|
||||
Reference in New Issue
Block a user