00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 class TestWorkbench ( Workbench ):
00032 "Test workbench object"
00033 Icon = """
00034 /* XPM */
00035 static const char *test_icon[]={
00036 "16 16 2 1",
00037 "a c #000000",
00038 ". c None",
00039 "................",
00040 "................",
00041 "..############..",
00042 "..############..",
00043 "..############..",
00044 "......####......",
00045 "......####......",
00046 "......####......",
00047 "......####......",
00048 "......####......",
00049 "......####......",
00050 "......####......",
00051 "......####......",
00052 "......####......",
00053 "................",
00054 "................"};
00055 """
00056 MenuText = "Test framework"
00057 ToolTip = "Test framework"
00058
00059 def Initialize(self):
00060 import TestGui
00061
00062 list = ["Test_Test","Test_TestAll","Test_TestDoc","Test_TestBase"]
00063 self.appendToolbar("TestTools",list)
00064
00065 menu = ["Test &Commands","TestToolsGui"]
00066 list = ["Std_TestQM","Test_Test","Test_TestAll","Test_TestDoc","Test_TestBase"]
00067 self.appendCommandbar("TestToolsGui",list)
00068 self.appendMenu(menu,list)
00069
00070 menu = ["Test &Commands","TestToolsText"]
00071 list = ["Test_TestAllText","Test_TestDocText","Test_TestBaseText"]
00072 self.appendCommandbar("TestToolsText",list)
00073 self.appendMenu(menu,list)
00074
00075 menu = ["Test &Commands","TestToolsMenu"]
00076 list = ["Test_TestCreateMenu", "Test_TestDeleteMenu", "Test_TestWork"]
00077 self.appendCommandbar("TestToolsMenu",list)
00078 self.appendMenu(menu,list)
00079
00080 menu = ["Test &Commands","TestFeatureMenu"]
00081 list = ["Test_InsertFeature"]
00082 self.appendCommandbar("TestFeature",list)
00083 self.appendMenu(menu,list)
00084
00085 menu = ["Test &Commands","Progress bar"]
00086 list = ["Std_TestProgress1", "Std_TestProgress2", "Std_TestProgress3", "Std_TestProgress4", "Std_TestProgress5"]
00087 self.appendMenu(menu,list)
00088
00089 menu = ["Test &Commands","MDI"]
00090 list = ["Std_MDITest1", "Std_MDITest2", "Std_MDITest3"]
00091 self.appendMenu(menu,list)
00092
00093 list = ["Std_ViewExample1", "Std_ViewExample2", "Std_ViewExample3"]
00094 self.appendMenu("Inventor View",list)
00095
00096 Gui.addWorkbench(TestWorkbench())