Import/InitGui.py

Go to the documentation of this file.
00001 # Import gui init module  
00002 # (c) 2003 Juergen Riegel
00003 #
00004 # Gathering all the information to start FreeCAD
00005 # This is the second one of three init scripts, the third one
00006 # runs when the gui is up
00007 
00008 #***************************************************************************
00009 #*   (c) Juergen Riegel (juergen.riegel@web.de) 2002                       *
00010 #*                                                                         *
00011 #*   This file is part of the FreeCAD CAx development system.              *
00012 #*                                                                         *
00013 #*   This program is free software; you can redistribute it and/or modify  *
00014 #*   it under the terms of the GNU General Public License (GPL)            *
00015 #*   as published by the Free Software Foundation; either version 2 of     *
00016 #*   the License, or (at your option) any later version.                   *
00017 #*   for detail see the LICENCE text file.                                 *
00018 #*                                                                         *
00019 #*   FreeCAD is distributed in the hope that it will be useful,            *
00020 #*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00021 #*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00022 #*   GNU Library General Public License for more details.                  *
00023 #*                                                                         *
00024 #*   You should have received a copy of the GNU Library General Public     *
00025 #*   License along with FreeCAD; if not, write to the Free Software        *
00026 #*   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  *
00027 #*   USA                                                                   *
00028 #*                                                                         *
00029 #*   Juergen Riegel 2002                                                   *
00030 #***************************************************************************/
00031 
00032 
00033 """
00034 class ImportWorkbench ( Workbench ):
00035         "Import workbench object"
00036         def Activate(self):
00037                 # load the module
00038                 try:
00039                         Log ('Loading ImportGui module')
00040                         import Import
00041                         import ImportGui
00042                 except:
00043                         Err('Cannot load ImportGui')
00044                         raise
00045         def GetIcon(self):
00046                 # returns an icon for the workbench
00047                 return ["/* XPM */\n"
00048                         "static const char *fileopen[] = {\n"
00049                         "\"16 13 5 1\",\n"
00050                         "\". c #040404\",\n"
00051                         "\"# c #808304\",\n"
00052                         "\"a c None\",\n"
00053                         "\"b c #f3f704\",\n"
00054                         "\"c c #f3f7f3\",\n"
00055                         "\"aaaaaaaaa...aaaa\",\n"
00056                         "\"aaaaaaaa.aaa.a.a\",\n"
00057                         "\"aaaaaaaaaaaaa..a\",\n"
00058                         "\"a...aaaaaaaa...a\",\n"
00059                         "\".bcb.......aaaaa\",\n"
00060                         "\".cbcbcbcbc.aaaaa\",\n"
00061                         "\".bcbcbcbcb.aaaaa\",\n"
00062                         "\".cbcb...........\",\n"
00063                         "\".bcb.#########.a\",\n"
00064                         "\".cb.#########.aa\",\n"
00065                         "\".b.#########.aaa\",\n"
00066                         "\"..#########.aaaa\",\n"
00067                         "\"...........aaaaa\"};\n"]
00068 
00069 Gui.addWorkbench("Import",ImportWorkbench())
00070 """

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