summaryrefslogtreecommitdiff
path: root/riscos/help.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-07-16 16:33:45 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-07-16 16:33:45 +0000
commitabaa8a90938024685d39a10192586d369e44a101 (patch)
tree59006e5f7f679a9bd76b3488e20582b3e4af733c /riscos/help.c
parent99d1c18252833c577dc5046e73ef7f7cc12bdb3a (diff)
downloadnetsurf-abaa8a90938024685d39a10192586d369e44a101.tar.gz
netsurf-abaa8a90938024685d39a10192586d369e44a101.tar.bz2
[project @ 2004-07-16 16:33:44 by rjw]
Various fixes for the GUI. Persistant windows are closed when upon a change of content. Hotlist saves in the same format as !Browse. Neater login window. Support for interactive help from hotlist windows. svn path=/import/netsurf/; revision=1081
Diffstat (limited to 'riscos/help.c')
-rw-r--r--riscos/help.c26
1 files changed, 23 insertions, 3 deletions
diff --git a/riscos/help.c b/riscos/help.c
index f7f40c1fe..a35a90238 100644
--- a/riscos/help.c
+++ b/riscos/help.c
@@ -28,22 +28,31 @@
HelpIconbar Iconbar (no icon suffix is used)
HelpAppInfo Application info window
- HelpBrowser Browser window
- HelpHistory History window
+ HelpBrowser Browser window [*]
+ HelpHistory History window [*]
HelpObjInfo Object info window
HelpPageInfo Page info window
HelpSaveAs Save as window
HelpScaleView Scale view window
HelpStatus Status window
HelpToolbar Toolbar window
+ HelpHotlist Hotlist window [*]
+ HelpHotToolbar Hotlist window toolbar
+ HelpHotEntry Hotlist entry window
+ HelpHotFolder Hotlist entry window
HelpIconMenu Iconbar menu
HelpBrowserMenu Browser window menu
+ HelpHotlistMenu Hotlist window menu
The prefixes are followed by either the icon number (eg 'HelpToolbar7'), or a series
of numbers representing the menu structure (eg 'HelpBrowserMenu3-1-2').
If '<key><identifier>' is not available, then simply '<key>' is then used. For example
if 'HelpToolbar7' is not available then 'HelpToolbar' is then tried.
+
+ For items marked with an asterisk [*] a call must be made to determine the required
+ help text as the window does not contain any icons. An example of this is the hotlist
+ window where ro_gui_hotlist_help() is called.
*/
static void ro_gui_interactive_help_broadcast(wimp_message *message, char *token);
@@ -98,6 +107,15 @@ void ro_gui_interactive_help_request(wimp_message *message) {
sprintf(message_token, "HelpSaveAs%i", (int)icon);
} else if (window == dialog_zoom) {
sprintf(message_token, "HelpScaleView%i", (int)icon);
+ } else if (window == dialog_folder) {
+ sprintf(message_token, "HelpHotFolder%i", (int)icon);
+ } else if (window == dialog_entry) {
+ sprintf(message_token, "HelpHotEntry%i", (int)icon);
+ } else if (window == hotlist_window) {
+ sprintf(message_token, "HelpHotlist%i",
+ ro_gui_hotlist_help(message_data->pos.x, message_data->pos.y));
+ } else if ((hotlist_toolbar) && (window == hotlist_toolbar->toolbar_handle)) {
+ sprintf(message_token, "HelpHotToolbar%i", (int)icon);
} else {
/* Check if we have a browser window, toolbar window or status window
@@ -142,6 +160,8 @@ void ro_gui_interactive_help_request(wimp_message *message) {
sprintf(message_token, "HelpIconMenu");
} else if (current_menu == browser_menu) {
sprintf(message_token, "HelpBrowserMenu");
+ } else if (current_menu == hotlist_menu) {
+ sprintf(message_token, "HelpHotlistMenu");
} else {
return;
}
@@ -240,7 +260,7 @@ int ro_gui_interactive_help_available() {
/* We can't just use strcmp due to string termination issues.
*/
if (strncmp(task.name, "Help", 4) == 0) {
- if (task.name[4] < 32) return true;
+ if (task.name[4] < 32) return true;
}
} while (context >= 0);