# mcedit2.widgets.nbttree package — mceditlib 0.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- mceditlib 0.1 documentation »
- mcedit2 package »
- mcedit2.widgets package »

# mcedit2.widgets.nbttree package

## Submodules

## mcedit2.widgets.nbttree.nbteditor module

nbttreewidget

class `mcedit2.widgets.nbttree.nbteditor.``NBTDataChangeCommand`(editorSession, text, *args, **kwargs)

  Bases: `mcedit2.command.SimpleRevisionCommand`

class `mcedit2.widgets.nbttree.nbteditor.``NBTEditorWidget`(*args, **kwargs)

  Bases: `PySide.QtGui.QWidget`

  `undoCommandPrefixText` = u''
  `editorSession` = NotImplemented
  `proxyModel` = None
  `rootTag` = None
  `editMade` = <PySide.QtCore.Signal object at 0x0000000008480B90>
  `setRootTag`(rootTag, keepExpanded=False)
  `itemExpanded`()
  `indexAddingTo` = None
  `itemClicked`(index)
  `addItemWithType`(tagID)
  `addByte`()
  `addShort`()
  `addInt`()
  `addLong`()
  `addFloat`()
  `addDouble`()
  `addByteArray`()
  `addString`()
  `addList`()
  `addCompound`()
  `addIntArray`()
  `addShortArray`()
  `tagNameForUndo`(index)
  `dataDidChange`(index)
  `rowsDidInsert`(index)
  `doomedTagName` = None
  `rowsDidRemove`(index, start, end)
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x0000000008484588>

## mcedit2.widgets.nbttree.nbttreemodel module

${NAME}

`mcedit2.widgets.nbttree.nbttreemodel.``NBTIcon`(type)

`mcedit2.widgets.nbttree.nbttreemodel.``MakeNBTTreeItem`(tag, parent)

class `mcedit2.widgets.nbttree.nbttreemodel.``NBTTreeCompound`(tag, parent=None)

  Bases: `object`

  `isCompound` = True
  `isList` = False
  `child`(row)
  `childCount`()
  `childNumber`()
  `data`(column)
  `tagCompoundName`()
  `tagCompoundSummary`()
  `insertChildren`(position, count, tagID)
  `parent`()
  `removeChildren`(position, count)
  `setValue`(value)
  `nbtPath`(child=None)

class `mcedit2.widgets.nbttree.nbttreemodel.``NBTTreeList`(tag, parent=None)

  Bases: `object`

  `isCompound` = False
  `isList` = True
  `child`(row)
  `childCount`()
  `childNumber`()
  `data`(column)
  `insertChildren`(position, count, tagID)
  `parent`()
  `removeChildren`(position, count)
  `setValue`(value)
  `nbtPath`(child=None)

class `mcedit2.widgets.nbttree.nbttreemodel.``NBTTreeItem`(tag, parent=None)

  Bases: `object`

  `isCompound` = False
  `isList` = False
  `childCount`()
  `childNumber`()
  `data`(column)
  `parent`()
  `setValue`(value)
  `nbtPath`()

class `mcedit2.widgets.nbttree.nbttreemodel.``NBTTreeModel`(rootTag, parent=None)

  Bases: `PySide.QtCore.QAbstractItemModel`

  `columnCount`(parent=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) at 0x0000000008484288>)
  `tagID`(index)
  `headerData`(section, orientation, role=PySide.QtCore.Qt.ItemDataRole.DisplayRole)
  `flags`(index)
  `data`(index, role=PySide.QtCore.Qt.ItemDataRole.DisplayRole)
  `getItem`(index)
  `rowCount`(parent=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) at 0x00000000084842C8>)
  `index`(row, column, parent=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) at 0x0000000008484308>)
  `parent`(index)
  `insertRow`(position, parent=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) at 0x0000000008484348>, tagID=None)
  `insertRows`(row, count, parent=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) at 0x00000000084843C8>, tagID=None)
  `removeRow`(position, parent=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) at 0x0000000008484448>)
  `removeRows`(position, rows, parent=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) at 0x0000000008484488>)
  `setData`(index, value, role=PySide.QtCore.Qt.ItemDataRole.EditRole)
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x00000000084844C8>

class `mcedit2.widgets.nbttree.nbttreemodel.``NBTFilterProxyModel`

  Bases: `PySide.QtGui.QSortFilterProxyModel`

  `lessThan`(left, right)
  `sort`(column, order)
  `staticMetaObject` = <PySide.QtCore.QMetaObject object at 0x0000000008484548>

## Module contents

__init__.py

### Navigation

- index
- modules |
- next |
- previous |
- mceditlib 0.1 documentation »
- mcedit2 package »
- mcedit2.widgets package »