- whenever a FlatCAM tool is activated, if the notebook side is hidden it will be unhidden
- reactivated the Voronoi classed - added a new parameter named Offset in the Excellon tool table - work in progress
This commit is contained in:
@@ -220,6 +220,11 @@ class ToolCalculator(FlatCAMTool):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.app.ui.notebook.setTabText(2, "Calc. Tool")
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
|
||||
@@ -196,6 +196,11 @@ class ToolCutOut(FlatCAMTool):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.app.ui.notebook.setTabText(2, "Cutout Tool")
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
|
||||
@@ -259,6 +259,11 @@ class DblSidedTool(FlatCAMTool):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.app.ui.notebook.setTabText(2, "2-Sided Tool")
|
||||
|
||||
def set_tool_ui(self):
|
||||
|
||||
@@ -161,6 +161,11 @@ class Film(FlatCAMTool):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.app.ui.notebook.setTabText(2, "Film Tool")
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
|
||||
@@ -129,6 +129,11 @@ class ToolImage(FlatCAMTool):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.app.ui.notebook.setTabText(2, "Image Tool")
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
|
||||
@@ -243,6 +243,11 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.build_ui()
|
||||
self.app.ui.notebook.setTabText(2, "NCC Tool")
|
||||
|
||||
|
||||
@@ -299,6 +299,11 @@ class ToolPaint(FlatCAMTool, Gerber):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.app.ui.notebook.setTabText(2, "Paint Tool")
|
||||
|
||||
def on_radio_selection(self):
|
||||
|
||||
@@ -184,6 +184,11 @@ class Panelize(FlatCAMTool):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.app.ui.notebook.setTabText(2, "Panel. Tool")
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
|
||||
@@ -47,6 +47,11 @@ class Properties(FlatCAMTool):
|
||||
if self.app.tool_tab_locked is True:
|
||||
return
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.properties()
|
||||
|
||||
|
||||
@@ -360,6 +360,11 @@ class ToolTransform(FlatCAMTool):
|
||||
|
||||
FlatCAMTool.run(self)
|
||||
self.set_tool_ui()
|
||||
|
||||
# if the splitter us hidden, display it
|
||||
if self.app.ui.splitter.sizes()[0] == 0:
|
||||
self.app.ui.splitter.setSizes([1, 1])
|
||||
|
||||
self.app.ui.notebook.setTabText(2, "Transform Tool")
|
||||
|
||||
def install(self, icon=None, separator=None, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user