1 /* === S Y N F I G ========================================================= */
2 /*! \file tool/definitions.h
3 ** \brief Definitions for synfig tool
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 ** Copyright (c) 2007, 2008 Chris Moore
11 ** This package is free software; you can redistribute it and/or
12 ** modify it under the terms of the GNU General Public License as
13 ** published by the Free Software Foundation; either version 2 of
14 ** the License, or (at your option) any later version.
16 ** This package is distributed in the hope that it will be useful,
17 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 ** General Public License for more details.
22 /* ========================================================================= */
24 #ifndef __SYNFIG_DEFINITIONS_H
25 #define __SYNFIG_DEFINITIONS_H
27 /* === M A C R O S ========================================================= */
31 #define _(x) gettext(x)
40 SYNFIGTOOL_FILENOTFOUND = 1,
43 SYNFIGTOOL_UNKNOWNARGUMENT = 4,
44 SYNFIGTOOL_UNKNOWNERROR = 5,
45 SYNFIGTOOL_INVALIDTARGET = 6,
46 SYNFIGTOOL_RENDERFAILURE = 7,
48 SYNFIGTOOL_BADVERSION = 9,
49 SYNFIGTOOL_MISSINGARGUMENT =10
53 #define VERSION "unknown"
54 #define PACKAGE "synfig-tool"
57 #ifdef DEFAULT_QUALITY
58 #undef DEFAULT_QUALITY
61 #define DEFAULT_QUALITY 2
62 #define VERBOSE_OUT(x) if(verbosity>=(x))std::cerr
64 /* === G L O B A L S ======================================================= */
66 extern const char *progname;
69 extern bool print_benchmarks;