Kaynağa Gözat

- updated the Turkish translation (by Mehmet Kaya)
- the methods of the APP class that were the handlers for the File menu are now moved to their oen class

Marius Stanciu 5 yıl önce
ebeveyn
işleme
9491bdc4fc
43 değiştirilmiş dosya ile 2200 ekleme ve 2280 silme
  1. 2 0
      CHANGELOG.md
  2. 4 4
      appEditors/AppExcEditor.py
  3. 2 2
      appEditors/AppGerberEditor.py
  4. 15 15
      appGUI/MainGUI.py
  5. 6 6
      appObjects/ObjectCollection.py
  6. 4 4
      appTools/ToolCalibration.py
  7. 8 12
      appTools/ToolCopperThieving.py
  8. 4 3
      appTools/ToolCorners.py
  9. 11 7
      appTools/ToolCutOut.py
  10. 4 2
      appTools/ToolDblSided.py
  11. 2 2
      appTools/ToolEtchCompensation.py
  12. 3 2
      appTools/ToolExtractDrills.py
  13. 13 11
      appTools/ToolFiducials.py
  14. 2 2
      appTools/ToolInvertGerber.py
  15. 2 2
      appTools/ToolMove.py
  16. 6 6
      appTools/ToolPanelize.py
  17. 8 8
      appTools/ToolPunchGerber.py
  18. 3 2
      appTools/ToolQRCode.py
  19. 2 2
      appTools/ToolSub.py
  20. 6 6
      appTools/ToolTransform.py
  21. 522 513
      app_Main.py
  22. BIN
      locale/de/LC_MESSAGES/strings.mo
  23. 162 163
      locale/de/LC_MESSAGES/strings.po
  24. BIN
      locale/en/LC_MESSAGES/strings.mo
  25. 158 172
      locale/en/LC_MESSAGES/strings.po
  26. BIN
      locale/es/LC_MESSAGES/strings.mo
  27. 162 163
      locale/es/LC_MESSAGES/strings.po
  28. BIN
      locale/fr/LC_MESSAGES/strings.mo
  29. 122 197
      locale/fr/LC_MESSAGES/strings.po
  30. BIN
      locale/it/LC_MESSAGES/strings.mo
  31. 162 163
      locale/it/LC_MESSAGES/strings.po
  32. BIN
      locale/pt_BR/LC_MESSAGES/strings.mo
  33. 162 163
      locale/pt_BR/LC_MESSAGES/strings.po
  34. BIN
      locale/ro/LC_MESSAGES/strings.mo
  35. 162 163
      locale/ro/LC_MESSAGES/strings.po
  36. 161 162
      locale/ru/LC_MESSAGES/strings.po
  37. BIN
      locale/tr/LC_MESSAGES/strings.mo
  38. 159 162
      locale/tr/LC_MESSAGES/strings.po
  39. 157 157
      locale_template/strings.pot
  40. 1 1
      tclCommands/TclCommandExportDXF.py
  41. 1 1
      tclCommands/TclCommandExportExcellon.py
  42. 1 1
      tclCommands/TclCommandExportGerber.py
  43. 1 1
      tclCommands/TclCommandExportSVG.py

+ 2 - 0
CHANGELOG.md

@@ -16,6 +16,8 @@ CHANGELOG for FlatCAM beta
 - some changes in strings; updated all the translation strings to the latest changes
 - finished the Romanian translation
 - created two new preprocessors (from 'default' and from 'grbl_11') that will have no toolchange commands regardless of the settings in the software
+- updated the Turkish translation (by Mehmet Kaya)
+- the methods of the APP class that were the handlers for the File menu are now moved to their oen class
 
 23.10.2020
 

+ 4 - 4
appEditors/AppExcEditor.py

@@ -2868,10 +2868,10 @@ class AppExcEditor(QtCore.QObject):
 
             try:
                 edited_obj = self.app.app_obj.new_object("excellon", outname, obj_init)
-                edited_obj.source_file = self.app.export_excellon(obj_name=edited_obj.options['name'],
-                                                                  local_use=edited_obj,
-                                                                  filename=None,
-                                                                  use_thread=False)
+                edited_obj.source_file = self.app.f_handlers.export_excellon(obj_name=edited_obj.options['name'],
+                                                                             local_use=edited_obj,
+                                                                             filename=None,
+                                                                             use_thread=False)
             except Exception as e:
                 self.deactivate()
                 log.error("Error on Edited object creation: %s" % str(e))

+ 2 - 2
appEditors/AppGerberEditor.py

