Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
RiscOS
S
Sources
Toolbox
tboxlib
Commits
a99110f1
Commit
a99110f1
authored
27 years ago
by
Stewart Brodie
Browse files
Options
Download
Email Patches
Plain Diff
ProgInfo template updated, new methods added for URI/event handling.
parent
f0021c4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
objects/h/proginfo
objects/h/proginfo
+20
-1
No files found.
objects/h/proginfo
View file @
a99110f1
...
...
@@ -16,6 +16,7 @@
* Purpose: ProgInfo Objects
* Author: Timothy G Roddis
* History: 14-Feb-94: TGR: created
* 12-Dec-97: SNB: Altered template and added new URI/event methods.
*
*/
...
...
@@ -49,6 +50,8 @@
#define ProgInfo_GenerateShowEvent 0x00000001
#define ProgInfo_GenerateHideEvent 0x00000002
#define ProgInfo_IncludeLicenceType 0x00000004
#define ProgInfo_IncludeWebPageButton 0x00000008
#define ProgInfo_GenerateLaunchEvent 0x00000010
/* templates */
...
...
@@ -62,7 +65,8 @@ typedef struct
int
licence_type
;
char
*
version
;
char
*
window
;
char
*
uri
;
int
event
;
}
ProgInfoTemplate
;
/* display field component IDs */
...
...
@@ -74,6 +78,12 @@ typedef struct
#define ProgInfo_DisplayField_Author (ProgInfo_ComponentIDBase + 2)
#define ProgInfo_DisplayField_LicenceType (ProgInfo_ComponentIDBase + 3)
#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 ******************************************************************************/
...
...
@@ -84,11 +94,16 @@ typedef struct
#define ProgInfo_GetLicenceType 4
#define ProgInfo_SetTitle 5
#define ProgInfo_GetTitle 6
#define ProgInfo_SetUri 7
#define ProgInfo_GetUri 8
#define ProgInfo_SetWebEvent 9
#define ProgInfo_GetWebEvent 10
/* ProgInfo Toolbox Events ***********************************************************************/
#define ProgInfo_AboutToBeShown ProgInfo_SWIChunkBase
#define ProgInfo_DialogueCompleted (ProgInfo_SWIChunkBase + 1)
#define ProgInfo_LaunchWebPage (ProgInfo_SWIChunkBase + 2)
typedef
struct
{
ToolboxEventHeader
hdr
;
...
...
@@ -109,6 +124,10 @@ typedef struct {
ToolboxEventHeader
hdr
;
}
ProgInfo_DialogueCompleted_Event
;
typedef
struct
{
ToolboxEventHeader
hdr
;
}
ProgInfo_LaunchWebPage_Event
;
/* ProgInfo Errors *******************************************************************************/
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment