Fix typo in license headers
[oweals/cde.git] / cde / programs / dtmail / include / DtMail / AliasListUiItem.hh
1 /* $XConsortium: AliasListUiItem.hh /main/4 1996/04/21 19:44:13 drk $ */
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 #include <stdlib.h>
21 #include <X11/Intrinsic.h>
22
23 #ifndef _ALIASLISTUIITEM_HH
24 #define _ALIASLISTUIITEM_HH
25
26 #ifdef DEAD_WOOD
27 extern void handleDoubleSelection(Widget w, XtPointer clientdata, XtPointer calldata);
28 #endif /* DEAD_WOOD */
29
30 // CLASS AliasListUiItem
31 // derived class for prop sheet glue items for textfield
32 ///////////////////////////////////////////////////////////
33 class AliasListUiItem : public ListUiItem {
34   
35 public:
36   AliasListUiItem(Widget w, int source, char *search_key, Widget w_k, Widget w_v);
37   virtual ~AliasListUiItem(){;}; // we don't alloc any memory
38   virtual void writeFromUiToSource();
39   virtual void writeFromSourceToUi();
40   Widget getKeyWidget(){ return key_widget;};
41   Widget getValueWidget(){ return value_widget;};
42   DtVirtArray<PropStringPair *> *getItemList(){ return list_items; };
43
44   virtual void handleAddButtonPress();
45   virtual void handleChangeButtonPress();
46   virtual void handleDeleteButtonPress();
47
48 private:
49
50   DtVirtArray<PropStringPair *> *list_items;
51   DtVirtArray<char *> *deleted_items;
52
53   Widget key_widget;
54   Widget value_widget;
55 };
56
57 #endif