Package node_manager_fkie :: Package editor :: Module xml_highlighter :: Class XmlHighlighter
[frames] | no frames]

Class XmlHighlighter

source code

python_qt_binding.QtGui.QSyntaxHighlighter --+
                                             |
                                            XmlHighlighter

Enabled the syntax highlightning for the ROS launch files.

Instance Methods
 
__init__(self, parent=None) source code
 
highlightBlock(self, text) source code
 
mark_block(self, block, position) source code
 
get_tag_of_current_block(self, block, position) source code
Class Variables
  LAUNCH_LAUNCH_CHILDS = ['group', 'node', 'test', 'env', 'remap...
  LAUNCH_LAUNCH_ATTR = {'deprecated=': '"message"'}
  LAUNCH_GROUP_CHILDS = ['node', 'test', 'env', 'remap', 'rospar...
  LAUNCH_GROUP_ATTR = {'ns=': '"foo"', 'clear_params=': '"true|f...
  LAUNCH_MACHINE_CHILDS = ['env']
  LAUNCH_MACHINE_ATTR = {'name=': '"machine-name"', 'address=': ...
  LAUNCH_NODE_CHILDS = ['env', 'remap', 'rosparam', 'param']
  LAUNCH_NODE_ATTR = {'pkg=': '"mypackage"', 'type=': '"nodetype...
  LAUNCH_INCLUDE_CHILDS = ['env', 'arg']
  LAUNCH_INCLUDE_ATTR = {'file=': '"$(find pkg-name)/path/filena...
  LAUNCH_REMAP_ATTR = {'from=': '"originalname"', 'to=': '"newna...
  LAUNCH_ENV_ATTR = {'name=': '"name"', 'value=': '"value"'}
  LAUNCH_PARAM_ATTR = {'name=': '"namespace/name"', 'value=': '"...
  LAUNCH_ROSPARAM_ATTR = {'command=': '"load|dump|delete"', 'fil...
  LAUNCH_ARG_ATTR = {'name=': '"name"', 'value=': '"bar"', 'defa...
  LAUNCH_TEST_CHILDS = ['env', 'remap', 'rosparam', 'param']
  LAUNCH_TEST_ATTR = {'pkg=': '"mypackage"', 'type=': '"nodetype...
  LAUNCH_CHILDS = {'launch': LAUNCH_LAUNCH_CHILDS, 'group': LAUN...
  LAUNCH_ATT_GLOBAL = {'if=': '""', 'unless=': '""'}
  LAUNCH_ATTR = {'launch': LAUNCH_LAUNCH_ATTR, 'group': LAUNCH_G...
  STATE_COMMENT = 2
  STATE_STRING = 4
Class Variable Details

LAUNCH_LAUNCH_CHILDS

Value:
['group', 'node', 'test', 'env', 'remap', 'rosparam', 'param', 'machin\
e', 'include', 'arg']

LAUNCH_GROUP_CHILDS

Value:
['node', 'test', 'env', 'remap', 'rosparam', 'param', 'machine', 'incl\
ude', 'arg']

LAUNCH_GROUP_ATTR

Value:
{'ns=': '"foo"', 'clear_params=': '"true|false"'}

LAUNCH_MACHINE_ATTR

Value:
{'name=': '"machine-name"', 'address=': '"blah.willowgarage.com"', 'en\
v-loader=': '"/opt/ros/fuerte/env.sh"', 'default=': '"true|false|never\
"', 'user=': '"username"', 'password=': '"passwhat"', 'timeout=': '"10\
.0"'}

LAUNCH_NODE_ATTR

Value:
{'pkg=': '"mypackage"', 'type=': '"nodetype"', 'name=': '"nodename"', \
'args=': '"arg1"', 'machine=': '"machine-name"', 'respawn=': '"true"',\
 'required=': '"true"', 'ns=': '"foo"', 'clear_params=': '"true|false"\
', 'output=': '"log|screen"', 'cwd=': '"ROS_HOME|node"', 'launch-prefi\
x=': '"prefix arguments"'}

LAUNCH_INCLUDE_ATTR

Value:
{'file=': '"$(find pkg-name)/path/filename.xml"', 'ns=': '"foo"', 'cle\
ar_params=': '"true|false"', 'pass_all_args=': '"true|false"'}

LAUNCH_REMAP_ATTR

Value:
{'from=': '"originalname"', 'to=': '"newname"'}

LAUNCH_PARAM_ATTR

Value:
{'name=': '"namespace/name"', 'value=': '"value"', 'type=': '"str|int|\
double|bool"', 'textfile=': '"$(find pkg-name)/path/file.txt"', 'binfi\
le=': '"$(find pkg-name)/path/file"', 'command=': '"$(find pkg-name)/e\
xe \'$(find pkg-name)/arg.txt\'"'}

LAUNCH_ROSPARAM_ATTR

Value:
{'command=': '"load|dump|delete"', 'file=': '"$(find pkg-name)/path/fo\
o.yaml"', 'param=': '"name"', 'ns=': '"foo"', 'subst_value=': '"true|f\
alse"'}

LAUNCH_ARG_ATTR

Value:
{'name=': '"name"', 'value=': '"bar"', 'default=': '"defbar"'}

LAUNCH_TEST_ATTR

Value:
{'pkg=': '"mypackage"', 'type=': '"nodetype"', 'name=': '"nodename"', \
'test-name=': '"test_name"', 'args=': '"arg1"', 'ns=': '"foo"', 'clear\
_params=': '"true|false"', 'retry=': '"0"', 'cwd=': '"ROS_HOME|node"',\
 'launch-prefix=': '"prefix arguments"', 'time-limit=': '"60.0"'}

LAUNCH_CHILDS

Value:
{'launch': LAUNCH_LAUNCH_CHILDS, 'group': LAUNCH_GROUP_CHILDS, 'machin\
e': LAUNCH_MACHINE_CHILDS, 'node': LAUNCH_NODE_CHILDS, 'include': LAUN\
CH_INCLUDE_CHILDS, 'remap': [], 'env': [], 'param': [], 'rosparam': []\
, 'arg': [], 'test': LAUNCH_TEST_CHILDS}

LAUNCH_ATTR

Value:
{'launch': LAUNCH_LAUNCH_ATTR, 'group': LAUNCH_GROUP_ATTR, 'machine': \
LAUNCH_MACHINE_ATTR, 'node': LAUNCH_NODE_ATTR, 'include': LAUNCH_INCLU\
DE_ATTR, 'remap': LAUNCH_REMAP_ATTR, 'env': LAUNCH_ENV_ATTR, 'param': \
LAUNCH_PARAM_ATTR, 'rosparam': LAUNCH_ROSPARAM_ATTR, 'arg': LAUNCH_ARG\
_ATTR, 'test': LAUNCH_TEST_ATTR,}