- added messages in info bar when selecting objects in the Project View list
- fixed DblSided Tool so it correctly creates the Alignment Drills Excellon file using the new structure - fixed DblSided Tool so it will not crash the app if the user tries to make a mirror using no coordinates - added some relevant status bar messages in DblSided Tool - fixed DblSided Tool to correctly use the Box object (until now it used as reference only Gerber object in spite of Excellon or Geometry objects being available) - fixed DblSided Tool crash when trying to create Alignment Drills object without a Tool diameter specified
This commit is contained in:
@@ -902,6 +902,20 @@ class ObjectCollection(QtCore.QAbstractItemModel):
|
||||
|
||||
try:
|
||||
obj = current.indexes()[0].internalPointer().obj
|
||||
|
||||
if obj.kind == 'gerber':
|
||||
self.app.inform.emit('[selected]<span style="color:%s;">%s</span> selected' %
|
||||
('green', str(obj.options['name'])))
|
||||
elif obj.kind == 'excellon':
|
||||
self.app.inform.emit('[selected]<span style="color:%s;">%s</span> selected' %
|
||||
('brown', str(obj.options['name'])))
|
||||
elif obj.kind == 'cncjob':
|
||||
self.app.inform.emit('[selected]<span style="color:%s;">%s</span> selected' %
|
||||
('blue', str(obj.options['name'])))
|
||||
elif obj.kind == 'geometry':
|
||||
self.app.inform.emit('[selected]<span style="color:%s;">%s</span> selected' %
|
||||
('red', str(obj.options['name'])))
|
||||
|
||||
except IndexError:
|
||||
FlatCAMApp.App.log.debug("on_list_selection_change(): Index Error (Nothing selected?)")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user