home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / XfeWidgets / Xfe / ComboBox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.2 KB  |  92 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18. /*-----------------------------------------*/
  19. /*                                                                        */
  20. /* Name:        <Xfe/ComboBox.h>                                        */
  21. /* Description:    XfeComboBox widget public header file.                    */
  22. /* Author:        Ramiro Estrugo <ramiro@netscape.com>                    */
  23. /*                                                                        */
  24. /*----------------------------------------------------------------------*/
  25.  
  26.  
  27. #ifndef _XfeComboBox_h_                            /* start ComboBox.h        */
  28. #define _XfeComboBox_h_
  29.  
  30. #include <Xfe/Manager.h>
  31.  
  32. #ifdef __cplusplus                                /* start C++            */
  33. extern "C" {
  34. #endif
  35.  
  36. /*----------------------------------------------------------------------*/
  37. /*                                                                        */
  38. /* XmRComboBoxType                                                        */
  39. /*                                                                        */
  40. /*----------------------------------------------------------------------*/
  41. enum
  42. {
  43.     XmCOMBO_BOX_EDITABLE,                        /*                        */
  44.     XmCOMBO_BOX_READ_ONLY                        /*                        */
  45. };
  46. /*----------------------------------------------------------------------*/
  47.  
  48. /*----------------------------------------------------------------------*/
  49. /*                                                                        */
  50. /* XfeBox class names                                                    */
  51. /*                                                                        */
  52. /*----------------------------------------------------------------------*/
  53. externalref WidgetClass xfeComboBoxWidgetClass;
  54.  
  55. typedef struct _XfeComboBoxClassRec *            XfeComboBoxWidgetClass;
  56. typedef struct _XfeComboBoxRec *                XfeComboBoxWidget;
  57.  
  58. /*----------------------------------------------------------------------*/
  59. /*                                                                        */
  60. /* XfeBox subclass test macro                                            */
  61. /*                                                                        */
  62. /*----------------------------------------------------------------------*/
  63. #define XfeIsComboBox(w)    XtIsSubclass(w,xfeComboBoxWidgetClass)
  64.  
  65. /*----------------------------------------------------------------------*/
  66. /*                                                                        */
  67. /* XfeComboBox public methods                                            */
  68. /*                                                                        */
  69. /*----------------------------------------------------------------------*/
  70. extern Widget
  71. XfeCreateComboBox                (Widget        pw,
  72.                                  String        name,
  73.                                  Arg *        av,
  74.                                  Cardinal    ac);
  75. /*----------------------------------------------------------------------*/
  76. extern void
  77. XfeComboBoxAddItem                (Widget        w,
  78.                                  XmString    item,
  79.                                  int        position);
  80. /*----------------------------------------------------------------------*/
  81. extern void
  82. XfeComboBoxAddItemUnique        (Widget        w,
  83.                                  XmString    item,
  84.                                  int        position);
  85. /*----------------------------------------------------------------------*/
  86.  
  87. #ifdef __cplusplus                                /* end C++                */
  88. }
  89. #endif
  90.  
  91. #endif                                            /* end ComboBox.h        */
  92.