FreeCAD
1# Drawing gui init module
2# (c) 2003 Juergen Riegel
3#
4# Gathering all the information to start FreeCAD
5# This is the second one of three init scripts, the third one
6# runs when the gui is up
7
8# ***************************************************************************
9# * (c) Juergen Riegel (juergen.riegel@web.de) 2002
10# * *
11# * This file is part of the FreeCAD CAx development system. *
12# * *
13# * This program is free software; you can redistribute it and/or modify *
14# * it under the terms of the GNU Lesser General Public License (LGPL) *
15# * as published by the Free Software Foundation; either version 2 of *
16# * the License, or (at your option) any later version. *
17# * for detail see the LICENCE text file. *
18# * *
19# * FreeCAD is distributed in the hope that it will be useful, *
20# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22# * GNU Lesser General Public License for more details. *
23# * *
24# * You should have received a copy of the GNU Library General Public *
25# * License along with FreeCAD; if not, write to the Free Software *
26# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
27# * USA *
28# * *
29# * Juergen Riegel 2002 *
30# ***************************************************************************/
31
32
33class DrawingWorkbench(Workbench):34"Drawing workbench object"35
36def __init__(self):37self.__class__.Icon = (38FreeCAD.getResourceDir() + "Mod/Drawing/Resources/icons/DrawingWorkbench.svg"39)40self.__class__.MenuText = "Drawing"41self.__class__.ToolTip = "Drawing workbench"42
43def Initialize(self):44# load the module45import DrawingGui46
47def Activated(self):48FreeCAD.Console.PrintWarning(49"Drawing became obsolete in 0.17; " "consider using TechDraw instead.\n"50)51
52def GetClassName(self):53return "DrawingGui::Workbench"54
55
56Gui.addWorkbench(DrawingWorkbench())57
58# Append the open handler
59FreeCAD.addImportType("Drawing (*.svg *.svgz)", "DrawingGui")60FreeCAD.addExportType("Drawing (*.svg *.svgz *.dxf)", "DrawingGui")61