Package node_manager_fkie :: Module launch_list_model :: Class LaunchListModel
[frames] | no frames]

Class LaunchListModel

source code

python_qt_binding.QtGui.QStandardItemModel --+
                                             |
                                            LaunchListModel

The model to manage the list with launch files.

Instance Methods
 
__init__(self)
Creates a new list model.
source code
QtCore.Qt.ItemFlag
flags(self, index)
Returns: Flag or the requested item
source code
 
mimeTypes(self) source code
 
mimeData(self, indexes) source code
 
reloadPackages(self)
Reloads the cached packag list.
source code
 
reloadCurrentPath(self)
Reloads the current path.
source code
str @raise Exception if no path to given item was found
expandItem(self, path_item, path, item_id)
Returns for the given item and path the file path if this is a file.
source code
 
setPath(self, path)
Shows the new path in the launch configuration view.
source code
 
show_packages(self, show) source code
 
paste_from_clipboard(self)
Copy the file or folder to new position...
source code
 
copy_to_clipboard(self, indexes)
Copy the selected path to the clipboard
source code
Instance Variables
  header = [('Name',-1)]
the list with columns [(name, width), ...]
Method Details

flags(self, index)

source code 
Parameters:
Returns: QtCore.Qt.ItemFlag
Flag or the requested item

expandItem(self, path_item, path, item_id)

source code 

Returns for the given item and path the file path if this is a file. Otherwise the folder will be expanded and None will be returned.

Parameters:
  • path_item (str) - the list item
  • path (str) - the real path of the item
Returns: str @raise Exception if no path to given item was found
path of the launch file or None

setPath(self, path)

source code 

Shows the new path in the launch configuration view. Only if the new path is in ros package paths

Parameters:
  • path (str) - new path