
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
48 lines
1.5 KiB
Python
48 lines
1.5 KiB
Python
# MachiningDistortion Gui stuff
|
|
|
|
|
|
class MachiningDistortionWorkbench ( Workbench ):
|
|
"Test workbench object"
|
|
Icon = """
|
|
/* XPM */
|
|
static const char *test_icon[]={
|
|
"16 16 2 1",
|
|
"a c #000000",
|
|
". c None",
|
|
"................",
|
|
"................",
|
|
"..####....####..",
|
|
"..####....####..",
|
|
"..####....####..",
|
|
"................",
|
|
"......####......",
|
|
"......####......",
|
|
"......####......",
|
|
"......####......",
|
|
"......####......",
|
|
"..####....####..",
|
|
"..####....####..",
|
|
"..####....####..",
|
|
"................",
|
|
"................"};
|
|
"""
|
|
MenuText = "Machining Distortion"
|
|
ToolTip = "MachiningDistortion workbench"
|
|
|
|
def Initialize(self):
|
|
import MachiningDistortionCommands
|
|
import machdist_rc
|
|
CmdList = ["MachiningDistortion_StartGUI","MachiningDistortion_StartPostprocess"]
|
|
self.appendToolbar("MachiningDistortionTools",CmdList)
|
|
self.appendMenu("Machining Distortion",CmdList)
|
|
Gui.addPreferencePage(":/ui/userprefs-base.ui","Machining Distortion")
|
|
|
|
|
|
Log ('Loading MachiningDistortion module... done\n')
|
|
def Activated(self):
|
|
Msg("MachiningDistortionWorkbench::Activated()\n")
|
|
def Deactivated(self):
|
|
Msg("MachiningDistortionWorkbench::Deactivated()\n")
|
|
|
|
Gui.addWorkbench(MachiningDistortionWorkbench)
|