Test/InitGui.py

Go to the documentation of this file.
00001 # Test gui init module  
00002 # (c) 2003 Juergen Riegel
00003 #
00004 
00005 #***************************************************************************
00006 #*   (c) Juergen Riegel (juergen.riegel@web.de) 2002                       *
00007 #*                                                                         *
00008 #*   This file is part of the FreeCAD CAx development system.              *
00009 #*                                                                         *
00010 #*   This program is free software; you can redistribute it and/or modify  *
00011 #*   it under the terms of the GNU General Public License (GPL)            *
00012 #*   as published by the Free Software Foundation; either version 2 of     *
00013 #*   the License, or (at your option) any later version.                   *
00014 #*   for detail see the LICENCE text file.                                 *
00015 #*                                                                         *
00016 #*   FreeCAD is distributed in the hope that it will be useful,            *
00017 #*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018 #*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00019 #*   GNU Library General Public License for more details.                  *
00020 #*                                                                         *
00021 #*   You should have received a copy of the GNU Library General Public     *
00022 #*   License along with FreeCAD; if not, write to the Free Software        *
00023 #*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00024 #*   USA                                                                   *
00025 #*                                                                         *
00026 #*   Juergen Riegel 2002                                                   *
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())

Generated on Wed Nov 23 19:00:19 2011 for FreeCAD by  doxygen 1.6.1