Fix typo in license headers
[oweals/cde.git] / cde / programs / dtmail / include / DtMail / IndexedOptionMenuUiItem.hh
1 /* $TOG: IndexedOptionMenuUiItem.hh /main/3 1997/11/07 15:44:49 mgreess $ */
2 /*
3  *+SNOTICE
4  *
5  *      RESTRICTED CONFIDENTIAL INFORMATION:
6  *      
7  *      The information in this document is subject to special
8  *      restrictions in a confidential disclosure agreement bertween
9  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
10  *      document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
11  *      Sun's specific written approval.  This documment and all copies
12  *      and derivative works thereof must be returned or destroyed at
13  *      Sun's request.
14  *
15  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
16  *
17  *+ENOTICE
18  */
19 /*
20  *                   Common Desktop Environment
21  *
22  *   (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
23  *   (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
24  *   (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
25  *   (c) Copyright 1993, 1994, 1995 Novell, Inc.
26  *   (c) Copyright 1995 Digital Equipment Corp.
27  *   (c) Copyright 1995 Fujitsu Limited
28  *   (c) Copyright 1995 Hitachi, Ltd.
29  *                                                                   
30  *
31  *                     RESTRICTED RIGHTS LEGEND                              
32  *
33  *Use, duplication, or disclosure by the U.S. Government is subject to
34  *restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
35  *Technical Data and Computer Software clause in DFARS 252.227-7013.  Rights
36  *for non-DOD U.S. Government Departments and Agencies are as set forth in
37  *FAR 52.227-19(c)(1,2).
38
39  *Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
40  *International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. 
41  *Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
42  *Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
43  *Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A.
44  *Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
45  *Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
46  */
47
48 #include <stdlib.h>
49 #include <X11/Intrinsic.h>
50
51 #include <DtMail/PropUi.hh>
52 #include "IndexedOptionMenu.h"
53
54 #ifndef _INDEXEDOPTIONMENUUIITEM_HH
55 #define _INDEXEDOPTIONMENUUIITEM_HH
56
57 // CLASS IndexedOptionMenuUiItem
58 // derived class for prop sheet glue items for option menu
59 ///////////////////////////////////////////////////////////
60 class IndexedOptionMenuUiItem : public PropUiItem {
61   
62 public:
63   IndexedOptionMenuUiItem(IndexedOptionMenu *iom, int source, char *search_key);
64   virtual ~IndexedOptionMenuUiItem(){;}; // we don't alloc any memory
65 #ifdef DEAD_WOOD
66   virtual int getType(){ return _INDEXED_OPTIONMENU_ITEM; };
67   virtual int getSource(){ return data_source; };
68 #endif /* DEAD_WOOD */
69   virtual void writeFromUiToSource();
70   virtual void writeFromSourceToUi();
71
72 private:
73   static void valueChangedCB(Widget, XtPointer, XtPointer);
74
75 #ifdef DEAD_WOOD
76   int data_source;
77 #endif /* DEAD_WOOD */
78   IndexedOptionMenu     *_iom;
79 };
80
81 #endif