~ubuntu-branches/ubuntu/jaunty/ncbi-tools6/jaunty

« back to all changes in this revision

Viewing changes to vibrant/vibincld.h

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2008-07-14 19:43:15 UTC
  • mfrom: (2.1.12 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080714194315-ed44u9ek7txva2rz
Tags: 6.1.20080302-3
tools/readdb.c: enable madvise()-based code on all glibc (hence all
Debian) systems, not just Linux.  (Closes: #490437.)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
*
30
30
* Version Creation Date:   7/1/91
31
31
*
32
 
* $Revision: 6.5 $
 
32
* $Revision: 6.8 $
33
33
*
34
34
* File Description: 
35
35
*       Vibrant inclusion of underlying windowing system toolbox functions,
41
41
* Date     Name        Description of modification
42
42
* -------  ----------  -----------------------------------------------------
43
43
*
44
 
*
45
 
* $Log: vibincld.h,v $
46
 
* Revision 6.5  2002/06/13 16:15:13  kans
47
 
* fix includes for OS_UNIX_DARWIN with WIN_MAC (EN) - still bug in vibutils.c file dialog
48
 
*
49
 
* Revision 6.4  2000/07/08 20:44:14  vakatov
50
 
* Get all "#include" out of the 'extern "C" { }' scope;  other cleanup...
51
 
*
52
 
* Revision 6.3  1999/06/22 15:14:54  lewisg
53
 
* fix image library so that works on linux with > 8 bits
54
 
*
55
 
* Revision 6.2  1999/04/06 14:23:25  lewisg
56
 
* add opengl replacement for viewer3d
57
 
*
58
 
* Revision 6.1  1998/07/14 16:44:27  vakatov
59
 
* Added VibrantIsGUI() and <internal> Nlm_VibrantSetGUI()
60
 
*
61
 
* Revision 6.0  1997/08/25 18:57:08  madden
62
 
* Revision changed to 6.0
63
 
*
64
 
* Revision 5.9  1997/07/23 19:36:12  vakatov
65
 
* [WIN_MSWIN] +Nlm_GetPicWinHDC proto
66
 
*
67
 
* Revision 5.8  1997/07/10 21:49:30  vakatov
68
 
* [WIN_X]  Now able to manage windows having different depths(and
69
 
* different visuals and GC).
70
 
*
71
 
* Revision 5.7  1997/06/09 18:07:39  vakatov
72
 
* Removed "Nlm_fontList" declaration(it's now static in "ncbidraw.c")
73
 
* [WIN_MOTIF]  Added Nlm_XAllocColor() prototype
74
 
*
75
 
* Revision 5.6  1997/04/25 16:09:33  vakatov
76
 
* [WIN_MOTIF,WIN_MSWIN]  Added functions to catch, convert(to Mac keycodes)
77
 
* and process navigation and special keys
78
 
*
79
 
 * Revision 5.5  1997/04/17  16:17:50  kans
80
 
 * InitForms and FreeForms added
81
 
 *
82
 
 * Revision 5.4  1997/02/13  21:34:37  vakatov
83
 
 * [WIN_MOTIF]  #define NLM_MOTIF_CASCADEB_BUG -- workaround the Motif bug
84
 
 *
85
 
 * Revision 5.3  1997/01/28  22:03:51  kans
86
 
 * changed <GestaltEqu.h> to <Gestalt.h> for CodeWarrior
87
 
 *
88
 
 * Revision 5.2  1996/10/28  19:31:19  vakatov
89
 
 * [WIN_MOTIF]  Added prototypes for functions Nlm_VibrantDefaultColormap()
90
 
 * and Nlm_XrmGetResource()
91
 
 *
92
 
 * Revision 5.1  1996/08/27  20:52:53  vakatov
93
 
 * Added Nlm_HorizScrollBar4() and Nlm_VertScrollBar4() prototypes -- to
94
 
 * create Int4-range scrollbars
95
 
 *
96
 
 * Revision 5.0  1996/05/28  13:45:08  ostell
97
 
 * Set to revision 5.0
98
 
 *
99
 
 * Revision 4.2  1996/03/12  22:34:37  epstein
100
 
 * add shellapi for Drag-And-Drop support
101
 
 *
102
 
 * Revision 4.1  1996/02/13  17:24:07  kans
103
 
 * accelerated set position prior to realization (Denis Vakatov)
104
 
 *
105
 
 * Revision 4.0  1995/07/26  13:51:04  ostell
106
 
 * force revision to 4.0
107
 
 *
108
 
 * Revision 2.21  1995/07/17  22:02:19  kans
109
 
 * Motif clipboard cut and paste supported (AS)
110
 
 *
111
 
 * Revision 2.20  1995/05/31  18:00:58  kans
112
 
 * added <Palettes.h>
113
 
 *
114
 
 * Revision 2.19  1995/05/17  15:15:14  kans
115
 
 * added Log line
116
 
 *
117
 
*
118
44
* ==========================================================================
119
45
*/
120
46
 
138
64
#define Nlm_HandleTool Handle
139
65
#define Nlm_PointTool Point
140
66
#define Nlm_RectTool Rect
 
67
        
 
68
#ifdef WIN_MAC_QUARTZ
 
69
#define Nlm_RgnTool HIMutableShapeRef
 
70
#else
141
71
#define Nlm_RgnTool RgnHandle
142
72
#endif
143
73
 
 
74
#endif
 
75
 
144
76
#ifdef WIN_MSWIN
145
77
#define Nlm_HandleTool HANDLE
146
78
#define Nlm_PointTool POINT
282
214
 
283
215
 
284
216
 
285
 
#ifdef WIN_MAC
 
217
#if defined(WIN_MAC)
 
218
#if defined(WIN_MAC_QUARTZ)
 
219
#define Nlm_WindowTool  WindowPtr
 
220
#define Nlm_PortTool    CGContextRef
 
221
#define Nlm_ShellTool   Nlm_Handle
 
222
#define Nlm_MainTool    Nlm_Handle
 
223
#define Nlm_ColorMTool  PaletteHandle
 
224
#else
286
225
#define Nlm_WindowTool  WindowPtr
287
226
#define Nlm_PortTool    GrafPtr
288
227
#define Nlm_ShellTool   Nlm_Handle
289
228
#define Nlm_MainTool    Nlm_Handle
290
229
#define Nlm_ColorMTool  PaletteHandle
291
230
#endif
 
231
#endif
292
232
 
293
233
#ifdef WIN_MSWIN
294
234
#define Nlm_WindowTool  HWND
520
460
 
521
461
void        Nlm_VibrantSetGUI PROTO((void));
522
462
 
 
463
#if defined(WIN_MAC) && defined(WIN_MAC_QUARTZ)
 
464
CGRect      Nlm_RecTToCGRect(Nlm_RecT r);
 
465
Nlm_RecT    Nlm_CGRectToRecT(CGRect cgr);
 
466
CGRect      Nlm_RectQDToCG(Rect r);
 
467
Rect        Nlm_RectCGToQD(CGRect r);
 
468
CGPoint     Nlm_PoinTToCGPoint(Nlm_PoinT np);
 
469
Nlm_PoinT   Nlm_CGPointToPoinT(CGPoint qp);
 
470
#endif
 
471
 
523
472
#ifdef WIN_MSWIN
524
473
extern  Nlm_Boolean Nlm_VibrantDisabled PROTO((void));
525
474
extern  HDC         Nlm_GetPicWinHDC    PROTO((void));
548
497
   /** includes needed by vibwndws.c ***/
549
498
 
550
499
#ifdef WIN_MAC
 
500
#ifdef __MWERKS__
551
501
#include <Resources.h>
552
502
#include <Scrap.h>
553
503
#include <AppleEvents.h>
554
504
#include <Gestalt.h>
555
505
#endif
 
506
#endif
556
507
 
557
508
#ifdef WIN_MSWIN
558
509
#include <shellapi.h>
565
516
  /** includes needed by vibutils.c ***/
566
517
 
567
518
#ifdef WIN_MAC
 
519
#ifdef __MWERKS__
568
520
#ifndef OS_UNIX_DARWIN
569
521
#include <Printing.h>
570
522
#endif
574
526
#include <AppleEvents.h>
575
527
#include <Palettes.h>
576
528
#endif
 
529
#endif
577
530
 
578
531
#ifdef WIN_MSWIN
579
532
#include <commdlg.h>