File: forms.page

package info (click to toggle)
zenity 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 10,600 kB
  • sloc: ansic: 5,124; sh: 1,169; xml: 495; makefile: 151; perl: 150
file content (76 lines) | stat: -rw-r--r-- 2,326 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="forms" xml:lang="de">
  <info>
    <link type="guide" xref="index#dialogs"/>
    <desc>Die Option <cmd>--forms</cmd> verwenden.</desc>
  </info>
  <title>Formulardialog</title>
    <p>Verwenden Sie die Option <cmd>--forms</cmd>, um einen Formulardialog zu erzeugen.</p>
	
    <p>Der Formulardialog unterstützt die folgenden Optionen:</p>

    <terms>

      <item>
        <title><cmd>--add-entry</cmd>=<var>Feldname</var></title>
	<p>Einen neuen Eintrag im Formulardialog hinzufügen.</p>
      </item>

      <item>
        <title>--add-password<cmd/>=<var>Feldname</var></title>
	<p>Einen neuen Passworteintrag im Formulardialog hinzufügen (Text verbergen).</p>
      </item>

      <item>
        <title><cmd>--add-calendar</cmd>=<var>Feldname</var></title>
	<p>Einen neuen Kalender im Formulardialog hinzufügen.</p>
      </item>

      <item>
        <title><cmd>--text</cmd>=<var>TEXT</var></title>
	<p>Den Dialogtext festlegen.</p>
      </item>

      <item>
        <title><cmd>--separator</cmd>=<var>TRENNER</var></title>
	<p>Das Trennungszeichen für die Ausgabe festlegen (Vorgabe: |).</p>
      </item>

      <item>
        <title><cmd>--forms-date-format</cmd>=<var>MUSTER</var></title>
	<p>Set the format for the returned date. The default format depends on your locale. format must be a Format that is acceptable to the <cmd>strftime</cmd> function, for example <var>%A %d/%m/%y</var>.</p>
      </item>

    </terms>

    <p>Das folgende Beispielskript zeigt, wie Sie einen Formulardialog erzeugen:</p>

<code>
#!/bin/sh

zenity --forms --title="Add Friend" \
	--text="Enter information about your friend." \
	--separator="," \
	--add-entry="First Name" \
	--add-entry="Family Name" \
	--add-entry="Email" \
	--add-calendar="Birthday" &gt;&gt; addr.csv

case $? in
    0)
        echo "Friend added.";;
    1)
        echo "No friend added."
	;;
    -1)
        echo "An unexpected error has occurred."
	;;
esac
</code>

    <figure id="zenity-forms-screenshot">
      <title>Beispiel für einen Formulardialog</title>
      <desc>Beispiel für einen Formulardialog in <app>Zenity</app></desc>
      <media type="image" mime="image/png" src="figures/zenity-forms-screenshot.png"/>
    </figure>
</page>