Arch: Minor fixes

This commit is contained in:
Yorik van Havre
2012-07-18 15:04:56 -03:00
parent 401784d3d0
commit fe0ea018c6
4 changed files with 44 additions and 21 deletions

View File

@@ -57,7 +57,7 @@ class ArchWorkbench(Workbench):
ToolTip = "Architecture workbench"
def Initialize(self):
import DraftTools,DraftGui,Arch_rc,Arch
import DraftTools,DraftGui,Arch_rc,Arch,Draft_rc
# arch tools
self.archtools = ["Arch_Wall","Arch_Structure",
@@ -91,6 +91,8 @@ class ArchWorkbench(Workbench):
FreeCADGui.addIconPath(":/icons")
FreeCADGui.addLanguagePath(":/translations")
FreeCADGui.addPreferencePage(":/ui/archprefs-base.ui","Arch")
FreeCADGui.addPreferencePage(":/ui/userprefs-base.ui","Draft")
FreeCADGui.addPreferencePage(":/ui/userprefs-import.ui","Draft")
Log ('Loading Arch module... done\n')
def Activated(self):
@@ -106,7 +108,7 @@ class ArchWorkbench(Workbench):
Msg("Arch workbench deactivated\n")
def ContextMenu(self, recipient):
self.appendContextMenu("Display tools",self.draftcontexttools)
self.appendContextMenu("Draft context tools",self.draftcontexttools)
def GetClassName(self):
return "Gui::PythonWorkbench"