1
/* Copyright (C) 2000 Damir Zucic */
3
/*=============================================================================
8
Write some hints to the hidden pixmap.
11
(1) Pointer to GUIS structure, with GUI data.
14
(1) Some hints (textual information) written to hidden pixmap.
18
(1) Positive always (trivial).
20
========includes:============================================================*/
27
#include <X11/Xutil.h>
29
#include <X11/Xatom.h>
34
/*======write some hints to the hidden pixmap:===============================*/
36
int WriteHints_ (GUIS *guiSP)
38
int screen_x, screen_y, delta_y;
39
char stringA[STRINGSIZE];
41
/* Prepare the text color: */
42
XSetForeground (guiSP->displaySP, guiSP->theGCA[0],
43
guiSP->main_winS.fg_colorID);
47
delta_y = guiSP->input_winS.text_line_height;
50
screen_y = 60 + delta_y;
51
strcpy (stringA, "Home page: http://pref.etfos.hr/garlic");
52
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
53
screen_x, screen_y, stringA, strlen (stringA));
56
strcpy (stringA, "HTML documentation:");
57
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
58
screen_x, screen_y, stringA, strlen (stringA));
64
"http://pref.etfos.hr/controls (rotations, translations etc.)");
65
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
66
screen_x, screen_y, stringA, strlen (stringA));
69
strcpy (stringA, "http://pref.etfos.hr/commands (garlic command language)");
70
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
71
screen_x, screen_y, stringA, strlen (stringA));
74
strcpy (stringA, "http://pref.etfos.hr/refcard (reference card -> print it!)");
75
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
76
screen_x, screen_y, stringA, strlen (stringA));
81
strcpy (stringA, "Documentation (packed -> download via ftp):");
82
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
83
screen_x, screen_y, stringA, strlen (stringA));
88
strcpy (stringA, "ftp://pref.etfos.hr/pub/garlic/source/garlic-doc.tar.gz");
89
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
90
screen_x, screen_y, stringA, strlen (stringA));
95
strcpy (stringA, "License (GPL): http://pref.etfos.hr/garlic/license");
96
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
97
screen_x, screen_y, stringA, strlen (stringA));
100
strcpy (stringA, "Author: http://pref.etfos.hr/zucic");
101
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
102
screen_x, screen_y, stringA, strlen (stringA));
104
screen_y += 2 * delta_y;
105
strcpy (stringA, "Encourage garlic development - type reg to register!");
106
XDrawString (guiSP->displaySP, guiSP->main_hidden_pixmapID, guiSP->theGCA[0],
107
screen_x, screen_y, stringA, strlen (stringA));
109
/* Return positive value (trivial): */
113
/*===========================================================================*/