gxdialog, gxinput 0.9-devel
Built with gtk+-1.1.13
Robert S. Mallozzi
mallozzir@cspar.uah.edu
http://cspar.uah.edu/~mallozzir/
INTRODUCTION
gxdialog is a set of convenience dialogs for use in gtk+ applications.
The dialogs are modal (blocking) widgets; a dialog must be dismissed
before program execution can continue. The following dialogs are
available:
question
error
info
warning
input
about
help
gnome
kde
gxinput is a convenience dialog used to obtain text from the user.
The dialog is a modal (blocking) widget, and must be dismissed
before program execution can continue.
To compile a demo version of gxdialog, peruse the Imakefile to ensure
that it is acceptable for your system, then enter the following:
xmkmf
make
./gxdialog
USAGE
Just #include the header file gxdialog.h in your application, and
compile your application with gxdialog.c.
The prototype for gxdialog is as follows:
gint gxdialog (const gchar *type_str,
const gchar *message_str
const gchar *utitle)
Thus to invoke a dialog, use a call such as
gint x;
x = gxdialog ("question", "File exists.\nOk to overwrite?", NULL);
The prototype for gxinput is as follows:
gchar *gxinput (const gchar *message_str,
const gchar *init_str,
const gchar *utitle)
To use gxinput, use a call such as
gchar *ans;
ans = gxinput ("Enter number of bottles of beer on the wall",
"99", "Window Title");
LEGAL
Permission to use, copy, and distribute this software for any purpose
and without fee is hereby granted, provided that the author's
name and this notice appear in all copies and in supporting documentation.
All distributions must include the original, unmodified source code.
If the software is modified, notice of modifications must be given.
The author's name shall not be otherwise used publicity pertaining to
distribution of the software without specific, written prior permission.
THE SOFTWARE IS PROVIDED TO YOU "AS-IS", AND WITHOUT WARRANTY OF ANY KIND,
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY
OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL
THE AUTHOR BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DIRECT, SPECIAL,
INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
WHATSOEVER, INCLUDING WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE,
SAVINGS OR REVENUE, OR THE CLAIMS OF THIRD PARTIES, WHETHER OR NOT THE
AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED
AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
This software is in no way affiliated with the University of Alabama,
or NASA and the US government.
|