diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-12-07 13:30:26 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2017-02-02 10:33:14 +0000 |
commit | efb5c1537de616826408660f8d9aca659d5297c3 (patch) | |
tree | d95b9acbe5c72d51927855e95ea60b75e5709d36 /doc | |
parent | bd3c2d2954e58829d44bc4319fbfa921f5bffc9f (diff) |
Qt: Add extcap placeholder parameter
Added a parameter to set placeholder text in textBox.
Change-Id: Iccf92fe60abc78be8f0fa112c0c9eb78890674b5
Reviewed-on: https://code.wireshark.org/review/12463
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/README.extcap | 6 | ||||
-rwxr-xr-x | doc/extcap_example.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/README.extcap b/doc/README.extcap index 5707fd02fe..025c3ffb71 100644 --- a/doc/README.extcap +++ b/doc/README.extcap @@ -95,7 +95,7 @@ Example: $ extcapbin --extcap-interface IFACE --extcap-config arg {number=0}{call=--delay}{display=Time delay}{tooltip=Time delay between packages}{type=integer}{range=1,15}{required=true} -arg {number=1}{call=--message}{display=Message}{tooltip=Package message content}{type=string} +arg {number=1}{call=--message}{display=Message}{tooltip=Package message content}{placeholder=Please enter a message here ...}{type=string} arg {number=2}{call=--verify}{display=Verify}{tooltip=Verify package content}{type=boolflag} arg {number=3}{call=--remote}{display=Remote Channel}{tooltip=Remote Channel Selector}{type=selector} arg {number=4}{call=--server}{display=IP address for log server}{type=string}{validation=\\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b} @@ -137,8 +137,8 @@ All options must provide a number, by which they are identified. No NUMBER may b provided twice. Also all options must present the elements CALL and DISPLAY, where call provides the arguments name on the command-line and display the name in the GUI. -Additionally TOOLTIP may be provided, which will give the user an explanation within -the GUI, about what to enter into this field. +Additionally TOOLTIP and PLACEHOLDER may be provided, which will give the user an +explanation within the GUI, about what to enter into this field. These options do have types, for which the following types are being supported: diff --git a/doc/extcap_example.py b/doc/extcap_example.py index 446cccb8f1..3a3fde7aa7 100755 --- a/doc/extcap_example.py +++ b/doc/extcap_example.py @@ -98,7 +98,7 @@ def extcap_config(interface): values = [] args.append ( (0, '--delay', 'Time delay', 'Time delay between packages', 'integer', '{range=1,15}{default=5}') ) - args.append ( (1, '--message', 'Message', 'Package message content', 'string', '{required=true}') ) + args.append ( (1, '--message', 'Message', 'Package message content', 'string', '{required=true}{placeholder=Please enter a message here ...}') ) args.append ( (2, '--verify', 'Verify', 'Verify package content', 'boolflag', '{default=yes}') ) args.append ( (3, '--remote', 'Remote Channel', 'Remote Channel Selector', 'selector', '')) args.append ( (4, '--fake_ip', 'Fake IP Address', 'Use this ip address as sender', 'string', '{save=false}{validation=\\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b}')) |