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

Class XmlHighlighter

source code

        object --+                
                 |                
 sip.simplewrapper --+            
                     |            
           sip.wrapper --+        
                         |        
      PyQt4.QtCore.QObject --+    
                             |    
PyQt4.QtGui.QSyntaxHighlighter --+
                                 |
                                XmlHighlighter

Enabled the syntax highlightning for the ROS launch files.

Instance Methods
 
__init__(self, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
highlightBlock(self, text) source code

Inherited from PyQt4.QtGui.QSyntaxHighlighter: currentBlock, currentBlockState, currentBlockUserData, document, format, previousBlockState, rehighlight, rehighlightBlock, setCurrentBlockState, setCurrentBlockUserData, setDocument, setFormat

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  LAUNCH_LAUNCH_CHILDS = ['group', 'node', 'test', 'env', 'remap...
  LAUNCH_LAUNCH_ATTR = {'deprecated=': '"message"', 'if=': '""',...
  LAUNCH_GROUP_CHILDS = ['node', 'test', 'env', 'remap', 'rospar...
  LAUNCH_GROUP_ATTR = {'clear_params=': '"true|false"', 'if=': '...
  LAUNCH_MACHINE_CHILDS = ['env']
  LAUNCH_MACHINE_ATTR = {'address=': '"blah.willowgarage.com"', ...
  LAUNCH_NODE_CHILDS = ['env', 'remap', 'rosparam', 'param']
  LAUNCH_NODE_ATTR = {'args=': '"arg1"', 'clear_params=': '"true...
  LAUNCH_INCLUDE_CHILDS = ['env', 'arg']
  LAUNCH_INCLUDE_ATTR = {'clear_params=': '"true|false"', 'file=...
  LAUNCH_REMAP_ATTR = {'from=': '"originalname"', 'if=': '""', '...
  LAUNCH_ENV_ATTR = {'if=': '""', 'name=': '"name"', 'unless=': ...
  LAUNCH_PARAM_ATTR = {'binfile=': '"$(find pkg-name)/path/file"...
  LAUNCH_ROSPARAM_ATTR = {'command=': '"load|dump|delete"', 'fil...
  LAUNCH_ARG_ATTR = {'default=': '"defbar"', 'if=': '""', 'name=...
  LAUNCH_TEST_CHILDS = ['env', 'remap', 'rosparam', 'param']
  LAUNCH_TEST_ATTR = {'args=': '"arg1"', 'clear_params=': '"true...
  LAUNCH_CHILDS = {'arg': [], 'env': [], 'group': ['node', 'test...
  LAUNCH_ATT_GLOBAL = {'if=': '""', 'unless=': '""'}
  LAUNCH_ATTR = {'arg': {'default=': '"defbar"', 'if=': '""', 'n...

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties

Inherited from object: __class__

Method Details

__init__(self, parent=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

highlightBlock(self, text)

source code 
Overrides: PyQt4.QtGui.QSyntaxHighlighter.highlightBlock

Class Variable Details

LAUNCH_LAUNCH_CHILDS

Value:
['group',
 'node',
 'test',
 'env',
 'remap',
 'rosparam',
 'param',
 'machine',
...

LAUNCH_LAUNCH_ATTR

Value:
{'deprecated=': '"message"', 'if=': '""', 'unless=': '""'}

LAUNCH_GROUP_CHILDS

Value:
['node',
 'test',
 'env',
 'remap',
 'rosparam',
 'param',
 'machine',
 'include',
...

LAUNCH_GROUP_ATTR

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

LAUNCH_MACHINE_ATTR

Value:
{'address=': '"blah.willowgarage.com"',
 'default=': '"true|false|never"',
 'env-loader=': '"/opt/ros/fuerte/env.sh"',
 'if=': '""',
 'name=': '"machine-name"',
 'password=': '"passwhat"',
 'timeout=': '"10.0"',
 'unless=': '""',
...

LAUNCH_NODE_ATTR

Value:
{'args=': '"arg1"',
 'clear_params=': '"true|false"',
 'cwd=': '"ROS_HOME|node"',
 'if=': '""',
 'launch-prefix=': '"prefix arguments"',
 'machine=': '"machine-name"',
 'name=': '"nodename"',
 'ns=': '"foo"',
...

LAUNCH_INCLUDE_ATTR

Value:
{'clear_params=': '"true|false"',
 'file=': '"$(find pkg-name)/path/filename.xml"',
 'if=': '""',
 'ns=': '"foo"',
 'unless=': '""'}

LAUNCH_REMAP_ATTR

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

LAUNCH_ENV_ATTR

Value:
{'if=': '""', 'name=': '"name"', 'unless=': '""', 'value=': '"value"'}

LAUNCH_PARAM_ATTR

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

LAUNCH_ROSPARAM_ATTR

Value:
{'command=': '"load|dump|delete"',
 'file=': '"$(find pkg-name)/path/foo.yaml"',
 'if=': '""',
 'ns=': '"foo"',
 'param=': '"name"',
 'unless=': '""'}

LAUNCH_ARG_ATTR

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

LAUNCH_TEST_ATTR

Value:
{'args=': '"arg1"',
 'clear_params=': '"true|false"',
 'cwd=': '"ROS_HOME|node"',
 'if=': '""',
 'launch-prefix=': '"prefix arguments"',
 'name=': '"nodename"',
 'ns=': '"foo"',
 'pkg=': '"mypackage"',
...

LAUNCH_CHILDS

Value:
{'arg': [],
 'env': [],
 'group': ['node',
           'test',
           'env',
           'remap',
           'rosparam',
           'param',
...

LAUNCH_ATTR

Value:
{'arg': {'default=': '"defbar"',
         'if=': '""',
         'name=': '"name"',
         'unless=': '""',
         'value=': '"bar"'},
 'env': {'if=': '""',
         'name=': '"name"',
         'unless=': '""',
...