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

« back to all changes in this revision

Viewing changes to help/pt_BR/scale.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="scale" xml:lang="pt_BR">
 
3
  <info>
 
4
    <link type="guide" xref="index#dialogs"/>
 
5
    <desc>Use the <cmd>--scale</cmd> option.</desc>
 
6
  </info>
 
7
  <title>Scale Dialog</title>
 
8
  <p>
 
9
    Use the <cmd>--scale</cmd> option to create a scale dialog. 
 
10
  </p>
 
11
  <p>
 
12
    The scale dialog supports the following options:
 
13
  </p>
 
14
 
 
15
  <terms>
 
16
 
 
17
    <item>
 
18
      <title><cmd>--text</cmd>=<var>TEXT</var></title>
 
19
      <p>Set the dialog text. (Default: Adjust the scale value)</p>
 
20
    </item>
 
21
 
 
22
    <item>
 
23
      <title><cmd>--value</cmd>=<var>VALUE</var></title>
 
24
      <p>Set initial value. (Default: 0) You must specify value between minimum value to maximum value.</p>
 
25
    </item>
 
26
 
 
27
    <item>
 
28
      <title><cmd>--min-value</cmd>=<var>VALUE</var></title>
 
29
      <p>Set minimum value. (Default: 0)</p>
 
30
    </item>
 
31
 
 
32
    <item>
 
33
      <title><cmd>--max-value</cmd>=<var>VALUE</var></title>
 
34
      <p>Set maximum value. (Default: 100)</p>
 
35
    </item>
 
36
 
 
37
    <item>
 
38
      <title><cmd>--step</cmd>=<var>VALUE</var></title>
 
39
      <p>Set step size. (Default: 1)</p>
 
40
    </item>
 
41
 
 
42
    <item>
 
43
      <title><cmd>--print-partial</cmd></title>
 
44
      <p>Print value to standard output, whenever a value is changed. </p>
 
45
    </item>
 
46
 
 
47
    <item>
 
48
      <title><cmd>--hide-value</cmd></title>
 
49
      <p>Hide value on dialog.</p>
 
50
    </item>
 
51
 
 
52
  </terms>
 
53
 
 
54
  <p>
 
55
    The following example script shows how to create a scale dialog:
 
56
  </p>
 
57
 
 
58
<code>
 
59
#!/bin/sh
 
60
 
 
61
VALUE=`zenity --scale --text="Select window transparency." --value=50`
 
62
 
 
63
case $? in
 
64
         0)
 
65
                echo "You selected $VALUE%.";;
 
66
         1)
 
67
                echo "No value selected.";;
 
68
        -1)
 
69
                echo "An unexpected error has occurred.";;
 
70
esac
 
71
</code>
 
72
 
 
73
  <figure id="zenity-scale-screenshot">
 
74
    <title>Scale Dialog Example</title>
 
75
    <desc><app>Zenity</app> scale dialog example</desc>
 
76
    <media type="image" mime="image/png" src="figures/zenity-scale-screenshot.png"/>
 
77
  </figure>
 
78
 
 
79
</page>