/***********************************************************************
 *
 *	Copyright (c) Geoworks 1992 -- All Rights Reserved
 *
 * PROJECT:	  GEOS
 * MODULE:	  helptrig.goc
 * FILE:	  helptrig.goc
 *
 * AUTHOR:  	  Gene Anderson: Dec  8, 1992
 *
 * ROUTINES:
 *	Name	  	    Description
 *	----	  	    -----------
 *
 * REVISION HISTORY:
 *	Date	  Name	    Description
 *	----	  ----	    -----------
 *	12/ 8/92  gene	    Initial version
 *
 * DESCRIPTION:
 *	Sample C file for showing how to use help in an application
 *
 *	Note that Zoomer dialog boxes do not have help triggers, so
 *	this app does not function fully on Zoomer.
 *
 *	$Id: helptrig.goc,v 1.3.7.3 94/01/22 21:39:32 jenny Exp $
 *
 ***********************************************************************/
/*
 ***************************************************************************
 *		Include files
 ***************************************************************************
 */

@include <stdapp.goh>

/*
 ***************************************************************************
 *		Class & Message Definitions
 ***************************************************************************
 */

@class	HelpTrigProcessClass, GenProcessClass ; ;

@endc   /* end of class definition */

@classdecl	HelpTrigProcessClass, neverSaved ; ;

/*
 ***************************************************************************
 *		UI Objects
 ***************************************************************************
 */

@start	AppResource ; ;

@object GenApplicationClass HelpTrigApp = {

    GI_visMoniker = list { @HelpTrigTextMoniker }

    GI_comp = @HelpTrigPrimary;

    gcnList(MANUFACTURER_ID_GEOWORKS,GAGCNLT_WINDOWS) =
	@HelpTrigPrimary;
}

@visMoniker HelpTrigTextMoniker = "C Sample App: Help Triggers";

@end	AppResource

@start	Interface		/* this resource is for misc UI objects */ ; ;

@object GenPrimaryClass HelpTrigPrimary  = {

    GI_comp = @Menu1, @Menu2;
    HINT_PRIMARY_FULL_SCREEN;
    ATTR_GEN_HELP_CONTEXT = "TOC";
}

/* --------------------------------------------------------------------------*/

@object GenInteractionClass Menu1 = {
	GI_visMoniker = '1', "Menu 1";
	GI_comp =
		@DB1,
		@DB2;
	GII_visibility = GIV_POPUP;
}

@object GenInteractionClass DB1 = {
	GI_visMoniker = '1', "Dialog #1";
	GII_visibility = GIV_DIALOG;
	GII_type = GIT_COMMAND;
	GI_comp =
		@RandomObject1;
	ATTR_GEN_HELP_CONTEXT = "dbDialog1";
}

@object GenTextClass RandomObject1 = {
	GTXI_text = "your objects go here";
}

@object GenInteractionClass DB2 = {
	GI_visMoniker = '2', "Dialog #2";
	GII_visibility = GIV_DIALOG;
	GII_type = GIT_COMMAND;
	GI_comp =
		@RandomObject2;
	ATTR_GEN_HELP_CONTEXT = "dbDialog2";
	HINT_INTERACTION_MODAL;
}

@object GenTextClass RandomObject2 = {
	GTXI_text = "more objects, but in a modal DB";
}

/* --------------------------------------------------------------------------*/

@object GenInteractionClass Menu2 = {
	GI_visMoniker = '2', "Menu 2";
	GI_comp =
		@DB3;
	GII_visibility = GIV_POPUP;
}

@object GenInteractionClass DB3 = {
	GI_visMoniker = '3', "Dialog #3";
	GII_visibility = GIV_DIALOG;
	GII_type = GIT_PROPERTIES;
	GI_comp =
		@RandomObject3;
	ATTR_GEN_HELP_CONTEXT = "dbDialog3";
}

@object GenValueClass RandomObject3 = {
	GI_visMoniker = "A GenValue";
}

@end Interface
