/***********************************************************************
 *
 *	Copyright (c) Geoworks 1992-96 -- All Rights Reserved.
 *
 * PROJECT:	GEOS Sample Applications
 * MODULE:	HelpTrig C Sample App
 * FILE:	helptrig.goc
 *
 * AUTHOR:  	Gene Anderson: Dec  8, 1992
 *
 * REVISION HISTORY:
 *      Name    Date            Description
 *      ----    ----            -----------
 *      gene    12/8/92         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.
 *
 * RCS STAMPS:
 *	$Id: helptrig.goc,v 1.1 97/04/04 16:38:54 newdeal Exp $
 *
 ***********************************************************************/

/*
 ***************************************************************************
 *		Include files
 ***************************************************************************
 */

@include <stdapp.goh>

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

@class HelpTrigProcessClass, GenProcessClass;
@endc;

@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;

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

@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;

