osso-helplib.h File Reference

Go to the source code of this file.

Enumerations

enum  { OSSO_HELP_SHOW_DIALOG = 0x01, OSSO_HELP_SHOW_JUSTASK = 0x02 }

Functions

osso_return_t ossohelp_show (osso_context_t *osso, const gchar *topic_id, guint flags)
gboolean ossohelp_dialog_help_enable (GtkDialog *dialog, const gchar *topic, osso_context_t *osso)


Detailed Description


Function Documentation

gboolean ossohelp_dialog_help_enable ( GtkDialog *  dialog,
const gchar *  topic,
osso_context_t *  osso 
)

Enable context specific help for a dialog.

Calling this function adds a '?' icon to the dialog's titlebar, allowing user to access the context specific help topic. All UI binding is done for you, one line is all it takes.

Todo:
If the given help topic is not installed on the system, the '?' icon should be dimmed (insensitive); is there a way to do that?
Note:
Do this call before 'gtk_widget_show_all()'; otherwise, the '?' icon won't show.
Parameters:
dialog The GTK+ dialog to attach help to
topic Help topic ID ("xxx_yyy_zzz") to show if the user presses the '?' icon
osso OSSO context pointer of the calling application
Returns:
TRUE if the help topic existed, and '?' enabled
FALSE if the topic ID is not found in this system.

osso_return_t ossohelp_show ( osso_context_t *  osso,
const gchar *  topic_id,
guint  flags 
)

Show Help topic or folder. This same function can be used either for Help dialogs (displaying a single topic _without links_ in the calling application's dialog box), or for launching Help Application, providing browsing, search and history functions, too.

Normally, applications would only use this to launch help topics, but it can be used for opening a folder view as well.

Parameters:
osso OSSO context handle of the calling application, required for RPC/DBUS calls to HelpApp or Browser. Can be NULL for OSSO_HELP_SHOW_JUSTASK.
topic_id Help topic ID ("xxx_yyy_zzz")
flags 0 for default (open Help Application)
+1 (OSSOHELP_SHOW_DIALOG) for opening as system dialog, without navigation possibilities
+2 (OSSOHELP_SHOW_JUSTASK) to check, whether a certain topic or folder is available on the system.
Returns:
OSSO_OK All well, help found (and being displayed)
OSSO_ERROR No help for such topic ID
OSSO_RPC_ERROR Unable to contact HelpApp or Browser
OSSO_INVALID Param not formally right (NULL, or bad ID format)


Generated on Wed Dec 20 12:36:53 2006 for OSSO HelpLib by  doxygen 1.5.1