Commit a99110f1 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

ProgInfo template updated, new methods added for URI/event handling.

parent f0021c4d
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
* Purpose: ProgInfo Objects * Purpose: ProgInfo Objects
* Author: Timothy G Roddis * Author: Timothy G Roddis
* History: 14-Feb-94: TGR: created * History: 14-Feb-94: TGR: created
* 12-Dec-97: SNB: Altered template and added new URI/event methods.
* *
*/ */
...@@ -49,6 +50,8 @@ ...@@ -49,6 +50,8 @@
#define ProgInfo_GenerateShowEvent 0x00000001 #define ProgInfo_GenerateShowEvent 0x00000001
#define ProgInfo_GenerateHideEvent 0x00000002 #define ProgInfo_GenerateHideEvent 0x00000002
#define ProgInfo_IncludeLicenceType 0x00000004 #define ProgInfo_IncludeLicenceType 0x00000004
#define ProgInfo_IncludeWebPageButton 0x00000008
#define ProgInfo_GenerateLaunchEvent 0x00000010
/* templates */ /* templates */
...@@ -62,7 +65,8 @@ typedef struct ...@@ -62,7 +65,8 @@ typedef struct
int licence_type; int licence_type;
char *version; char *version;
char *window; char *window;
char *uri;
int event;
} ProgInfoTemplate; } ProgInfoTemplate;
/* display field component IDs */ /* display field component IDs */
...@@ -74,6 +78,12 @@ typedef struct ...@@ -74,6 +78,12 @@ typedef struct
#define ProgInfo_DisplayField_Author (ProgInfo_ComponentIDBase + 2) #define ProgInfo_DisplayField_Author (ProgInfo_ComponentIDBase + 2)
#define ProgInfo_DisplayField_LicenceType (ProgInfo_ComponentIDBase + 3) #define ProgInfo_DisplayField_LicenceType (ProgInfo_ComponentIDBase + 3)
#define ProgInfo_DisplayField_Version (ProgInfo_ComponentIDBase + 4) #define ProgInfo_DisplayField_Version (ProgInfo_ComponentIDBase + 4)
#define ProgInfo_Label_Name (ProgInfo_ComponentIDBase + 5)
#define ProgInfo_Label_Purpose (ProgInfo_ComponentIDBase + 6)
#define ProgInfo_Label_Author (ProgInfo_ComponentIDBase + 7)
#define ProgInfo_Label_LicenceType (ProgInfo_ComponentIDBase + 8)
#define ProgInfo_Label_Version (ProgInfo_ComponentIDBase + 9)
#define ProgInfo_ActionButton_WebPage (ProgInfo_ComponentIDBase + 10)
/* ProgInfo Methods ******************************************************************************/ /* ProgInfo Methods ******************************************************************************/
...@@ -84,11 +94,16 @@ typedef struct ...@@ -84,11 +94,16 @@ typedef struct
#define ProgInfo_GetLicenceType 4 #define ProgInfo_GetLicenceType 4
#define ProgInfo_SetTitle 5 #define ProgInfo_SetTitle 5
#define ProgInfo_GetTitle 6 #define ProgInfo_GetTitle 6
#define ProgInfo_SetUri 7
#define ProgInfo_GetUri 8
#define ProgInfo_SetWebEvent 9
#define ProgInfo_GetWebEvent 10
/* ProgInfo Toolbox Events ***********************************************************************/ /* ProgInfo Toolbox Events ***********************************************************************/
#define ProgInfo_AboutToBeShown ProgInfo_SWIChunkBase #define ProgInfo_AboutToBeShown ProgInfo_SWIChunkBase
#define ProgInfo_DialogueCompleted (ProgInfo_SWIChunkBase + 1) #define ProgInfo_DialogueCompleted (ProgInfo_SWIChunkBase + 1)
#define ProgInfo_LaunchWebPage (ProgInfo_SWIChunkBase + 2)
typedef struct { typedef struct {
ToolboxEventHeader hdr; ToolboxEventHeader hdr;
...@@ -109,6 +124,10 @@ typedef struct { ...@@ -109,6 +124,10 @@ typedef struct {
ToolboxEventHeader hdr; ToolboxEventHeader hdr;
} ProgInfo_DialogueCompleted_Event; } ProgInfo_DialogueCompleted_Event;
typedef struct {
ToolboxEventHeader hdr;
} ProgInfo_LaunchWebPage_Event;
/* ProgInfo Errors *******************************************************************************/ /* ProgInfo Errors *******************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment