1 /* $XConsortium: CustomListUiItem.hh /main/4 1996/04/21 19:44:33 drk $ */
5 * RESTRICTED CONFIDENTIAL INFORMATION:
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
15 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
21 #include <X11/Intrinsic.h>
23 #ifndef _CUSTOMLISTUIITEM_HH
24 #define _CUSTOMLISTUIITEM_HH
27 void handleDoubleSelection(Widget w, XtPointer clientdata, XtPointer calldata);
28 #endif /* DEAD_WOOD */
29 // CLASS CustomListUiItem
30 // derived class for prop sheet glue items for textfield
31 ///////////////////////////////////////////////////////////
32 class CustomListUiItem : public ListUiItem {
35 CustomListUiItem(Widget w, int source, char *search_key, Widget w_k, Widget w_v);
36 virtual ~CustomListUiItem(){;}; // we don't alloc any memory
37 virtual void writeFromUiToSource();
38 virtual void writeFromSourceToUi();
39 Widget getKeyWidget(){ return key_widget;};
40 Widget getValueWidget(){ return value_widget;};
41 DtVirtArray<PropStringPair *> *getItemList(){ return list_items; };
43 virtual void handleAddButtonPress();
44 virtual void handleChangeButtonPress();
45 virtual void handleDeleteButtonPress();
49 DtVirtArray<PropStringPair *> *list_items;
50 DtVirtArray<char *> *deleted_items;