1 /* $TOG: PropUi.hh /main/9 1998/02/17 13:45:35 mgreess $ */
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.
20 #include "PropSource.hh"
25 // This class is the 'glue' between the mail back end and the Props GUI as
26 // generated by dtbuilder
29 // defines the type of item one wishes to create
37 _INDEXED_OPTIONMENU_ITEM
40 // defines the possible sources for props variables
48 // Base class for Prop sheet item glue list elements
49 ///////////////////////////////////////////////////////////
53 typedef char* (*PropUiCallback)(PropUiItem*, void*);
59 PropUiCallback validator = NULL,
60 void * validator_data = NULL);
61 virtual ~PropUiItem();
63 Widget getWidget(){ return prop_widget; };
64 virtual char * uiValueIsValid();
65 virtual void writeFromUiToSource() = 0;
66 virtual void writeFromSourceToUi() = 0;
67 Boolean getDirtyBit(){ return dirty_bit; };
68 void setDirtyBit(Boolean db) { dirty_bit = db; };
69 char *getKey(){ return key; };
70 PropSource *getPropSource(){ return prop_source; };
75 PropSource *prop_source;
81 PropUiCallback _uiValueValidator;
82 void *_uiValueValidatorData;