Skip to content

Commit

Permalink
Start handling of parameter for pin_changed core event
Browse files Browse the repository at this point in the history
  • Loading branch information
joern274 committed Sep 18, 2023
1 parent 4bb7759 commit a90e15a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions include/hal_core/netlist/gate_library/enums/pin_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ namespace hal
GroupReorder,
GroupRename,
GroupTypeChange,
GroupDirChange,
GroupPinAssign,
GroupDelete,
PinCreate,
PinReorder,
PinRename,
PinTypeChange,
PinDirChange,
PinDelete
};
} // namespace hal
Original file line number Diff line number Diff line change
Expand Up @@ -525,11 +525,17 @@ namespace hal
{
Q_UNUSED(pev);
Q_UNUSED(pgid);
if ((int)m->get_id() == mModuleId)
{
if (!mIgnoreEventsFlag)
setModule(m);
}
if ((int)m->get_id() != mModuleId) return;

if (!mIgnoreEventsFlag)
setModule(m);

PortTreeItem* pti = nullptr;

if (pev < PinEvent::PinCreate)
pti = dynamic_cast<PortTreeItem*>(mIdToGroupItem.value(pgid));
else
pti = dynamic_cast<PortTreeItem*>(mIdToPinItem.value(pgid));
}

void ModulePinsTreeModel::dndGroupOnGroup(BaseTreeItem *droppedGroup, BaseTreeItem *onDroppedGroup)
Expand Down

0 comments on commit a90e15a

Please sign in to comment.