|
HAL
|
#include <module_pins_tree_model.h>


Public Types | |
| enum | Type { None , Pin , Group } |
Public Member Functions | |
| ModulePinsTreeItem (Type itype, u32 id_, QString pinName, PinDirection dir, PinType ptype, int inx, QString netName=QString()) | |
| ModulePinsTreeItem () | |
| QVariant | getData (int column) const override |
| void | setData (QList< QVariant > data) override |
| void | setDataAtColumn (int column, QVariant &data) override |
| void | appendData (QVariant data) override |
| int | getColumnCount () const override |
| void | setItemType (Type tp) |
| Type | itemType () const |
| QString | name () const |
| void | setName (const QString &nam) |
| void | setPinType (PinType ptype) |
| void | setPinDirection (PinDirection dir) |
| void | setIndex (int inx) |
| u32 | id () const |
Public Member Functions inherited from hal::BaseTreeItem | |
| BaseTreeItem () | |
| BaseTreeItem (QList< QVariant > columnData) | |
| virtual | ~BaseTreeItem () |
| virtual BaseTreeItem * | getParent () const |
| virtual void | setParent (BaseTreeItem *parent) |
| virtual BaseTreeItem * | getChild (int row) const |
| virtual QList< BaseTreeItem * > | getChildren () const |
| virtual void | appendChild (BaseTreeItem *child) |
| virtual void | insertChild (int index, BaseTreeItem *child) |
| virtual BaseTreeItem * | removeChildAtPos (int row) |
| virtual bool | removeChild (BaseTreeItem *child) |
| virtual int | getChildCount () const |
| virtual int | getRowForChild (const BaseTreeItem *child) const |
| virtual int | getOwnRow () |
Additional Inherited Members | |
Protected Attributes inherited from hal::BaseTreeItem | |
| BaseTreeItem * | mParent |
| QList< BaseTreeItem * > | mChildren |
Definition at line 41 of file module_pins_tree_model.h.
| Enumerator | |
|---|---|
| None | |
| Pin | |
| Group | |
Definition at line 44 of file module_pins_tree_model.h.
| hal::ModulePinsTreeItem::ModulePinsTreeItem | ( | Type | itype, |
| u32 | id_, | ||
| QString | pinName, | ||
| PinDirection | dir, | ||
| PinType | ptype, | ||
| int | inx, | ||
| QString | netName = QString() |
||
| ) |
Definition at line 18 of file module_pins_tree_model.cpp.
|
inline |
Definition at line 58 of file module_pins_tree_model.h.
|
overridevirtual |
Appends a new column to the item.
| data | - The data of the new column. |
Implements hal::BaseTreeItem.
Definition at line 74 of file module_pins_tree_model.cpp.
References hal::data.
|
overridevirtual |
Get the number of currently stored column data.
Implements hal::BaseTreeItem.
Definition at line 79 of file module_pins_tree_model.cpp.
|
overridevirtual |
Get the data of a specific column (most in the form of a string).
| column | - The requested column. |
Implements hal::BaseTreeItem.
Definition at line 22 of file module_pins_tree_model.cpp.
References hal::enum_to_string(), QString::fromStdString(), and Group.
Referenced by hal::ModulePinsTree::handleContextMenuRequested().
|
inline |
Returns the pin-id if the item represents a pin or the pingroup-id if the item represents a pingroup.
| item | - The item. |
Definition at line 79 of file module_pins_tree_model.h.
Referenced by hal::ModulePinsTreeModel::getNetFromItem(), hal::ModulePinsTree::handleContextMenuRequested(), hal::ModulePinsTreeModel::handleModulePortsChanged(), and hal::ModulePinsTreeModel::mimeData().
|
inline |
Definition at line 65 of file module_pins_tree_model.h.
Referenced by hal::ModulePinsTreeModel::dropMimeData(), hal::ModulePinsTreeModel::getNetFromItem(), hal::ModulePinsTree::handleContextMenuRequested(), and hal::ModulePinsTreeModel::mimeData().
|
inline |
Definition at line 66 of file module_pins_tree_model.h.
Sets the data for all columns.
| data | - Each entry in the list represents one column. |
Implements hal::BaseTreeItem.
Definition at line 42 of file module_pins_tree_model.cpp.
References hal::data.
|
overridevirtual |
Sets the data for a specified column. The index must be within already existing boundaries (for example, add dummy data beforehand).
| index | - The column to set the new data. |
| data | - The new column data. |
Implements hal::BaseTreeItem.
Definition at line 52 of file module_pins_tree_model.cpp.
References hal::data.
|
inline |
Definition at line 70 of file module_pins_tree_model.h.
|
inline |
Definition at line 64 of file module_pins_tree_model.h.
|
inline |
Definition at line 67 of file module_pins_tree_model.h.
Referenced by hal::ModulePinsTreeModel::handleModulePortsChanged().
|
inline |
Definition at line 69 of file module_pins_tree_model.h.
Referenced by hal::ModulePinsTreeModel::handleModulePortsChanged().
|
inline |
Definition at line 68 of file module_pins_tree_model.h.
Referenced by hal::ModulePinsTreeModel::handleModulePortsChanged().