1
#***************************************************************************
2
#* Copyright (c) 2013 Juergen Riegel <FreeCAD@juergen-riegel.net> *
4
#* This program is free software; you can redistribute it and/or modify *
5
#* it under the terms of the GNU Lesser General Public License (LGPL) *
6
#* as published by the Free Software Foundation; either version 2 of *
7
#* the License, or (at your option) any later version. *
8
#* for detail see the LICENCE text file. *
10
#* This program is distributed in the hope that it will be useful, *
11
#* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
#* GNU Library General Public License for more details. *
15
#* You should have received a copy of the GNU Library General Public *
16
#* License along with this program; if not, write to the Free Software *
17
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
20
#***************************************************************************
21
"""Initialization of the Material Workbench graphical interface."""
24
import FreeCADGui as Gui
28
class MaterialWorkbench(Gui.Workbench):
29
"""Part workbench object."""
32
self.__class__.Icon = os.path.join(App.getResourceDir(),
35
"MaterialWorkbench.svg")
36
self.__class__.MenuText = "Material"
37
self.__class__.ToolTip = "Material workbench"
43
def GetClassName(self):
44
return "MatGui::Workbench"
47
Gui.addWorkbench(MaterialWorkbench())