Bump version numbers for RC1
[synfig.git] / synfig-core / src / tool / definitions.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file tool/definitions.h
3 **      \brief Definitions for synfig tool
4 **
5 **      $Id$
6 **
7 **      \legal
8 **      Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 **      Copyright (c) 2007, 2008 Chris Moore
10 **
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.
15 **
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.
20 **      \endlegal
21 */
22 /* ========================================================================= */
23
24 #ifndef __SYNFIG_DEFINITIONS_H
25 #define __SYNFIG_DEFINITIONS_H
26
27 /* === M A C R O S ========================================================= */
28
29 #ifdef ENABLE_NLS
30 #undef _
31 #define _(x) gettext(x)
32 #else
33 #undef _
34 #define _(x) (x)
35 #endif
36
37 enum exit_code
38 {
39         SYNFIGTOOL_OK                           = 0,
40         SYNFIGTOOL_FILENOTFOUND         = 1,
41         SYNFIGTOOL_BORED                        = 2,
42         SYNFIGTOOL_HELP                         = 3,
43         SYNFIGTOOL_UNKNOWNARGUMENT      = 4,
44         SYNFIGTOOL_UNKNOWNERROR         = 5,
45         SYNFIGTOOL_INVALIDTARGET        = 6,
46         SYNFIGTOOL_RENDERFAILURE        = 7,
47         SYNFIGTOOL_BLANK                        = 8,
48         SYNFIGTOOL_BADVERSION           = 9,
49         SYNFIGTOOL_MISSINGARGUMENT      =10
50 };
51
52 #ifndef VERSION
53 #define VERSION "unknown"
54 #define PACKAGE "synfig-tool"
55 #endif
56
57 #ifdef DEFAULT_QUALITY
58 #undef DEFAULT_QUALITY
59 #endif
60
61 #define DEFAULT_QUALITY         2
62 #define VERBOSE_OUT(x) if(verbosity>=(x))std::cerr
63
64 /* === G L O B A L S ======================================================= */
65
66 extern const char *progname;
67 extern int verbosity;
68 extern bool be_quiet;
69 extern bool print_benchmarks;
70
71 #endif