 
#ifndef dialog_DEFINED
#define dialog_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from dialog.ch and will be
 * overwritten.  Make changes to dialog.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from dialog.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1991 - All Rights Reserved           *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/

#include <sbutton.ih>
#define dialog_DS_VERSION 5







/* 
 * End of information copied from dialog.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_dataobject
#include "dataobj.ih"
#undef dontDefineRoutinesFor_dataobject

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for dialog 
 */ 
struct dialog { 
    union {
	struct basicobject_methods *dialog_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
    } header;
    struct text *text;
    struct sbutton *buttons;
    struct sbutton_prefs *prefs;

};

 
/* 
 * End of data structure for dialog.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef dialog_PROGRAMMERVERSION
#define dialog_PROGRAMMERVERSION 1
#endif /* dialog_PROGRAMMERVERSION */

#ifdef dialog_VERSION
#undef dialog_VERSION
#endif /* dialog_VERSION */
#define dialog_VERSION ((((dialog_PROGRAMMERVERSION << 16) ^ (27 << 8) ^ sizeof(struct dialog)) & 0x7ffff) + 0x80000 + (2 << 20))


#endif /* class_StaticInfoOnly */
#define dialog_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *dialog__GetClassInfo(); \
 extern struct classheader *dialog_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, dialog_classheader_StaticExport->name, dialog__GetClassInfo, NULL, dialog_classheader_StaticExport->namekey); } 
 
#define dialog_StaticLoad()  \
    { \
    dataobject_StaticLoad(); \
    dialog_StaticLoadOnlyThisClass();  \
    } 
 
#define dialog_StaticEntry  {dialog_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader dialog_classheader = {
    dialog_VERSION,
    "dialog",
    "dialog",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define dialog_CLASSPROCEDURES (dialog_classheader.classprocedures)
int dialog_classref_;
#endif /* class_StaticInfoOnly */

#endif /* dialog_DEFINED */

#if !defined(dialog_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_dialog) && !defined(class_StaticEntriesOnly)
#define dialog_ROUTINESDEFINED

#define dialog_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define dialog_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define dialog_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define dialog_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[0]))) (self,observer))
#define dialog_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.dialog_methods->routines[1]))) (self,observer))
#define dialog_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[2]))) (self,observer))
#define dialog_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[3]))) (self,value))
#define dialog_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[4]))) (self,changed,value))
#define dialog_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.dialog_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define dialog_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[6]))) (self,trigger,rcvr))
#define dialog_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[7]))) (self,trigger))
#define dialog_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[8]))) (self,trigger))
#define dialog_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[9]))) (self,trigger))
#define dialog_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.dialog_methods->routines[10]))) (self,trigger))
#define dialog_Read(self,file,id) \
    ((* ((long (*)())((self)->header.dialog_methods->routines[11]))) (self,file,id))
#define dialog_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.dialog_methods->routines[12]))) (self,file,writeid,level))
#define dialog_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.dialog_methods->routines[13]))) (self,file,fmt,encoding,description))
#define dialog_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.dialog_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define dialog_GetModified(self) \
    ((* ((long (*)())((self)->header.dialog_methods->routines[15]))) (self))
#define dialog_SetModified(self) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[16]))) (self))
#define dialog_ViewName(self) \
    ((* ((char * (*)())((self)->header.dialog_methods->routines[17]))) (self))
#define dialog_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[18]))) (self,attributes))
#define dialog_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[19]))) (self,property,type,rock))
#define dialog_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.dialog_methods->routines[20]))) (self,property,type,rock))
#define dialog_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.dialog_methods->routines[21]))) (self,array,size))
#define dialog_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[22]))) (self,oldmodified))
#define dialog_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define dialog_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define dialog_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define dialog_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define dialog_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define dialog_GetStyle(self) \
 (sbutton_GetStyle((self)->prefs))
#define dialog_GetText(self) \
 (((self))->text)
#define dialog_GetButtons(self) \
 (((self))->buttons)
#define dialog_GetHitFunc(self) \
 (((self))->buttons->hitfunc)
#define dialog_GetPrefs(self) \
 (((self))->prefs)
#define dialog_SetButtons(self,buttons) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[23]))) (self,buttons))
#define dialog_GetForeground(self) \
    ((* ((char * (*)())((self)->header.dialog_methods->routines[24]))) (self))
#define dialog_GetBackground(self) \
    ((* ((char * (*)())((self)->header.dialog_methods->routines[25]))) (self))
#define dialog_SetText(self,text) \
    ((* ((void (*)())((self)->header.dialog_methods->routines[26]))) (self,text))

#define dialog_NewFromObject(self) \
    ((* ((struct dialog * (*)())((self)->header.dialog_methods->info->procs->routines[0]))) (&dialog_classheader, (self)->header.dialog_methods->info->versionnumber))
#define dialog_New() \
    (*((struct dialog * (*)()) (dialog_CLASSPROCEDURES->routines[0])))(&dialog_classheader,dialog_VERSION)
#define dialog_Initialize(self) \
    (*((void (*)()) (dialog_CLASSPROCEDURES->routines[2])))(&dialog_classheader,self, dialog_VERSION)

#define dialog_Destroy(self) \
    ((* ((void (*)()) ((self)->header.dialog_methods->info->procs->routines[1]))) (&dialog_classheader, self))
#define dialog_Finalize(self) \
    (*((void (*)()) (dialog_CLASSPROCEDURES->routines[3])))(&dialog_classheader,self)

#define dialog_InitializeObject(self) \
    (*((boolean (*)()) (dialog_CLASSPROCEDURES->routines[5])))(&dialog_classheader,self)
#define dialog_FinalizeObject(self) \
    (*((void (*)()) (dialog_CLASSPROCEDURES->routines[6])))(&dialog_classheader,self)
#define dialog_InitializeClass() \
    (*((boolean (*)()) (dialog_CLASSPROCEDURES->routines[7])))(&dialog_classheader)


#endif /* !defined(dialog_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_dialog ) && !defined(class_StaticEntriesOnly)*/

