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

Class LaunchListModel

source code

         object --+                    
                  |                    
  sip.simplewrapper --+                
                      |                
            sip.wrapper --+            
                          |            
       PyQt4.QtCore.QObject --+        
                              |        
PyQt4.QtCore.QAbstractItemModel --+    
                                  |    
     PyQt4.QtGui.QStandardItemModel --+
                                      |
                                     LaunchListModel

The model to manage the list with launch files.

Instance Methods
 
__init__(self)
Creates a new list model.
source code
PySide.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
 
expandItem(self, path_item, path, 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
 
add2LoadHistory(self, file) source code
 
removeFromLoadHistory(self, file) 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

Inherited from PyQt4.QtGui.QStandardItemModel: appendColumn, appendRow, clear, columnCount, data, dropMimeData, findItems, hasChildren, headerData, horizontalHeaderItem, index, indexFromItem, insertColumn, insertColumns, insertRow, insertRows, invisibleRootItem, item, itemChanged, itemData, itemFromIndex, itemPrototype, parent, removeColumns, removeRows, rowCount, setColumnCount, setData, setHeaderData, setHorizontalHeaderItem, setHorizontalHeaderLabels, setItem, setItemData, setItemPrototype, setRowCount, setSortRole, setVerticalHeaderItem, setVerticalHeaderLabels, sort, sortRole, supportedDropActions, takeColumn, takeHorizontalHeaderItem, takeItem, takeRow, takeVerticalHeaderItem, verticalHeaderItem

Inherited from PyQt4.QtCore.QAbstractItemModel: beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, buddy, canFetchMore, changePersistentIndex, changePersistentIndexList, columnsAboutToBeInserted, columnsAboutToBeMoved, columnsAboutToBeRemoved, columnsInserted, columnsMoved, columnsRemoved, createIndex, dataChanged, decodeData, encodeData, endInsertColumns, endInsertRows, endMoveColumns, endMoveRows, endRemoveColumns, endRemoveRows, endResetModel, fetchMore, hasIndex, headerDataChanged, layoutAboutToBeChanged, layoutChanged, match, modelAboutToBeReset, modelReset, persistentIndexList, removeColumn, removeRow, reset, resetInternalData, revert, roleNames, rowsAboutToBeInserted, rowsAboutToBeMoved, rowsAboutToBeRemoved, rowsInserted, rowsMoved, rowsRemoved, setRoleNames, setSupportedDragActions, sibling, span, submit, supportedDragActions

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, 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

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Instance Variables
  header = [('Name', -1)]
the list with columns [(name, width), ...]
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

Creates a new list model.

Overrides: object.__init__

flags(self, index)

source code 
Parameters:
  • index (PySide.QtCore.QModelIndex) - parent of the list
Returns: PySide.QtCore.Qt.ItemFlag
Flag or the requested item
Overrides: PyQt4.QtCore.QAbstractItemModel.flags

mimeTypes(self)

source code 
Overrides: PyQt4.QtCore.QAbstractItemModel.mimeTypes

mimeData(self, indexes)

source code 
Overrides: PyQt4.QtCore.QAbstractItemModel.mimeData

expandItem(self, path_item, path, 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.
@param path_item: the list item
@type path_item: C{str}
@param path: the real path of the item
@type path: C{str}
@return: path of the launch file or None
@rtype: C{str
@raise Exception if no path to given item was found

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