Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > 4174c5d615fc447bb42b54c389ed1453 > files > 50

Xdialog-2.3.1-8.mga6.i586.rpm

<html>
<head>
<title>Xdialog documentation - Introduction</title>
</head>
<body bgcolor="#102050" text="#F0E0A0" link="#00E000" vlink="#FF00B0" alink="#FF0000">
<table border=0 width="100%"><tr>
<td align="left"><a href="index.html">previous</a><a name="TOP">&nbsp;</a>&nbsp;<a href="syntax.html">next</a>&nbsp;&nbsp;<a href="index.html">contents</a></td>
<td align="right"><a href="#BOTTOM">bottom</a></td>
</tr></table>
<hr>
<center>
<h1>Xdialog documentation - Introduction</h1>
<hr width=30%>
</center>
<p>&nbsp;<p>
<ul>
<h2><li>What is Xdialog ?</h2>
<p align="justify">Xdialog is designed to be a drop in replacement for the <a href="compatibility.html#DIALOG">dialog</a> and <a href="compatibility.html#CDIALOG">cdialog</a> programs (BTW Xdialog may also be used in place of <a href="compatibility.html#GDIALOG">gdialog</a>). It converts any terminal based program into a program with an X-windows interface. The dialogs are easier to see and use and the new widgets adds even more functionnalities.
<p align="justify">To achieve this, Xdialog uses the Gimp ToolKit (also known as GTK+). This toolkit is now widely used and it is most probably already installed on your system.
<h2><li>Why should I use it ?</h2>
<p align="justify">There are a few reasons for using Xdialog:
<p><ul>
<li>It's a drop-in replacement for (c)dialog and as such, it will give you a better interface for the existing scripts using (c)dialog at the cost of very little effort (if any).
<li>Many things can be done from the command line (shell) under UNIX, but nowadays this (typing commands in a shell and using shell scripts) is not considered as &quot;user-friendly&quot;. Xdialog gives you an opportunity to revamp your useful shell scripts so that any user can easily make use of them (he will not even notice they are scripts, he will just see the pretty GUI).
<li>You may already have considered writing a program (in C or any other high level language) to do some simple things (things that can be done using simple UNIX commands), but writing such a program with a proper GUI takes time and requires a good knowlegde in high level programming... therefore you just abandonned the idea. Now you can use any shell together with Xdialog and write your program/utility in a few minutes !
</ul>
<h2><li>What are the limits of Xdialog usage ?</h2>
<p align="justify">Xdialog is only able to set up (relatively) simple dialogs. It is in no way designed to write a full application with a proper window, menu bar and sub-menus. Therefore any task requiring more than a few prompts from the user and/or displaying complex data will most likely needs for something more powerful than Xdialog (i.e. you will have to do some true programming in high level language, and use GTK+, Motif or Qt toolkits).
<h2><li>Could you spot some typical applications for Xdialog ?</h2>
<p align="justify">Here are some examples of what I am using Xdialog for (either at home or at work):
<p><ul>
<li>Software installation scripts (an installation script using Xdialog makes for a good &quot;installation wizard&quot;).
<li>Customized and more powerful replacements for a few Xwindows utility such as xless or xmessage.
<li>Wrappers and GUI for command line only UNIX utilities (playmidi, xanim, qiv, ping, fwhois, nslookup, etc...).
<li>PPP (multiple ISPs) connection wizard/PPP log displayer (that is some sort of customized gppp/kppp).
<li>Utility scripts for shell-less user accounts.
<li>Configuration wizard for software without configuration tool/menu.
<li>User mounting utility, encrypted loop mounting utility.
<li>Easy, semi-automatic Linux kernel compilation/installation.
</ul>
<h2><li>What are the system requirements IOT execute Xdialog ?</h2>
<p align="justify">They are very minimal (no exotic/silly library needed): X11 and GTK+ (v1.2.0 or upper, v1.2.8 and upper preferred) is all what Xdialog needs to run. Of course you will also need a shell (any shell: sh, bash, ksh, csh, zsh...) or a scripting language (that is a language able to call external commands, e.g.: Perl).
</ul>
<hr>
<table border=0 width="100%"><tr>
<td align="left"><a href="index.html">previous</a><a name="BOTTOM">&nbsp;</a>&nbsp;<a href="syntax.html">next</a>&nbsp;&nbsp;<a href="index.html">contents</a></td>
<td align="right"><a href="#TOP">top</a></td>
</tr></table>
</body>
</html>