Digest/digest.h

Go to the documentation of this file.
00001 /*  -*- c++ -*-  (for Emacs)
00002  *
00003  *  digest.h
00004  *  Digest
00005  *
00006  *  Nodal file:
00007  *
00008  *    digest.h
00009  *    Nodal
00010  *
00011  *    Created by Aidan Lane on Thu Mar 31 2005.
00012  *    Copyright (c) 2005 CEMA, Monash University. All rights reserved.
00013  *
00014  *  This program is free software; you can redistribute it and/or modify
00015  *  it under the terms of the GNU General Public License as published by
00016  *  the Free Software Foundation; either version 2 of the License, or
00017  *  (at your option) any later version.
00018  *
00019  *  This program 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 General Public License for more details.
00023  *
00024  *  You should have received a copy of the GNU General Public License
00025  *  along with this program; if not, write to the Free Software
00026  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00027  */
00028 
00029 #ifndef DIGEST_H
00030 #define DIGEST_H
00031 
00032 
00033 #include <QString>
00034 
00035 
00036 namespace Digest {
00037 
00041   enum Tool {
00042     SelectionTool,
00043     ZoomTool,
00044     ShapeTool,
00045     PolygonTool,
00046     PolylineTool,
00047     TextTool
00048   };
00049 
00050 
00051   /*
00052    * Note: Variables have been used instead of macros here, as it will reduce
00053    *       the memory footprint and given that QString is implicitly shared,
00054    *       there is very little CPU cost in copying them.
00055    */
00056 
00057   static const QString appName = "Digest";
00058 
00059   static const QString orgName = (
00060 #ifdef Q_WS_MAC
00061                                   "monash.edu" // suit Mac OS X prefs
00062 #else
00063                                   "Monash"
00064 #endif
00065                                   );
00066   static const QString filenameExtension = "dig";
00067 
00068   static const QString settingsDiagramKey = "Diagram";
00069   static const QString settingsDiagramRecogEnabledKey = "Diagram/RecogEnabled";
00070   static const QString settingsDiagramRecogIdKey      = "Diagram/RecogId";
00071 };
00072 
00073 
00074 
00075 #endif  // ! DIGEST_H

Generated on Mon Jul 30 09:46:50 2007 for Digest by  doxygen 1.5.2