![]() |
HAL
|
Connects the hal-core events to the gui. More...
#include <netlist_relay.h>
Public Slots | |
void | debugHandleFileOpened () |
void | debugHandleFileClosed () |
void | handleThreadEvent (int type, int evt, void *object, u32 associated_data) |
Signals | |
void | signalThreadEvent (int type, int evt, void *object, u32 associated_data) |
void | netlistIdChanged (Netlist *n, const u32 associated_data) const |
void | netlistInputFilenameChanged (Netlist *n) const |
void | netlistDesignNameChanged (Netlist *n) const |
void | netlistDeviceNameChanged (Netlist *n) const |
void | netlistMarkedGlobalVcc (Netlist *n, const u32 associated_data) const |
void | netlistMarkedGlobalGnd (Netlist *n, const u32 associated_data) const |
void | netlistUnmarkedGlobalVcc (Netlist *n, const u32 associated_data) const |
void | netlistUnmarkedGlobalGnd (Netlist *n, const u32 associated_data) const |
void | netlistMarkedGlobalInput (Netlist *n, const u32 associated_data) const |
void | netlistMarkedGlobalOutput (Netlist *n, const u32 associated_data) const |
void | netlistUnmarkedGlobalInput (Netlist *n, const u32 associated_data) const |
void | netlistUnmarkedGlobalOutput (Netlist *n, const u32 associated_data) const |
void | moduleCreated (Module *m) const |
void | moduleRemoved (Module *m) const |
void | moduleNameChanged (Module *m) const |
void | moduleParentChanged (Module *m) const |
void | moduleSubmoduleAdded (Module *m, const u32 added_module) const |
void | moduleSubmoduleRemoved (Module *m, const u32 removed_module) const |
void | moduleGateAssigned (Module *m, const u32 assigned_gate) const |
void | moduleGateRemoved (Module *m, const u32 removed_gate) const |
void | modulePortsChanged (Module *m, PinEvent pev, u32 pgid) const |
void | moduleTypeChanged (Module *m) const |
void | moduleGatesAssignBegin (Module *m, u32 number_gates) const |
void | moduleGatesAssignEnd (Module *m, u32 number_gates) const |
void | moduleGatesRemoveBegin (Module *m, u32 number_gates) const |
void | moduleGatesRemoveEnd (Module *m, u32 number_gates) const |
void | gateCreated (Gate *g) const |
void | gateRemoved (Gate *g) const |
void | gateNameChanged (Gate *g) const |
void | gateBooleanFunctionChanged (Gate *g) const |
void | gateLocationChanged (Gate *g) const |
void | netCreated (Net *n) const |
void | netRemoved (Net *n) const |
void | netNameChanged (Net *n) const |
void | netSourceAdded (Net *n, const u32 src_gate_id) const |
void | netSourceRemoved (Net *n, const u32 src_gate_id) const |
void | netDestinationAdded (Net *n, const u32 dst_gate_id) const |
void | netDestinationRemoved (Net *n, const u32 dst_gate_id) const |
void | groupingCreated (Grouping *grp) const |
void | groupingRemoved (Grouping *grp) const |
void | groupingNameChanged (Grouping *grp) const |
void | groupingColorChanged (Grouping *grp) const |
void | groupingGateAssigned (Grouping *grp, u32 id) const |
void | groupingGateRemoved (Grouping *grp, u32 id) const |
void | groupingNetAssigned (Grouping *grp, u32 id) const |
void | groupingNetRemoved (Grouping *grp, u32 id) const |
void | groupingModuleAssigned (Grouping *grp, u32 id) const |
void | groupingModuleRemoved (Grouping *grp, u32 id) const |
Public Member Functions | |
NetlistRelay (QObject *parent=nullptr) | |
~NetlistRelay () | |
void | registerNetlistCallbacks () |
void | unregisterNetlistCallbacks () |
QColor | getModuleColor (const u32 id) |
ModuleColorManager * | getModuleColorManager () const |
void | changeElementNameDialog (ModuleItem::TreeItemType type, u32 id) |
void | changeModuleTypeDialog (const u32 id) |
void | changeModuleColorDialog (const u32 id) |
void | addChildModuleDialog (const u32 id) |
void | addToModuleDialog (const Node &node=Node()) |
void | deleteModule (const u32 id) |
void | reset () |
![]() | |
virtual const QMetaObject * | metaObject () const const |
QObject (QObject *parent) | |
virtual | ~QObject () |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
QString | objectName () const const |
void | setObjectName (const QString &name) |
bool | isWidgetType () const const |
bool | isWindowType () const const |
bool | signalsBlocked () const const |
bool | blockSignals (bool block) |
QThread * | thread () const const |
void | moveToThread (QThread *targetThread) |
int | startTimer (int interval, Qt::TimerType timerType) |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
void | killTimer (int id) |
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
const QObjectList & | children () const const |
void | setParent (QObject *parent) |
void | installEventFilter (QObject *filterObj) |
void | removeEventFilter (QObject *obj) |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
bool | disconnect (const QObject *receiver, const char *method) const const |
void | dumpObjectTree () |
void | dumpObjectInfo () |
void | dumpObjectTree () const const |
void | dumpObjectInfo () const const |
bool | setProperty (const char *name, const QVariant &value) |
QVariant | property (const char *name) const const |
QList< QByteArray > | dynamicPropertyNames () const const |
void | destroyed (QObject *obj) |
void | objectNameChanged (const QString &objectName) |
QObject * | parent () const const |
bool | inherits (const char *className) const const |
void | deleteLater () |
Q_DISABLE_COPY (Class) | |
Q_DISABLE_MOVE (Class) | |
Q_DISABLE_COPY_MOVE (Class) | |
T | qobject_cast (QObject *object) |
T | qobject_cast (const QObject *object) |
T | qFindChild (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
Q_CLASSINFO (Name, Value) | |
Q_INTERFACES (...) | |
Q_PROPERTY (...) | |
Q_ENUMS (...) | |
Q_FLAGS (...) | |
Q_ENUM (...) | |
Q_FLAG (...) | |
Q_ENUM_NS (...) | |
Q_FLAG_NS (...) | |
Q_OBJECT Q_OBJECT | |
Q_GADGET Q_GADGET | |
Q_NAMESPACE Q_NAMESPACE | |
Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
Q_SIGNALS Q_SIGNALS | |
Q_SIGNAL Q_SIGNAL | |
Q_SLOTS Q_SLOTS | |
Q_SLOT Q_SLOT | |
Q_EMIT Q_EMIT | |
Q_INVOKABLE Q_INVOKABLE | |
Q_REVISION Q_REVISION | |
Q_SET_OBJECT_NAME (Object) | |
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Additional Inherited Members | |
![]() | |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
![]() | |
typedef | QObjectList |
![]() | |
QObject * | sender () const const |
int | senderSignalIndex () const const |
int | receivers (const char *signal) const const |
bool | isSignalConnected (const QMetaMethod &signal) const const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
![]() | |
objectName | |
Connects the hal-core events to the gui.
The NetlistRelay is used to capture events from the hal-core and to delegate their handling to various gui objects. These objects may connect to one of the numerous Q_SIGNALS provided by this class to implement an individual reaction to the registered events.
Also the NetlistRelay stores the color for modules which can accessed via NetlistRelay::getModuleColor
Definition at line 54 of file netlist_relay.h.
|
explicit |
Constructor. Already connects this relay with the event system of the hal-core.
parent | - The parent QObject |
Definition at line 35 of file netlist_relay.cpp.
References Qt::BlockingQueuedConnection, QObject::connect(), debugHandleFileOpened(), hal::FileManager::fileOpened(), hal::FileManager::get_instance(), handleThreadEvent(), and signalThreadEvent().
hal::NetlistRelay::~NetlistRelay | ( | ) |
Destructor. Disconnects this relay from the event system of the hal-core.
Definition at line 42 of file netlist_relay.cpp.
References unregisterNetlistCallbacks().
void hal::NetlistRelay::addChildModuleDialog | ( | const u32 | id | ) |
Adds an empty child module to the specified module by asking the user for a new name in a dialogue.
id | - The id of the module that becomes the parent of the empty child module |
Definition at line 279 of file netlist_relay.cpp.
References hal::ActionCreateObject::exec(), hal::Netlist::get_module_by_id(), QInputDialog::getText(), hal::gNetlist, hal::UserActionObjectType::Module, name, QLineEdit::Normal, and hal::ActionCreateObject::setParentId().
Referenced by hal::ModuleContextMenu::addModuleSubmenu().
Opens 'add to module' Dialog. Node gets added to selected module or new module.
node | - The node to be added. If node is empty the current selection will be added. |
Definition at line 177 of file netlist_relay.cpp.
References QDialog::Accepted, hal::UserActionCompound::addAction(), hal::SelectionRelay::addModule(), hal::GraphLayouter::boxes(), hal::NodeBoxes::boxForNode(), hal::SelectionRelay::clear(), QSet::contains(), hal::GraphTabWidget::ensureSelectionVisible(), QDialog::exec(), hal::UserActionCompound::exec(), hal::gui_utility::firstCommonAncestor(), QString::fromStdString(), hal::Node::Gate, hal::GraphContext::gates(), hal::gContentManager, hal::Netlist::get_gate_by_id(), hal::Module::get_id(), hal::Netlist::get_module_by_id(), hal::Module::get_name(), hal::ContentManager::getContextManagerWidget(), hal::ContextManagerWidget::getCurrentContext(), hal::GraphContext::getExclusiveModuleId(), hal::ContentManager::getGraphTabWidget(), hal::GraphContext::getLayouter(), QInputDialog::getText(), hal::gNetlist, hal::gSelectionRelay, hal::GraphContext::id(), hal::Node::id(), hal::UserActionObject::id(), QSet::insert(), hal::Node::isModule(), hal::ModuleDialog::isNewModule(), hal::Node::isNull(), hal::Node::Module, hal::SelectionRelay::Module, hal::UserActionObjectType::Module, hal::GraphContext::modules(), name, QLineEdit::Normal, hal::UserAction::object(), hal::SelectionRelay::relaySelectionChanged(), hal::SelectionRelay::selectedGatesList(), hal::ModuleDialog::selectedId(), hal::SelectionRelay::selectedModulesList(), hal::SelectionRelay::setFocus(), hal::UserAction::setObject(), hal::ActionCreateObject::setParentId(), hal::GraphContext::setScheduleRemove(), hal::GraphContext::setSpecialUpdate(), hal::UserActionCompound::setUseCreatedObject(), hal::NodeBox::x(), and hal::NodeBox::y().
Referenced by hal::ModuleContextMenu::addGateSubmenu(), hal::ModuleContextMenu::addModuleSubmenu(), hal::ModuleContextMenu::addMultipleElementsSubmenu(), and hal::SelectionDetailsWidget::SelectionDetailsWidget().
void hal::NetlistRelay::changeElementNameDialog | ( | ModuleItem::TreeItemType | type, |
u32 | id | ||
) |
Changes the name of a specific netlist element by asking the user for a new name in a dialogue.
type | - The type of the element to rename |
id | - The id of the element to rename |
Definition at line 98 of file netlist_relay.cpp.
References hal::ActionRenameObject::exec(), QString::fromStdString(), test_plugin::g, hal::ModuleItem::Gate, hal::UserActionObjectType::Gate, hal::Netlist::get_gate_by_id(), hal::Netlist::get_module_by_id(), hal::Module::get_name(), hal::Netlist::get_net_by_id(), QInputDialog::getText(), hal::gNetlist, hal::ModuleItem::Module, hal::UserActionObjectType::Module, test::n, hal::ModuleItem::Net, hal::UserActionObjectType::Net, QLineEdit::Normal, hal::UserAction::setObject(), and type.
Referenced by hal::ModuleContextMenu::addGateSubmenu(), hal::ModuleContextMenu::addModuleSubmenu(), and hal::ModuleContextMenu::addNetSubmenu().
void hal::NetlistRelay::changeModuleColorDialog | ( | const u32 | id | ) |
Changes the type of a specific module by asking the user to select a new color in a color dialogue.
id | - The id of the module whose color is to be changed |
Definition at line 160 of file netlist_relay.cpp.
References hal::ActionSetObjectColor::exec(), hal::Netlist::get_module_by_id(), QColorDialog::getColor(), hal::gNetlist, QColor::isValid(), hal::UserActionObjectType::Module, and hal::UserAction::setObject().
Referenced by hal::ModuleContextMenu::addModuleSubmenu().
void hal::NetlistRelay::changeModuleTypeDialog | ( | const u32 | id | ) |
Changes the type of a specific module by asking the user for a new name in a 'New Type'-dialogue.
id | - The id of the module whose type is to be changed |
Definition at line 142 of file netlist_relay.cpp.
References hal::ActionSetObjectType::exec(), QString::fromStdString(), hal::Netlist::get_module_by_id(), hal::Module::get_type(), QInputDialog::getText(), hal::gNetlist, hal::UserActionObjectType::Module, QLineEdit::Normal, and hal::UserAction::setObject().
Referenced by hal::ModuleContextMenu::addModuleSubmenu().
|
slot |
Q_SLOT to handle that a netlist has been closed.
Definition at line 803 of file netlist_relay.cpp.
Referenced by hal::FileManager::closeFile().
|
slot |
Q_SLOT to handle that a netlist has been opened. Used to initially assign all modules a color.
Definition at line 796 of file netlist_relay.cpp.
References hal::Module::get_id(), hal::Netlist::get_modules(), hal::gNetlist, hal::ModuleColorSerializer::restore(), and hal::ModuleColorManager::setRandomColor().
Referenced by NetlistRelay().
void hal::NetlistRelay::deleteModule | ( | const u32 | id | ) |
Deletes the specified module from the netlist.
id | - The id of the module to remove |
Definition at line 299 of file netlist_relay.cpp.
References hal::UserActionCompound::addAction(), hal::UserActionObjectType::ContextView, hal::ActionDeleteObject::exec(), hal::UserActionCompound::exec(), hal::GraphContextManager::getContextByExclusiveModuleId(), hal::gGraphContextManager, hal::GraphContext::id(), hal::UserActionObjectType::Module, and hal::UserAction::setObject().
Referenced by hal::ModuleContextMenu::addModuleSubmenu().
|
signal |
Q_SIGNAL to notify that the set of boolean functions of a gate has been changed.
Relays the following hal-core event: GateEvent::event::boolean_function_changed
g | - The gate which boolean functions haven been changed |
Referenced by hal::GateDetailsTabWidget::GateDetailsTabWidget().
|
signal |
Q_SIGNAL to notify that a gate has been created.
Relays the following hal-core event: GateEvent::event::created
g | - The created gate |
|
signal |
Q_SIGNAL to notify that the location of a gate has been changed.
Relays the following hal-core event: GateEvent::event::location_changed
g | - The gate which position has been changed |
Referenced by hal::GateInfoTable::GateInfoTable().
|
signal |
Q_SIGNAL to notify that a gate has been renamed.
Relays the following hal-core event: GateEvent::event::name_changed
g | - The renamed gate |
Referenced by hal::GateInfoTable::GateInfoTable(), and hal::ModuleModel::ModuleModel().
|
signal |
Q_SIGNAL to notify that a gate has been removed from the netlist.
Relays the following hal-core event: GateEvent::event::removed
Note that when this signal is emitted the gate is not contained in the netlist anymore. However the pointer g remains valid.
g | - The removed gate |
Referenced by hal::GateInfoTable::GateInfoTable().
Gets the color that is assigned to a module.
id | - The id of the module |
Definition at line 88 of file netlist_relay.cpp.
References hal::ModuleColorManager::moduleColor().
Referenced by hal::SelectionDetailsIconProvider::getIcon(), hal::SelectionDetailsIconProvider::handleModuleColorChanged(), hal::ModuleSelectEntry::ModuleSelectEntry(), and hal::ModuleShader::update().
ModuleColorManager * hal::NetlistRelay::getModuleColorManager | ( | ) | const |
Accesses the module color manager
Definition at line 93 of file netlist_relay.cpp.
Referenced by hal::ActionDeleteObject::exec(), hal::ActionSetObjectColor::exec(), hal::ModuleDetailsTabWidget::ModuleDetailsTabWidget(), hal::SelectionTreeView::SelectionTreeView(), and hal::ModuleColorSerializer::serialize().
|
signal |
Q_SIGNAL to notify that a grouping has been recolored.
Relays the following hal-core event: GroupingEvent::event::color_changed
grp | - The renamed grouping |
Referenced by hal::GroupingTableModel::GroupingTableModel().
|
signal |
Q_SIGNAL to notify that a grouping has been created.
Relays the following hal-core event: GroupingEvent::event::created
grp | - The created grouping |
Referenced by hal::GroupingTableModel::GroupingTableModel().
Q_SIGNAL to notify that a gate has been assigned to a grouping.
Relays the following hal-core event: GroupingEvent::event::gate_assigned
grp | - The grouping with the newly assigned gate |
id | - The id of the assigned gate |
Referenced by hal::GraphicsScene::connectAll(), hal::GraphicsScene::disconnectAll(), and hal::GroupingsOfItemModel::GroupingsOfItemModel().
Q_SIGNAL to notify that a gate has been removed from a grouping.
Relays the following hal-core event: GroupingEvent::event::gate_removed
grp | - The grouping from which the gate has been removed |
id | - The id of the gate which has been removed from the grouping |
Referenced by hal::GraphicsScene::connectAll(), hal::GraphicsScene::disconnectAll(), and hal::GroupingsOfItemModel::GroupingsOfItemModel().
Q_SIGNAL to notify that a module has been assigned to a grouping.
Relays the following hal-core event: GroupingEvent::event::module_assigned
grp | - The grouping with the newly assigned module |
id | - The id of the assigned module |
Referenced by hal::GraphicsScene::connectAll(), hal::GraphicsScene::disconnectAll(), and hal::GroupingsOfItemModel::GroupingsOfItemModel().
Q_SIGNAL to notify that a module has been removed from a grouping.
Relays the following hal-core event: GroupingEvent::event::module_removed
grp | - The grouping from which the module has been removed |
id | - The id of the module which has been removed from the grouping |
Referenced by hal::GraphicsScene::connectAll(), hal::GraphicsScene::disconnectAll(), and hal::GroupingsOfItemModel::GroupingsOfItemModel().
|
signal |
Q_SIGNAL to notify that a grouping has been renamed.
Relays the following hal-core event: GroupingEvent::event::name_changed
grp | - The renamed grouping |
Referenced by hal::GroupingsOfItemModel::GroupingsOfItemModel(), and hal::GroupingTableModel::GroupingTableModel().
Q_SIGNAL to notify that a net has been assigned to a grouping.
Relays the following hal-core event: GroupingEvent::event::net_assigned
grp | - The grouping with the newly assigned net |
id | - The id of the assigned net |
Referenced by hal::GraphicsScene::connectAll(), hal::GraphicsScene::disconnectAll(), and hal::GroupingsOfItemModel::GroupingsOfItemModel().
Q_SIGNAL to notify that a net has been removed from a grouping.
Relays the following hal-core event: GroupingEvent::event::net_removed
grp | - The grouping from which the net has been removed |
id | - The id of the net which has been removed from the grouping |
Referenced by hal::GraphicsScene::connectAll(), hal::GraphicsScene::disconnectAll(), and hal::GroupingsOfItemModel::GroupingsOfItemModel().
|
signal |
Q_SIGNAL to notify that a grouping has been removed.
Relays the following hal-core event: GroupingEvent::event::removed
Note that when this signal is emitted the grouping is not contained in the netlist anymore. However the pointer grp remains valid.
grp | - The removed grouping |
Referenced by hal::GroupingsOfItemModel::GroupingsOfItemModel(), and hal::GroupingTableModel::GroupingTableModel().
|
slot |
|
signal |
Q_SIGNAL to notify that a module has been created.
Relays the following hal-core event: ModuleEvent::event::created
m | - The created module |
Referenced by hal::ModuleModel::ModuleModel().
Q_SIGNAL to notify that a gate has been assigned to a module.
Relays the following hal-core event: ModuleEvent::event::gate_assigned
m | - The module with a newly assigned gate |
assigned_gate | - The id of the assigned gate |
Referenced by hal::GateInfoTable::GateInfoTable(), hal::ModuleInfoTable::ModuleInfoTable(), and hal::ModuleModel::ModuleModel().
Q_SIGNAL to notify that a gate has been removed from a module.
Relays the following hal-core event: ModuleEvent::event::gate_assigned
m | - The module from which a gate is removed |
removed_gate | - The id of the removed gate |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), and hal::ModuleModel::ModuleModel().
Q_SIGNAL to notify that a certain amount of gates will be assigned to a module.
Relays the following hal-core event: ModuleEvent::event::gates_assign_begin
m | - The module to which gates will be assigned. |
number_gates | - The amount of gates to be assigned. |
Referenced by hal::ModuleModel::ModuleModel().
Q_SIGNAL to notify that a certain amount of gates has been assigned to a module.
Relays the following hal-core event: ModuleEvent::event::gates_assign_end
m | - The module to which gates has been assigned. |
number_gates | - The number of gates that has been assigned. |
Referenced by hal::ModuleModel::ModuleModel().
Q_SIGNAL to notify that a certain amount of gates will be removed from a module.
Relays the following hal-core event: ModuleEvent::event::gates_remove_begin
m | - The module from which gates will be removed. |
number_gates | - The amount of gates to be removed. |
Q_SIGNAL to notify that a certain amount of gates has been removed from a module.
Relays the following hal-core event: ModuleEvent::event::gates_remove_end
m | |
number_gates |
|
signal |
Q_SIGNAL to notify that a module has been renamed.
Relays the following hal-core event: ModuleEvent::event::name_changed
m | - The renamed module |
Referenced by hal::GateInfoTable::GateInfoTable(), hal::GraphContext::GraphContext(), hal::ModuleInfoTable::ModuleInfoTable(), and hal::ModuleModel::ModuleModel().
|
signal |
Q_SIGNAL to notify that the parent of a module has been changed.
Relays the following hal-core event: ModuleEvent::event::parent_changed
m | - The module with a new parent |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), and hal::ModuleModel::ModuleModel().
Q_SIGNAL to notify that a port of a module has been changed.
Relays the following hal-core event: ModuleEvent::event::pin_changed
m | - The module with the changed port |
respective_net | - The id of the net of the renamed input port |
Referenced by hal::ModulePinsTreeModel::ModulePinsTreeModel(), and hal::ModuleTableModel::ModuleTableModel().
|
signal |
Q_SIGNAL to notify that a module has been removed from the netlist.
Relays the following hal-core event: ModuleEvent::event::created
Note that when this signal is emitted the module is not contained in the netlist anymore. However the pointer m remains valid.
m | - The removed module |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), hal::ModuleModel::ModuleModel(), and hal::ModuleTableModel::ModuleTableModel().
Q_SIGNAL to notify that a submodule has been added to a module.
Relays the following hal-core event: ModuleEvent::event::submodule_added
m | - The module with a new submodule |
added_module | - The id of the added submodule |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), and hal::ModuleModel::ModuleModel().
|
signal |
Q_SIGNAL to notify that a submodule has been removed from a module.
Relays the following hal-core event: ModuleEvent::event::submodule_added
m | - The module from which a submodule has been removed |
removed_module | - The id of the removed submodule |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), hal::ModuleModel::ModuleModel(), and hal::ModuleWidget::ModuleWidget().
|
signal |
Q_SIGNAL to notify that the type of a module has been changed.
Relays the following hal-core event: ModuleEvent::event::type_changed
m | - The module with a new type |
Referenced by hal::ModuleInfoTable::ModuleInfoTable().
|
signal |
Q_SIGNAL to notify that a net has been created.
Relays the following hal-core event: NetEvent::event::created
n | - The created net |
Referenced by hal::ModuleModel::ModuleModel().
Q_SIGNAL to notify that a destination has been added to a net.
Relays the following hal-core event: NetEvent::event::dst_added
n | - The net with a new destination |
dst_gate_id | - The id of the destination gate |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), hal::ModuleModel::ModuleModel(), and hal::NetInfoTable::NetInfoTable().
Q_SIGNAL to notify that a destination has been removed from a net.
Relays the following hal-core event: NetEvent::event::dst_removed
n | - The net with the removed destination |
dst_gate_id | - The id of the gate at the removed destination |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), hal::ModuleModel::ModuleModel(), and hal::NetInfoTable::NetInfoTable().
|
signal |
Q_SIGNAL to notify that the design name of the netlist has been changed.
Relays the following hal-core event: NetlistEvent::event::design_name_changed
n | - The affected netlist |
|
signal |
Q_SIGNAL to notify that the device name of the netlist has been changed.
Relays the following hal-core event: NetlistEvent::event::device_name_changed
n | - The affected netlist |
Q_SIGNAL to notify that the netlists id has been changed.
Relays the following hal-core event: NetlistEvent::event::id_changed
n | - The affected netlist |
associated_data | - The old netlist id |
|
signal |
Q_SIGNAL to notify that the input filename of the netlist has been changed.
Relays the following hal-core event: NetlistEvent::event::input_filename_changed
n | - The affected netlist |
|
signal |
Q_SIGNAL to notify that a gate has been marked as a global gnd gate.
Relays the following hal-core event: NetlistEvent::event::marked_global_gnd
n | - The affected netlist |
associated_data | - The id of the gate that has been marked as a global gnd gate |
|
signal |
Q_SIGNAL to notify that a gate has been marked as a global input net.
Relays the following hal-core event: NetlistEvent::event::marked_global_input
n | - The affected netlist |
associated_data | - The id of the newly marked global input net |
Referenced by hal::NetInfoTable::NetInfoTable().
|
signal |
Q_SIGNAL to notify that a gate has been marked as a global output net.
Relays the following hal-core event: NetlistEvent::event::marked_global_output
n | - The affected netlist |
associated_data | - The id of the newly marked global output net |
Referenced by hal::NetInfoTable::NetInfoTable().
|
signal |
Q_SIGNAL to notify that a gate has been marked as a global vcc gate.
Relays the following hal-core event: NetlistEvent::event::marked_global_vcc
n | - The affected netlist |
associated_data | - The id of the gate that has been marked as a global vcc gate |
|
signal |
Q_SIGNAL to notify that a gate has been unmarked from being a global gnd gate.
Relays the following hal-core event: NetlistEvent::event::unmarked_global_gnd
n | - The affected netlist |
associated_data | - The id of the gate that is not a global gnd gate anymore |
|
signal |
Q_SIGNAL to notify that a net has been unmarked from being a global input net.
Relays the following hal-core event: NetlistEvent::event::unmarked_global_input
n | - The affected netlist |
associated_data | - The id of the net that is not a global input net anymore |
Referenced by hal::NetInfoTable::NetInfoTable().
|
signal |
Q_SIGNAL to notify that a net has been unmarked from being a global output net.
Relays the following hal-core event: NetlistEvent::event::unmarked_global_output
n | - The affected netlist |
associated_data | - The id of the net that is not a global output net anymore |
Referenced by hal::NetInfoTable::NetInfoTable().
|
signal |
Q_SIGNAL to notify that a gate has been unmarked from being a global vcc gate.
Relays the following hal-core event: NetlistEvent::event::unmarked_global_vcc
n | - The affected netlist |
associated_data | - The id of the gate that is not a global vcc gate anymore |
|
signal |
Q_SIGNAL to notify that a net has been renamed.
Relays the following hal-core event: NetEvent::event::name_changed
n | - The renamed net |
Referenced by hal::ModuleModel::ModuleModel(), and hal::NetInfoTable::NetInfoTable().
|
signal |
Q_SIGNAL to notify that a net has been removed from the netlist.
Relays the following hal-core event: NetEvent::event::removed
Note that when this signal is emitted the net is not contained in the netlist anymore. However the pointer n remains valid.
n | - The removed net |
Referenced by hal::ModuleModel::ModuleModel(), and hal::NetInfoTable::NetInfoTable().
Q_SIGNAL to notify that a source has been added to a net.
Relays the following hal-core event: NetEvent::event::src_added
n | - The net with a new source |
src_gate_id | - The id of the source gate |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), hal::ModuleModel::ModuleModel(), and hal::NetInfoTable::NetInfoTable().
Q_SIGNAL to notify that a source has been removed from a net.
Relays the following hal-core event: NetEvent::event::src_removed
n | - The net with the removed source |
src_gate_id | - The id of the gate at the removed source |
Referenced by hal::ModuleInfoTable::ModuleInfoTable(), hal::ModuleModel::ModuleModel(), and hal::NetInfoTable::NetInfoTable().
void hal::NetlistRelay::registerNetlistCallbacks | ( | ) |
Adds the relay functions of the NetlistRelay as callbacks for hal-core events. Must be called after netlist is loaded
Definition at line 58 of file netlist_relay.cpp.
References hal::Netlist::get_event_handler(), hal::gNetlist, and hal::EventHandler::register_callback().
Referenced by hal::FileManager::deprecatedOpenFile(), hal::FileManager::newProject(), and hal::FileManager::openProject().
void hal::NetlistRelay::reset | ( | ) |
The FileStatusManager is only notified once. Afterwards this function has to be called to enable the notification again.
Definition at line 321 of file netlist_relay.cpp.
|
signal |
Referenced by NetlistRelay().
void hal::NetlistRelay::unregisterNetlistCallbacks | ( | ) |
Unregister callback entries in hal-core. Must be called when netlist gets closed
Definition at line 47 of file netlist_relay.cpp.
References hal::Netlist::get_event_handler(), hal::gNetlist, and hal::EventHandler::unregister_callback().
Referenced by hal::FileManager::closeFile(), and ~NetlistRelay().