@@ -4366,8 +4366,8 @@ class AppGerberEditor(QtCore.QObject):
                 app_obj.inform.emit(msg)
                 raise
 
-            grb_obj.source_file = self.app.export_gerber(obj_name=out_name, filename=None,
-                                                         local_use=grb_obj, use_thread=False)
+            grb_obj.source_file = self.app.f_handlers.export_gerber(obj_name=out_name, filename=None,
+                                                                    local_use=grb_obj, use_thread=False)
 
         with self.app.proc_container.new(_("Creating Gerber.")):
             try:

+ 15 - 15
appGUI/MainGUI.py

@@ -2321,7 +2321,7 @@ class MainGUI(QtWidgets.QMainWindow):
             # CTRL + SHIFT
             if modifiers == QtCore.Qt.ControlModifier | QtCore.Qt.ShiftModifier:
                 if key == QtCore.Qt.Key_S:
-                    self.app.on_file_saveprojectas()
+                    self.app.f_handlers.on_file_saveprojectas()
                     return
             # CTRL
             elif modifiers == QtCore.Qt.ControlModifier:
@@ -2346,7 +2346,7 @@ class MainGUI(QtWidgets.QMainWindow):
 
                 # Open Excellon file
                 if key == QtCore.Qt.Key_E:
-                    self.app.on_fileopenexcellon(signal=None)
+                    self.app.f_handlers.on_fileopenexcellon(signal=None)
 
                 # Open Gerber file
                 if key == QtCore.Qt.Key_G:
@@ -2354,7 +2354,7 @@ class MainGUI(QtWidgets.QMainWindow):
                     if 'editor' in widget_name.lower():
                         self.app.goto_text_line()
                     else:
-                        self.app.on_fileopengerber(signal=None)
+                        self.app.f_handlers.on_fileopengerber(signal=None)
 
                 # Distance Tool
                 if key == QtCore.Qt.Key_M:
@@ -2362,15 +2362,15 @@ class MainGUI(QtWidgets.QMainWindow):
 
                 # Create New Project
                 if key == QtCore.Qt.Key_N:
-                    self.app.on_file_new_click()
+                    self.app.f_handlers.on_file_new_click()
 
                 # Open Project
                 if key == QtCore.Qt.Key_O:
-                    self.app.on_file_openproject(signal=None)
+                    self.app.f_handlers.on_file_openproject(signal=None)
 
                 # Open Project
                 if key == QtCore.Qt.Key_P:
-                    self.app.on_file_save_objects_pdf(use_thread=True)
+                    self.app.f_handlers.on_file_save_objects_pdf(use_thread=True)
 
                 # PDF Import
                 if key == QtCore.Qt.Key_Q:
@@ -2389,7 +2389,7 @@ class MainGUI(QtWidgets.QMainWindow):
                         self.app.tools_db_tab.on_save_tools_db()
                         return
 
-                    self.app.on_file_saveproject()
+                    self.app.f_handlers.on_file_saveproject()
 
                 # Toggle Plot Area
                 if key == QtCore.Qt.Key_F10 or key == 'F10':
@@ -2435,7 +2435,7 @@ class MainGUI(QtWidgets.QMainWindow):
 
                 # Run a Script
                 if key == QtCore.Qt.Key_S:
-                    self.app.on_filerunscript()
+                    self.app.f_handlers.on_filerunscript()
                     return
 
                 # Toggle Workspace
@@ -3677,31 +3677,31 @@ class MainGUI(QtWidgets.QMainWindow):
                     extension = self.filename.lower().rpartition('.')[-1]
 
                     if extension in self.app.grb_list:
