diff --git a/src/Mod/Path/Gui/Resources/panels/ToolBitLibraryEdit.ui b/src/Mod/Path/Gui/Resources/panels/ToolBitLibraryEdit.ui index 80bb90c3ca..f9cdfec269 100644 --- a/src/Mod/Path/Gui/Resources/panels/ToolBitLibraryEdit.ui +++ b/src/Mod/Path/Gui/Resources/panels/ToolBitLibraryEdit.ui @@ -63,7 +63,7 @@ - Tool Tables + Tool Libraries @@ -192,7 +192,7 @@ - Add Tool(s) to Job + Add Tool Controller(s) to Job @@ -269,10 +269,32 @@ + + + + + 0 + 0 + + + + + 420 + 0 + + + + true + + + + + <html><head/><body><p>Select the folder with the tool libraries to load.</p></body></html> + - Open Library + @@ -287,7 +309,7 @@ - 40 + 20 20 @@ -296,7 +318,7 @@ - <html><head/><body><p>Add another Tool Bit to this library.</p><p><br/></p></body></html> + <html><head/><body><p>Add existing Tool Bit to this library.</p><p><br/></p></body></html> Add Toolbit diff --git a/src/Mod/Path/PathScripts/PathToolBitLibraryGui.py b/src/Mod/Path/PathScripts/PathToolBitLibraryGui.py index c9e509a3a8..26e4b8eff1 100644 --- a/src/Mod/Path/PathScripts/PathToolBitLibraryGui.py +++ b/src/Mod/Path/PathScripts/PathToolBitLibraryGui.py @@ -273,7 +273,7 @@ class ToolBitLibrary(object): path = PathPreferences.lastPathToolLibrary() if filedialog or len(path) == 0: - path = PySide.QtGui.QFileDialog.getExistingDirectory(self.form, 'Tool Library Path', PathPreferences.lastPathToolLibrary(), 1) + path = PySide.QtGui.QFileDialog.getExistingDirectory(self.form, 'Tool Library Path', PathPreferences.lastPathToolLibrary()) #p = PySide.QtGui.QFileDialog.getOpenFileName(self.form, 'Tool Library', PathPreferences.lastPathToolLibrary(), '*.fctl') if len(path) > 0: PathPreferences.setLastPathToolLibrary(path) @@ -282,6 +282,8 @@ class ToolBitLibrary(object): self.form.TableList.clear() self.LibFiles.clear() + self.form.lineLibPath.clear() + self.form.lineLibPath.insert(path) # Find all tool tables in directory for file in glob.glob(path + '/*.fctl'):