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

Class LaunchListModel

source code

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

The model to manage the list with launch files.

Nested Classes

Inherited from PyQt5.QtCore.QAbstractItemModel: LayoutChangeHint

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

Inherited from PyQt5.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, sibling, sort, sortRole, supportedDropActions, takeColumn, takeHorizontalHeaderItem, takeItem, takeRow, takeVerticalHeaderItem, verticalHeaderItem

Inherited from PyQt5.QtCore.QAbstractItemModel: beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, buddy, canDropMimeData, 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, moveColumn, moveColumns, moveRow, moveRows, persistentIndexList, removeColumn, removeRow, resetInternalData, revert, roleNames, rowsAboutToBeInserted, rowsAboutToBeMoved, rowsAboutToBeRemoved, rowsInserted, rowsMoved, rowsRemoved, span, submit, supportedDragActions

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

Inherited from sip.simplewrapper: __new__

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

Class Variables

Inherited from PyQt5.QtCore.QAbstractItemModel: HorizontalSortHint, NoLayoutChangeHint, VerticalSortHint

Inherited from PyQt5.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:
Returns: QtCore.Qt.ItemFlag
Flag or the requested item
Overrides: PyQt5.QtCore.QAbstractItemModel.flags

mimeTypes(self)

source code 
Overrides: PyQt5.QtCore.QAbstractItemModel.mimeTypes

mimeData(self, indexes)

source code 
Overrides: PyQt5.QtCore.QAbstractItemModel.mimeData

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