~ubuntu-branches/ubuntu/maverick/ncbi-tools6/maverick

« back to all changes in this revision

Viewing changes to vibrant/vibprocs.h

  • Committer: Bazaar Package Importer
  • Author(s): Aaron M. Ucko
  • Date: 2005-03-27 12:00:15 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050327120015-embhesp32nj73p9r
Tags: 6.1.20041020-3
* Fix FTBFS under GCC 4.0 caused by inconsistent use of "static" on
  functions.  (Closes: #295110.)
* Add a watch file, now that we can.  (Upstream's layout needs version=3.)

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.19 $
 
32
* $Revision: 6.28 $
33
33
*
34
34
* File Description: 
35
35
*       Vibrant procedure definitions
37
37
* Modifications:  
38
38
* --------------------------------------------------------------------------
39
39
* $Log: vibprocs.h,v $
 
40
* Revision 6.28  2004/04/01 13:43:09  lavr
 
41
* Spell "occurred", "occurrence", and "occurring"
 
42
*
 
43
* Revision 6.27  2004/02/23 16:36:51  sinyakov
 
44
* Use Int4 instead of Int2 for cursor position and text selection in text boxes
 
45
*
 
46
* Revision 6.26  2004/02/12 20:05:26  bazhin
 
47
* Added callback function "Nlm_SetKeepCrNlTextFieldCallback(Nlm_TexT t)",
 
48
* which allows to copy-paste texts from multiple columns to single string.
 
49
*
 
50
* Revision 6.25  2004/02/05 16:25:06  kans
 
51
* revert to Nlm_GetTextVScrollBar and Nlm_GetTextHScrollBar being static, implement setOffset and getOffset for scroll text, since Windows scroll text has its own scroll bar
 
52
*
 
53
* Revision 6.24  2004/02/04 15:21:02  kans
 
54
* make GetTextVScrollBar and GetTextHScrollBar extern, to add search function to general text viewer
 
55
*
 
56
* Revision 6.23  2004/01/05 17:08:09  kans
 
57
* added functions to control use of dual screens
 
58
*
 
59
* Revision 6.22  2003/10/29 19:19:34  kans
 
60
* added prototype for Nlm_SetTextColor
 
61
*
 
62
* Revision 6.21  2002/04/30 18:25:12  bazhin
 
63
* Added function "Nlm_SetWindowConfigureCallback(WindoW w)", which
 
64
* allows to catch events, when window just moved without resizing.
 
65
* Fixed some "gcc -Wall -ansi" warnings.
 
66
*
 
67
* Revision 6.20  2002/01/09 15:23:54  kans
 
68
* added HasAquaMenuLayout
 
69
*
40
70
* Revision 6.19  2001/09/10 17:34:33  bazhin
41
71
* Added function Nlm_SetTextCursorBlinkRate(Nlm_TexT t, Nlm_Int2 msec).
42
72
*
325
355
void        Nlm_SetWindowExtra PROTO((Nlm_WindoW w, Nlm_VoidPtr data, Nlm_WndFreeProc cleanup));
326
356
Nlm_VoidPtr Nlm_GetWindowExtra PROTO((Nlm_WindoW w));
327
357
 
 
358
void        Nlm_SetWindowConfigureCallback PROTO((Nlm_WindoW w));
 
359
 
 
360
/* Dual screen functions control centering where the window left parameter is negative */
 
361
 
 
362
Nlm_Boolean Nlm_HasDualScreen (void);
 
363
void Nlm_UseFullScreen (void);
 
364
void Nlm_UseLeftScreen (void);
 
365
void Nlm_UseRightScreen (void);
 
366
 
 
367
 
328
368
/***  GROUPING OBJECT  ***/
329
369
 
330
370
/*
418
458
void        Nlm_DeskAccGroup PROTO((Nlm_MenU m));
419
459
Nlm_ChoicE  Nlm_FontGroup PROTO((Nlm_MenU m));
420
460
void        Nlm_SeparatorItem PROTO((Nlm_MenU m));
 
461
Nlm_Boolean Nlm_HasAquaMenuLayout (void);
421
462
 
422
463
/***  Bar Object  ***/
423
464
 
515
556
 
516
557
/* return TRUE and selection range [begin,end] -- if there is a selection
517
558
 */
518
 
Nlm_Boolean Nlm_TextSelectionRange PROTO((Nlm_TexT t, Nlm_Int2Ptr begin, Nlm_Int2Ptr end));
 
559
Nlm_Boolean Nlm_TextSelectionRange PROTO((Nlm_TexT t, Nlm_Int4Ptr begin, Nlm_Int4Ptr end));
519
560
 
520
561
void      Nlm_CutText PROTO((Nlm_TexT t));
521
562
void      Nlm_CopyText PROTO((Nlm_TexT t));
523
564
void      Nlm_ClearText PROTO((Nlm_TexT t));
524
565
 
525
566
size_t    Nlm_TextLength PROTO((Nlm_TexT t));
526
 
void      Nlm_SelectText PROTO((Nlm_TexT t, Nlm_Int2 begin, Nlm_Int2 end));
 
567
void      Nlm_SelectText PROTO((Nlm_TexT t, Nlm_Int4 begin, Nlm_Int4 end));
527
568
void      Nlm_SetTextEditable PROTO((Nlm_TexT t, Nlm_Boolean editable));
528
569
void      Nlm_SetTextCursorBlinkRate PROTO((Nlm_TexT t, Nlm_Int2 msec));
 
570
void      Nlm_SetTextColor PROTO((Nlm_TexT t, Nlm_Uint4 r, Nlm_Uint4 g, Nlm_Uint4 b));
 
571
void      Nlm_SetKeepCrNlTextFieldCallback PROTO((Nlm_TexT t));
529
572
 
530
573
/* return the new insertion position in the text(it may differ from "pos"
531
 
 * if an error occured or "pos" is out of limits)
 
574
 * if an error occurred or "pos" is out of limits)
532
575
 */
533
 
Nlm_Int2  Nlm_SetTextCursorPos PROTO((Nlm_TexT t, Nlm_Int2 pos));
534
 
 
535
 
Nlm_Int2  Nlm_GetTextCursorPos PROTO((Nlm_TexT t));
 
576
Nlm_Int4  Nlm_SetTextCursorPos PROTO((Nlm_TexT t, Nlm_Int4 pos));
 
577
 
 
578
Nlm_Int4  Nlm_GetTextCursorPos PROTO((Nlm_TexT t));
 
579
 
536
580
 
537
581
 
538
582
/***  Static Prompt Objects  ***/
1222
1266
{
1223
1267
  Nlm_IO_READ,    /* file descriptor has data available    */
1224
1268
  Nlm_IO_WRITE,   /* file descriptor available for writing */
1225
 
  Nlm_IO_ERROR,   /* I/O error(exception) occured          */
 
1269
  Nlm_IO_ERROR,   /* I/O error(exception) occurred         */
1226
1270
  Nlm_IO_CLEANUP  /* when called from UnregisterIO()       */
1227
1271
} Nlm_IOtype;
1228
1272