~ubuntu-branches/ubuntu/precise/zenity/precise-updates

« back to all changes in this revision

Viewing changes to help/en_GB/calendar.page

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-03-29 14:50:15 UTC
  • mfrom: (1.1.45)
  • Revision ID: package-import@ubuntu.com-20120329145015-p6jkb44cf19r2qyi
Tags: 3.4.0-0ubuntu1
* New upstream release:
  - Add support for lists and trees with --forms
  - Fix warning reading list from stdin
* debian/zenity-common.install:
  - Doesn't install omf files anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="calendar" xml:lang="en_GB">
 
3
  <info>
 
4
    <link type="guide" xref="index#dialogs"/>
 
5
    <desc>Use the <cmd>--calendar</cmd> option.</desc>
 
6
  </info>
 
7
  <title>Calendar Dialogue</title>
 
8
    <p>
 
9
        Use the <cmd>--calendar</cmd> option to create a calendar dialog. Zenity returns the selected date to standard output. If no date is specified on the command line, the dialog uses the current date.
 
10
    </p>
 
11
    <p>The calendar dialogue supports the following options:</p>
 
12
 
 
13
    <terms>
 
14
 
 
15
      <item>
 
16
        <title><cmd>--text</cmd>=<var>text</var></title>
 
17
        <p>Specifies the text that is displayed in the calendar dialogue.</p>
 
18
      </item>
 
19
        
 
20
      <item>
 
21
        <title><cmd>--day</cmd>=<var>day</var></title>
 
22
        <p>Specifies the day that is selected in the calendar dialog. day must be a number between 1 and 31 inclusive.</p>
 
23
      </item>
 
24
 
 
25
      <item>
 
26
        <title><cmd>--month</cmd>=<var>month</var></title>
 
27
        <p>Specifies the month that is selected in the calendar dialog. month must be a number between 1 and 12 inclusive.</p>
 
28
      </item>
 
29
 
 
30
      <item>
 
31
        <title><cmd>--year</cmd>=<var>year</var></title>
 
32
        <p>Specifies the year that is selected in the calendar dialogue.</p>
 
33
      </item>
 
34
 
 
35
      <item>
 
36
        <title><cmd>--date-format</cmd>=<var>format</var></title>
 
37
        <p>Specifies the format that is returned from the calendar dialog after date selection. 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>
 
38
      </item>
 
39
 
 
40
    </terms>
 
41
 
 
42
    <p>
 
43
      The following example script shows how to create a calendar dialog:
 
44
    </p>
 
45
 
 
46
<code>
 
47
#!/bin/sh
 
48
 
 
49
 
 
50
if zenity --calendar \
 
51
--title="Select a Date" \
 
52
--text="Click on a date to select that date." \
 
53
--day=10 --month=8 --year=2004
 
54
  then echo $?
 
55
  else echo "No date selected"
 
56
fi
 
57
</code>
 
58
 
 
59
 
 
60
    <figure id="zenity-calendar-screenshot">
 
61
      <title>Calendar Dialogue Example</title>
 
62
      <desc>Zenity calendar dialog example</desc>
 
63
      <media type="image" mime="image/png" src="figures/zenity-calendar-screenshot.png"/>
 
64
   </figure>
 
65
</page>