OSDN Git Service

Merge branch 'post-2.4.2'
[tjqt4port/tj2qt4.git] / taskjuggler / tjlib-internal.h
1 /*
2  * tjlib-internal.h - TaskJuggler
3  *
4  * Copyright (c) 2002 by Chris Schlaeger <cs@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of version 2 of the GNU General Public License as
8  * published by the Free Software Foundation.
9  *
10  * $Id$
11  */
12 #ifndef _tjlib_internal_h_
13 #define _tjlib_internal_h_
14
15 // TODO: For proper internationalization we have to fix this.
16 #ifndef I18N_NOOP
17 #define I18N_NOOP(x) (x)
18 #endif
19
20 #ifndef i18n
21 #define i18n(x) QString(x)
22 #endif
23
24 // Dummy macro to mark TaskJuggler syntax keywords
25 #define KW(a) a
26
27 #include <qstring.h>
28
29 inline void
30 tjWarning(const QString& msg)
31 {
32     qWarning("%s", msg.latin1());
33 }
34
35 inline void
36 tjDebug(const QString& msg)
37 {
38     qDebug("%s", msg.latin1());
39 }
40
41 #endif
42