-                        self.app.worker_task.emit({'fcn': self.app.open_gerber,
+                        self.app.worker_task.emit({'fcn': self.app.f_handlers.open_gerber,
                                                    'params': [self.filename]})
                     else:
                         event.ignore()
 
                     if extension in self.app.exc_list:
-                        self.app.worker_task.emit({'fcn': self.app.open_excellon,
+                        self.app.worker_task.emit({'fcn': self.app.f_handlers.open_excellon,
                                                    'params': [self.filename]})
                     else:
                         event.ignore()
 
                     if extension in self.app.gcode_list:
-                        self.app.worker_task.emit({'fcn': self.app.open_gcode,
+                        self.app.worker_task.emit({'fcn': self.app.f_handlers.open_gcode,
                                                    'params': [self.filename]})
                     else:
                         event.ignore()
 
                     if extension in self.app.svg_list:
                         object_type = 'geometry'
-                        self.app.worker_task.emit({'fcn': self.app.import_svg,
+                        self.app.worker_task.emit({'fcn': self.app.f_handlers.import_svg,
                                                    'params': [self.filename, object_type, None]})
 
                     if extension in self.app.dxf_list:
                         object_type = 'geometry'
-                        self.app.worker_task.emit({'fcn': self.app.import_dxf,
+                        self.app.worker_task.emit({'fcn': self.app.f_handlers.import_dxf,
                                                    'params': [self.filename, object_type, None]})
 
                     if extension in self.app.pdf_list:
@@ -3711,10 +3711,10 @@ class MainGUI(QtWidgets.QMainWindow):
 
                     if extension in self.app.prj_list:
                         # self.app.open_project() is not Thread Safe
-                        self.app.open_project(self.filename)
+                        self.app.f_handlers.open_project(self.filename)
 
                     if extension in self.app.conf_list:
-                        self.app.open_config_file(self.filename)
+                        self.app.f_handlers.open_config_file(self.filename)
                     else:
                         event.ignore()
         else:

+ 6 - 6
appObjects/ObjectCollection.py

@@ -126,36 +126,36 @@ class KeySensitiveListView(QtWidgets.QTreeView):
                         self.app.inform.emit(_("Cancelled."))
                     else:
                         if self.filename.lower().rpartition('.')[-1] in self.app.grb_list:
-                            self.app.worker_task.emit({'fcn': self.app.open_gerber,
+                            self.app.worker_task.emit({'fcn': self.app.f_handlers.open_gerber,
                                                        'params': [self.filename]})
                         else:
                             event.ignore()
 
                         if self.filename.lower().rpartition('.')[-1] in self.app.exc_list:
-                            self.app.worker_task.emit({'fcn': self.app.open_excellon,
+                            self.app.worker_task.emit({'fcn': self.app.f_handlers.open_excellon,
                                                        'params': [self.filename]})
                         else:
                             event.ignore()
 
                         if self.filename.lower().rpartition('.')[-1] in self.app.gcode_list:
-                            self.app.worker_task.emit({'fcn': self.app.open_gcode,
+                            self.app.worker_task.emit({'fcn': self.app.f_handlers.open_gcode,
                                                        'params': [self.filename]})
                         else:
                             event.ignore()
 
                         if self.filename.lower().rpartition('.')[-1] in self.app.svg_list:
                             object_type = 'geometry'
-                            self.app.worker_task.emit({'fcn': self.app.import_svg,
+                            self.app.worker_task.emit({'fcn': self.app.f_handlers.import_svg,
                                                        'params': [self.filename, object_type, None]})
 
                         if self.filename.lower().rpartition('.')[-1] in self.app.dxf_list:
                             object_type = 'geometry'
-                            self.app.worker_task.emit({'fcn': self.app.import_dxf,
+                            self.app.worker_task.emit({'fcn': self.app.f_handlers.import_dxf,
                                                        'params': [self.filename, object_type, None]})
 
                         if self.filename.lower().rpartition('.')[-1] in self.app.prj_list:
                             # self.app.open_project() is not Thread Safe
-                            self.app.open_project(self.filename)
+                            self.app.f_handlers.open_project(self.filename)
                         else:
                             event.ignore()
                 else:

+ 4 - 4
appTools/ToolCalibration.py

@@ -671,8 +671,8 @@ class ToolCalibration(AppTool):
             obj_init.skew(angle_x=skewx, angle_y=skewy, point=(origin_x, origin_y))
 
             try:
-                obj_init.source_file = self.export_gerber(obj_name=obj_name, filename=None, local_use=obj_init,
-                                                          use_thread=False)
+                obj_init.source_file = self.app.f_handlers.export_gerber(obj_name=obj_name, filename=None,
+                                                                         local_use=obj_init, use_thread=False)
             except (AttributeError, TypeError):
                 pass
 
@@ -689,8 +689,8 @@ class ToolCalibration(AppTool):
 
             obj_init.create_geometry()
 
-            obj_init.source_file = self.app.export_excellon(obj_name=obj_name, local_use=obj, filename=None,
-                                                            use_thread=False)
+            obj_init.source_file = self.app.export.export_excellon(obj_name=obj_name, local_use=obj, filename=None,
+                                                                   use_thread=False)
 
         obj = self.cal_object
         obj_name = obj_name

+ 8 - 12
appTools/ToolCopperThieving.py

@@ -282,10 +282,9 @@ class ToolCopperThieving(AppTool):
 
         self.app.proc_container.update_view_text(' %s' % _("Append source file"))
         # update the source file with the new geometry:
-        self.grb_object.source_file = self.app.export_gerber(obj_name=self.grb_object.options['name'],
-                                                             filename=None,
-                                                             local_use=self.grb_object,
-                                                             use_thread=False)
+        self.grb_object.source_file = self.app.f_handlers.export_gerber(obj_name=self.grb_object.options['name'],
+                                                                        filename=None, local_use=self.grb_object,
+                                                                        use_thread=False)
         self.app.proc_container.update_view_text(' %s' % '')
         self.on_exit()
         self.app.inform.emit('[success] %s' % _("Copper Thieving Tool done."))
@@ -876,10 +875,9 @@ class ToolCopperThieving(AppTool):
 
             app_obj.app.proc_container.update_view_text(' %s' % _("Append source file"))
             # update the source file with the new geometry:
-            app_obj.grb_object.source_file = app_obj.app.export_gerber(obj_name=app_obj.grb_object.options['name'],
-                                                                       filename=None,
-                                                                       local_use=app_obj.grb_object,
-                                                                       use_thread=False)
+            app_obj.grb_object.source_file = app_obj.f_handlers.export_gerber(
+                obj_name=app_obj.grb_object.options['name'], filename=None, local_use=app_obj.grb_object,
+                use_thread=False)
             app_obj.app.proc_container.update_view_text(' %s' % '')
             app_obj.on_exit()
             app_obj.app.inform.emit('[success] %s' % _("Copper Thieving Tool done."))
@@ -1021,10 +1019,8 @@ class ToolCopperThieving(AppTool):
 
             app_obj.proc_container.update_view_text(' %s' % _("Append source file"))
             # update the source file with the new geometry:
-            grb_obj.source_file = app_obj.export_gerber(obj_name=name,
-                                                        filename=None,
-                                                        local_use=grb_obj,
-                                                        use_thread=False)
+            grb_obj.source_file = app_obj.f_handlers.export_gerber(obj_name=name, filename=None, local_use=grb_obj,
+                                                                   use_thread=False)
             app_obj.proc_container.update_view_text(' %s' % '')
 
         # Object name

+ 4 - 3
appTools/ToolCorners.py

@@ -133,9 +133,10 @@ class ToolCorners(AppTool):
 
         self.add_corners_geo(points, g_obj=self.grb_object)
 
-        self.grb_object.source_file = self.app.export_gerber(obj_name=self.grb_object.options['name'],
-                                                             filename=None,
-                                                             local_use=self.grb_object, use_thread=False)
+        self.grb_object.source_file = self.app.f_handlers.export_gerber(obj_name=self.grb_object.options['name'],
+                                                                        filename=None,
+                                                                        local_use=self.grb_object,
+                                                                        use_thread=False)
         self.on_exit()
 
     def add_corners_geo(self, points_storage, g_obj):

+ 11 - 7
appTools/ToolCutOut.py

@@ -875,8 +875,9 @@ class CutOut(AppTool):
 
                     exc_obj.tools = tools
                     exc_obj.create_geometry()
-                    exc_obj.source_file = app_o.export_excellon(obj_name=exc_obj.options['name'], local_use=exc_obj,
-                                                                filename=None, use_thread=False)
+                    exc_obj.source_file = app_o.f_handlers.export_excellon(obj_name=exc_obj.options['name'],
+                                                                           local_use=exc_obj,filename=None,
+                                                                           use_thread=False)
                     # calculate the bounds
                     xmin, ymin, xmax, ymax = CutOut.recursive_bounds(exc_obj.solid_geometry)
                     exc_obj.options['xmin'] = xmin
@@ -1244,8 +1245,10 @@ class CutOut(AppTool):
 
                     exc_obj.tools = tools
                     exc_obj.create_geometry()
-                    exc_obj.source_file = app_o.export_excellon(obj_name=exc_obj.options['name'], local_use=exc_obj,
-                                                                filename=None, use_thread=False)
+                    exc_obj.source_file = app_o.f_handlers.export_excellon(obj_name=exc_obj.options['name'],
+                                                                           local_use=exc_obj,
+                                                                           filename=None,
+                                                                           use_thread=False)
                     # calculate the bounds
                     e_xmin, e_ymin, e_xmax, e_ymax = CutOut.recursive_bounds(exc_obj.solid_geometry)
                     exc_obj.options['xmin'] = e_xmin
@@ -1600,9 +1603,10 @@ class CutOut(AppTool):
 
                             exc_obj.tools = tools
                             exc_obj.create_geometry()
-                            exc_obj.source_file = app_o.export_excellon(obj_name=exc_obj.options['name'],
-                                                                        local_use=exc_obj,
-                                                                        filename=None, use_thread=False)
+                            exc_obj.source_file = app_o.f_handlers.export_excellon(obj_name=exc_obj.options['name'],
+                                                                                   local_use=exc_obj,
+                                                                                   filename=None,
+                                                                                   use_thread=False)
                             # calculate the bounds
                             xmin, ymin, xmax, ymax = CutOut.recursive_bounds(exc_obj.solid_geometry)
                             exc_obj.options['xmin'] = xmin

+ 4 - 2
appTools/ToolDblSided.py

@@ -205,8 +205,10 @@ class DblSidedTool(AppTool):
         def obj_init(obj_inst, app_inst):
             obj_inst.tools = tools
             obj_inst.create_geometry()
-            obj_inst.source_file = app_inst.export_excellon(obj_name=obj_inst.options['name'], local_use=obj_inst,
-                                                            filename=None, use_thread=False)
+            obj_inst.source_file = app_inst.f_handlers.export_excellon(obj_name=obj_inst.options['name'],
+                                                                       local_use=obj_inst,
+                                                                       filename=None,
+                                                                       use_thread=False)
 
         self.app.app_obj.new_object("excellon", "Alignment Drills", obj_init)
         self.drill_values = ''

+ 2 - 2
appTools/ToolEtchCompensation.py

@@ -233,8 +233,8 @@ class ToolEtchCompensation(AppTool):
             new_obj.apertures = deepcopy(new_apertures)
 
             new_obj.solid_geometry = deepcopy(new_solid_geometry)
-            new_obj.source_file = self.app.export_gerber(obj_name=outname, filename=None,
-                                                         local_use=new_obj, use_thread=False)
+            new_obj.source_file = self.app.f_handlers.export_gerber(obj_name=outname, filename=None, local_use=new_obj,
+                                                                    use_thread=False)
 
         self.app.app_obj.new_object('gerber', outname, init_func)
 

+ 3 - 2
appTools/ToolExtractDrills.py

@@ -373,8 +373,9 @@ class ToolExtractDrills(AppTool):
             obj_inst.tools = tools
             obj_inst.drills = drills
             obj_inst.create_geometry()
-            obj_inst.source_file = self.app.export_excellon(obj_name=outname, local_use=obj_inst, filename=None,
-                                                            use_thread=False)
+            obj_inst.source_file = app_inst.f_handlers.export_excellon(obj_name=outname, local_use=obj_inst,
+                                                                       filename=None,
+                                                                       use_thread=False)
 
         self.app.app_obj.new_object("excellon", outname, obj_init)
 

+ 13 - 11
appTools/ToolFiducials.py

@@ -229,9 +229,9 @@ class ToolFiducials(AppTool):
                 self.ui.sec_points_coords_entry.set_value('(%.*f, %.*f)' % (self.decimals, x1, self.decimals, y0))
 
             self.add_fiducials_geo(self.click_points, g_obj=self.grb_object, fid_type=fid_type)
-            self.grb_object.source_file = self.app.export_gerber(obj_name=self.grb_object.options['name'],
-                                                                 filename=None,
-                                                                 local_use=self.grb_object, use_thread=False)
+            self.grb_object.source_file = self.app.f_handlers.export_gerber(obj_name=self.grb_object.options['name'],
+                                                                            filename=None,
+                                                                            local_use=self.grb_object, use_thread=False)
             self.on_exit()
         else:
             self.app.inform.emit(_("Click to add first Fiducial. Bottom Left..."))
@@ -467,8 +467,10 @@ class ToolFiducials(AppTool):
         self.sm_obj_set.add(self.sm_object.options['name'])
         self.add_fiducials_geo(self.click_points, g_obj=self.sm_object, fid_size=sm_opening_dia, fid_type='circular')
 
-        self.sm_object.source_file = self.app.export_gerber(obj_name=self.sm_object.options['name'], filename=None,
-                                                            local_use=self.sm_object, use_thread=False)
+        self.sm_object.source_file = self.app.f_handlers.export_gerber(obj_name=self.sm_object.options['name'],
+                                                                       filename=None,
+                                                                       local_use=self.sm_object,
+                                                                       use_thread=False)
         self.on_exit()
 
     def on_mouse_release(self, event):
@@ -508,18 +510,18 @@ class ToolFiducials(AppTool):
                 self.ui.sec_points_coords_entry.set_value(self.click_points[2])
                 self.app.inform.emit('[success] %s' % _("Done. All fiducials have been added."))
                 self.add_fiducials_geo(self.click_points, g_obj=self.grb_object, fid_type=fid_type)
-                self.grb_object.source_file = self.app.export_gerber(obj_name=self.grb_object.options['name'],
-                                                                     filename=None,
-                                                                     local_use=self.grb_object, use_thread=False)
+                self.grb_object.source_file = self.app.f_handlers.export_gerber(
+                    obj_name=self.grb_object.options['name'], filename=None, local_use=self.grb_object,
+                    use_thread=False)
                 self.on_exit()
         else:
             if len(self.click_points) == 2:
                 self.ui.top_right_coords_entry.set_value(self.click_points[1])
                 self.app.inform.emit('[success] %s' % _("Done. All fiducials have been added."))
                 self.add_fiducials_geo(self.click_points, g_obj=self.grb_object, fid_type=fid_type)
-                self.grb_object.source_file = self.app.export_gerber(obj_name=self.grb_object.options['name'],
-                                                                     filename=None,
-                                                                     local_use=self.grb_object, use_thread=False)
+                self.grb_object.source_file = self.app.f_handlers.export_gerber(
+                    obj_name=self.grb_object.options['name'], filename=None,
+                    local_use=self.grb_object, use_thread=False)
                 self.on_exit()
 
     def on_mouse_move(self, event):

+ 2 - 2
appTools/ToolInvertGerber.py

@@ -157,8 +157,8 @@ class ToolInvertGerber(AppTool):
             new_obj.apertures = deepcopy(new_apertures)
 
             new_obj.solid_geometry = deepcopy(new_solid_geometry)
-            new_obj.source_file = self.app.export_gerber(obj_name=outname, filename=None,
-                                                         local_use=new_obj, use_thread=False)
+            new_obj.source_file = self.app.f_handlers.export_gerber(obj_name=outname, filename=None,
+                                                                    local_use=new_obj, use_thread=False)
 
         self.app.app_obj.new_object('gerber', outname, init_func)
 

+ 2 - 2
appTools/ToolMove.py

@@ -192,10 +192,10 @@ class ToolMove(AppTool):
                                 for sel_obj in obj_list:
                                     out_name = sel_obj.options["name"]
                                     if sel_obj.kind == 'gerber':
-                                        sel_obj.source_file = self.app.export_gerber(
+                                        sel_obj.source_file = self.app.f_handlers.export_gerber(
                                             obj_name=out_name, filename=None, local_use=sel_obj, use_thread=False)
                                     elif sel_obj.kind == 'excellon':
-                                        sel_obj.source_file = self.app.export_excellon(
+                                        sel_obj.source_file = self.app.f_handlers.export_excellon(
                                             obj_name=out_name, filename=None, local_use=sel_obj, use_thread=False)
                             except Exception as err:
                                 log.debug('[ERROR_NOTCL] %s --> %s' % ('ToolMove.on_left_click()', str(err)))

+ 6 - 6
appTools/ToolPanelize.py

@@ -360,8 +360,8 @@ class Panelize(AppTool):
                     obj_fin.zeros = panel_source_obj.zeros
                     obj_fin.units = panel_source_obj.units
                     app_obj.inform.emit('%s' % _("Generating panel ... Adding the source code."))
-                    obj_fin.source_file = self.app.export_excellon(obj_name=self.outname, filename=None,
-                                                                 local_use=obj_fin, use_thread=False)
+                    obj_fin.source_file = self.app.export.export_excellon(obj_name=self.outname, filename=None,
+                                                                          local_use=obj_fin, use_thread=False)
                     app_obj.proc_container.update_view_text('')
 
                 def job_init_geometry(obj_fin, app_obj):
@@ -583,11 +583,11 @@ class Panelize(AppTool):
 
                     app_obj.inform.emit('%s' % _("Generating panel ... Adding the source code."))
                     if panel_type == 'gerber':
-                        obj_fin.source_file = self.app.export_gerber(obj_name=self.outname, filename=None,
-                                                                     local_use=obj_fin, use_thread=False)
+                        obj_fin.source_file = self.app.f_handlers.export_gerber(obj_name=self.outname, filename=None,
+                                                                                local_use=obj_fin, use_thread=False)
                     if panel_type == 'geometry':
-                        obj_fin.source_file = self.app.export_dxf(obj_name=self.outname, filename=None,
-                                                                     local_use=obj_fin, use_thread=False)
+                        obj_fin.source_file = self.app.f_handlers.export_dxf(obj_name=self.outname, filename=None,
+                                                                             local_use=obj_fin, use_thread=False)
 
                     # obj_fin.solid_geometry = unary_union(obj_fin.solid_geometry)
                     # app_obj.log.debug("Finished creating a unary_union for the panel.")

+ 8 - 8
appTools/ToolPunchGerber.py

@@ -267,8 +267,8 @@ class ToolPunchGerber(AppTool):
                 new_obj.apertures = deepcopy(new_apertures)
 
                 new_obj.solid_geometry = deepcopy(punched_solid_geometry)
-                new_obj.source_file = self.app.export_gerber(obj_name=outname, filename=None,
-                                                             local_use=new_obj, use_thread=False)
+                new_obj.source_file = self.app.f_handlers.export_gerber(obj_name=outname, filename=None,
+                                                                        local_use=new_obj, use_thread=False)
 
             self.app.app_obj.new_object('gerber', outname, init_func)
         elif punch_method == 'fixed':
@@ -390,8 +390,8 @@ class ToolPunchGerber(AppTool):
                 new_obj.apertures = deepcopy(new_apertures)
 
                 new_obj.solid_geometry = deepcopy(punched_solid_geometry)
-                new_obj.source_file = self.app.export_gerber(obj_name=outname, filename=None,
-                                                             local_use=new_obj, use_thread=False)
+                new_obj.source_file = self.app.f_handlers.export_gerber(obj_name=outname, filename=None,
+                                                                        local_use=new_obj, use_thread=False)
 
             self.app.app_obj.new_object('gerber', outname, init_func)
         elif punch_method == 'ring':
@@ -532,8 +532,8 @@ class ToolPunchGerber(AppTool):
                 new_obj.apertures = deepcopy(new_apertures)
 
                 new_obj.solid_geometry = deepcopy(punched_solid_geometry)
-                new_obj.source_file = self.app.export_gerber(obj_name=outname, filename=None,
-                                                             local_use=new_obj, use_thread=False)
+                new_obj.source_file = self.app.f_handlers.export_gerber(obj_name=outname, filename=None,
+                                                                        local_use=new_obj, use_thread=False)
 
             self.app.app_obj.new_object('gerber', outname, init_func)
 
@@ -671,8 +671,8 @@ class ToolPunchGerber(AppTool):
                 new_obj.apertures = deepcopy(new_apertures)
 
                 new_obj.solid_geometry = deepcopy(punched_solid_geometry)
-                new_obj.source_file = self.app.export_gerber(obj_name=outname, filename=None,
-                                                             local_use=new_obj, use_thread=False)
+                new_obj.source_file = self.app.f_handlers.export_gerber(obj_name=outname, filename=None,
+                                                                        local_use=new_obj, use_thread=False)
 
             self.app.app_obj.new_object('gerber', outname, init_func)
 

+ 3 - 2
appTools/ToolQRCode.py

@@ -314,8 +314,9 @@ class QRCode(AppTool):
             self.grb_object.apertures[new_apid]['geometry'].append(deepcopy(geo_elem))
 
         # update the source file with the new geometry:
-        self.grb_object.source_file = self.app.export_gerber(obj_name=self.grb_object.options['name'], filename=None,
-                                                             local_use=self.grb_object, use_thread=False)
+        self.grb_object.source_file = self.app.f_handlers.export_gerber(obj_name=self.grb_object.options['name'],
+                                                                        filename=None,
+                                                                        local_use=self.grb_object, use_thread=False)
 
         self.replot(obj=self.grb_object)
         self.app.inform.emit('[success] %s' % _("QRCode Tool done."))

+ 2 - 2
appTools/ToolSub.py

@@ -320,8 +320,8 @@ class ToolSub(AppTool):
 
             grb_obj.solid_geometry = deepcopy(poly_buff)
             grb_obj.follow_geometry = deepcopy(follow_buff)
-            grb_obj.source_file = self.app.export_gerber(obj_name=outname, filename=None,
-                                                         local_use=grb_obj, use_thread=False)
+            grb_obj.source_file = self.app.f_handlers.export_gerber(obj_name=outname, filename=None,
+                                                                    local_use=grb_obj, use_thread=False)
 
         with self.app.proc_container.new(_("Generating new object ...")):
             ret = self.app.app_obj.new_object('gerber', outname, obj_init, autoselected=False)

+ 6 - 6
appTools/ToolTransform.py

@@ -457,14 +457,14 @@ class ToolTransform(AppTool):
                             self.app.inform.emit(_("CNCJob objects can't be buffered."))
                         elif sel_obj.kind.lower() == 'gerber':
                             sel_obj.buffer(value, join, factor)
-                            sel_obj.source_file = self.app.export_gerber(obj_name=sel_obj.options['name'],
-                                                                         filename=None, local_use=sel_obj,
-                                                                         use_thread=False)
+                            sel_obj.source_file = self.app.f_handlers.export_gerber(obj_name=sel_obj.options['name'],
+                                                                                    filename=None, local_use=sel_obj,
+                                                                                    use_thread=False)
                         elif sel_obj.kind.lower() == 'excellon':
                             sel_obj.buffer(value, join, factor)
-                            sel_obj.source_file = self.app.export_excellon(obj_name=sel_obj.options['name'],
-                                                                           filename=None, local_use=sel_obj,
-                                                                           use_thread=False)
+                            sel_obj.source_file = self.app.f_handlers.export_excellon(obj_name=sel_obj.options['name'],
+                                                                                      filename=None, local_use=sel_obj,
+                                                                                      use_thread=False)
                         elif sel_obj.kind.lower() == 'geometry':
                             sel_obj.buffer(value, join, factor)
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 522 - 513
app_Main.py


BIN
locale/de/LC_MESSAGES/strings.mo


Dosya farkı çok büyük olduğundan ihmal edildi
+ 162 - 163
locale/de/LC_MESSAGES/strings.po


BIN
locale/en/LC_MESSAGES/strings.mo


Dosya farkı çok büyük olduğundan ihmal edildi
+ 158 - 172
locale/en/LC_MESSAGES/strings.po


BIN
locale/es/LC_MESSAGES/strings.mo


Dosya farkı çok büyük olduğundan ihmal edildi
+ 162 - 163
locale/es/LC_MESSAGES/strings.po


BIN
locale/fr/LC_MESSAGES/strings.mo


Dosya farkı çok büyük olduğundan ihmal edildi
+ 122 - 197
locale/fr/LC_MESSAGES/strings.po


BIN
locale/it/LC_MESSAGES/strings.mo


Dosya farkı çok büyük olduğundan ihmal edildi
+ 162 - 163
locale/it/LC_MESSAGES/strings.po


BIN
locale/pt_BR/LC_MESSAGES/strings.mo


Dosya farkı çok büyük olduğundan ihmal edildi
+ 162 - 163
locale/pt_BR/LC_MESSAGES/strings.po


BIN
locale/ro/LC_MESSAGES/strings.mo


Dosya farkı çok büyük olduğundan ihmal edildi
+ 162 - 163
locale/ro/LC_MESSAGES/strings.po


Dosya farkı çok büyük olduğundan ihmal edildi
+ 161 - 162
locale/ru/LC_MESSAGES/strings.po


BIN
locale/tr/LC_MESSAGES/strings.mo


Dosya farkı çok büyük olduğundan ihmal edildi
+ 159 - 162
locale/tr/LC_MESSAGES/strings.po


Dosya farkı çok büyük olduğundan ihmal edildi
+ 157 - 157
locale_template/strings.pot


+ 1 - 1
tclCommands/TclCommandExportDXF.py

@@ -49,4 +49,4 @@ class TclCommandExportDXF(TclCommand):
         """
         if 'filename' not in args:
             args['filename'] = self.app.defaults["global_last_save_folder"] + '/' + args['name']
-        self.app.export_dxf(use_thread=False, local_use=None, **args)
+        self.app.f_handlers.export_dxf(use_thread=False, local_use=None, **args)

+ 1 - 1
tclCommands/TclCommandExportExcellon.py

@@ -49,4 +49,4 @@ class TclCommandExportExcellon(TclCommand):
         """
         if 'filename' not in args:
             args['filename'] = self.app.defaults["global_last_save_folder"] + '/' + args['name']
-        self.app.export_excellon(use_thread=False, **args)
+        self.app.f_handlers.export_excellon(use_thread=False, **args)

+ 1 - 1
tclCommands/TclCommandExportGerber.py

@@ -49,4 +49,4 @@ class TclCommandExportGerber(TclCommand):
         """
         if 'filename' not in args:
             args['filename'] = self.app.defaults["global_last_save_folder"] + '/' + args['name']
-        self.app.export_gerber(use_thread=False,**args)
+        self.app.f_handlers.export_gerber(use_thread=False,**args)

+ 1 - 1
tclCommands/TclCommandExportSVG.py

@@ -52,4 +52,4 @@ class TclCommandExportSVG(TclCommand):
         :return:
         """
 
-        self.app.export_svg(**args)
+        self.app.f_handlers.export_svg(**args)

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor