Salome HOME
sources v1.2
[modules/yacs.git] / src / SALOMEGUI / QAD.h
1 //  SALOME SALOMEGUI : implementation of desktop and GUI kernel
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : QAD.h
25 //  Module : SALOME
26
27 /***********************************************************
28 **  File:    QAD.h
29 **  Descr:   General definitions for QAD
30 **  Created: UI team, 20.09.00
31 ************************************************************/
32 #ifndef QAD_H
33 #define QAD_H
34
35 #include <assert.h>
36
37 #if defined QAD_DLL
38 #if defined WNT
39 #define QAD_EXPORT  _declspec( dllexport )
40 #else
41 #define QAD_EXPORT
42 #endif
43 #else
44 #if defined WNT
45 #define QAD_EXPORT  _declspec( dllimport )
46 #else
47 #define QAD_EXPORT  
48 #endif
49 #endif
50
51 #if defined SOLARIS
52 #define bool  int
53 #define false 0
54 #define true  1
55 #endif
56
57 #if defined WNT
58 #pragma warning ( disable: 4251 )
59 #endif
60
61 #if defined (_DEBUG) 
62 #define QAD_ASSERT(x)                   assert(x)
63 #define QAD_ASSERT_DEBUG_ONLY(x)        assert(x)
64
65 #else   /* _DEBUG */
66 #define QAD_ASSERT(x)                   x
67 #define QAD_ASSERT_DEBUG_ONLY(x)        
68 #endif
69
70 /*  Message box button's IDs */
71 #define QAD_OK                      1
72 #define QAD_CANCEL                  2
73 #define QAD_YES                     3
74 #define QAD_NO                      4
75 #define QAD_HELP                    5
76
77 #endif