![]() |
HAL
|
User interface to manage all GraphContexts. More...
#include <graph_context_manager.h>
Signals | |
void | contextCreated (GraphContext *context) |
void | contextRenamed (GraphContext *context) |
void | deletingContext (GraphContext *context) |
void | directoryRenamed (ContextDirectory *directory) |
void | deletingDirectory (ContextDirectory *directory) |
Static Public Attributes | |
static SettingsItemCheckbox * | sSettingNetGroupingToPins |
static SettingsItemCheckbox * | sSettingPanOnMiddleButton |
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 | |
User interface to manage all GraphContexts.
The GraphContextManager is a manager class that contains and manages all GraphContexts.
It can be used to create, delete or rename GraphContexts.
Moreover it is responsible for applying changes of the Netlist to the contexts. Therefore it inspects which contexts are affected by the corresponding changes to only adjust the relevant contexts.
Definition at line 59 of file graph_context_manager.h.
hal::GraphContextManager::GraphContextManager | ( | ) |
Constructor.
Definition at line 45 of file graph_context_manager.cpp.
void hal::GraphContextManager::clear | ( | ) |
Deletes all contexts.
Definition at line 700 of file graph_context_manager.cpp.
References hal::ContextTreeModel::clear(), and hal::ContextTreeModel::list().
|
signal |
Q_SIGNAL that notifies about the creation of a new context by the context manager.
context | - The created context |
Referenced by createNewContext(), hal::GraphTabWidget::GraphTabWidget(), and restoreFromFile().
|
signal |
Q_SIGNAL that notifies about the renaming of a context by the context manager.
context | - The renamed context |
Referenced by hal::GraphTabWidget::GraphTabWidget(), and renameGraphContextAction().
bool hal::GraphContextManager::contextWithNameExists | ( | const QString & | name | ) | const |
Checks if a context with the given name exists.
name | - The context name |
Definition at line 299 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list(), and name.
Referenced by hal::GuiApiClasses::View::getId(), hal::GuiApiClasses::View::isolateInNew(), nextViewName(), and hal::GuiApiClasses::View::setName().
GraphContext * hal::GraphContextManager::createNewContext | ( | const QString & | name, |
u32 | parentId = 0 |
||
) |
Creates a new context with the given name. The context is initialized with the default GraphLayouter and GraphShader.
Emits the signal contextCreated.
name | - The name of the new context. Names don't have to be unique. |
Definition at line 111 of file graph_context_manager.cpp.
References hal::ContextTreeModel::addContext(), hal::SettingsItemCheckbox::boolChanged(), QObject::connect(), contextCreated(), getDefaultLayouter(), getDefaultShader(), hal::ContextTreeModel::getDirectory(), name, QObject::Q_EMIT(), hal::GraphContext::scene(), hal::GraphContext::setLayouter(), hal::GraphContext::setShader(), QVariant::toBool(), and hal::SettingsItemCheckbox::value().
Referenced by hal::ActionCreateObject::exec().
ContextDirectory * hal::GraphContextManager::createNewDirectory | ( | const QString & | name, |
u32 | parentId = 0 |
||
) |
Definition at line 66 of file graph_context_manager.cpp.
References hal::ContextTreeModel::addDirectory(), hal::ContextTreeModel::getDirectory(), and name.
Referenced by hal::ActionCreateObject::exec().
void hal::GraphContextManager::deleteContextDirectory | ( | ContextDirectory * | ctxDir | ) |
Removes and deletes the given ContextDiretory. The passed pointer will be a nullptr afterwards.
ctxDir | - The ContextDirectory to delete. |
Definition at line 232 of file graph_context_manager.cpp.
References deletingDirectory(), QObject::Q_EMIT(), and hal::ContextTreeModel::removeDirectory().
Referenced by hal::ActionDeleteObject::exec().
void hal::GraphContextManager::deleteGraphContext | ( | GraphContext * | ctx | ) |
Removes and deletes the given GraphContext. The passed pointer will be a nullptr afterwards.
Emits deletingContext before the deletion.
ctx | - The graph context to delete. |
Definition at line 223 of file graph_context_manager.cpp.
References deletingContext(), QObject::Q_EMIT(), and hal::ContextTreeModel::removeContext().
Referenced by hal::ActionDeleteObject::exec(), handleModuleGateRemoved(), handleModuleRemoved(), handleModuleSubmoduleRemoved(), and restoreFromFile().
|
signal |
Q_SIGNAL that notifies that a context is about to be deleted.
This signal is emitted before the context is removed from the manager and deleted.
context | - The context that is about to be deleted |
Referenced by deleteGraphContext(), and hal::GraphTabWidget::GraphTabWidget().
|
signal |
Q_SIGNAL that notifies that a directory is about to be deleted. This signal is emitted before the directory is deleted.
directory | - The directory that is about to be deleted |
Referenced by deleteContextDirectory().
|
signal |
Q_SIGNAL that notifies about the renaming of a directory by the context manager.
directory | - The renamed directory |
Referenced by renameContextDirectoryAction().
GraphContext * hal::GraphContextManager::getCleanContext | ( | const QString & | name | ) | const |
Definition at line 268 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list(), and name.
GraphContext * hal::GraphContextManager::getContextByExclusiveModuleId | ( | u32 | module_id | ) | const |
Gets the context which is exclusively showing the module with the id module_id.
Definition at line 278 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list().
Referenced by hal::NetlistRelay::deleteModule(), and openModuleInView().
GraphContext * hal::GraphContextManager::getContextById | ( | u32 | id | ) | const |
Definition at line 246 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list().
Referenced by hal::GuiApiClasses::View::addTo(), hal::GuiApiClasses::View::deleteView(), hal::ActionAddItemsToObject::exec(), hal::ActionDeleteObject::exec(), hal::ActionFoldModule::exec(), hal::ActionMoveNode::exec(), hal::ActionRemoveItemsFromObject::exec(), hal::ActionRenameObject::exec(), hal::ActionUnfoldModule::exec(), hal::GuiApiClasses::View::foldModule(), hal::GuiApiClasses::View::getGates(), hal::GuiApiClasses::View::getGridPlacement(), hal::GuiApiClasses::View::getModules(), hal::GuiApiClasses::View::getName(), getParentId(), hal::PythonEditor::handleThreadFinished(), hal::GuiApiClasses::View::isolateInNew(), openModuleInView(), hal::GuiApiClasses::View::removeFrom(), hal::LayoutLockerManager::removeLock(), restoreFromFile(), setContextId(), hal::GuiApiClasses::View::setName(), and hal::GuiApiClasses::View::unfoldModule().
QVector< GraphContext * > hal::GraphContextManager::getContexts | ( | ) | const |
Gets a list of all current GraphContexts.
Definition at line 241 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list().
Referenced by hal::GuiApiClasses::View::getId(), hal::GuiApiClasses::View::getIds(), hal::PythonEditor::handleActionRun(), and hal::GuiApiClasses::View::isolateInNew().
ContextTreeModel * hal::GraphContextManager::getContextTreeModel | ( | ) | const |
Gets the tree model for the contexts.
Definition at line 695 of file graph_context_manager.cpp.
Referenced by hal::ContextManagerWidget::ContextManagerWidget(), hal::ActionDeleteObject::exec(), hal::ActionMoveItem::exec(), hal::GuiApiClasses::View::getChildDirectories(), hal::GuiApiClasses::View::getChildViews(), hal::GuiApiClasses::View::getCurrentDirectory(), hal::GuiApiClasses::View::moveDirectory(), hal::GuiApiClasses::View::moveView(), and hal::GuiApiClasses::View::setCurrentDirectory().
GraphLayouter * hal::GraphContextManager::getDefaultLayouter | ( | GraphContext *const | context | ) | const |
Creates an instance of the StandardGraphLayouter used for a certain GraphContext.
Note: The calling party must assure that the layouter is delegated to the context using GraphContext::setLayouter
context | - The context the layouter works on |
Definition at line 676 of file graph_context_manager.cpp.
References hal::SettingsItemCheckbox::boolChanged(), QObject::connect(), hal::GraphLayouter::setDumpJunctionEnabled(), hal::StandardGraphLayouter::setLayoutBoxesEnabled(), hal::StandardGraphLayouter::setParseLayoutEnabled(), QVariant::toBool(), and hal::SettingsItemCheckbox::value().
Referenced by createNewContext(), and restoreFromFile().
GraphShader * hal::GraphContextManager::getDefaultShader | ( | GraphContext *const | context | ) | const |
Creates an instance of ModuleShader used for a certain GraphContext.
Note: The calling party must assure that the shader is delegated to the context using GraphContext::setShader
context | - The context the shader works on |
Definition at line 690 of file graph_context_manager.cpp.
Referenced by createNewContext(), and restoreFromFile().
ContextDirectory * hal::GraphContextManager::getDirectoryById | ( | u32 | id | ) | const |
Definition at line 256 of file graph_context_manager.cpp.
References hal::ContextTreeModel::getDirectory().
Referenced by hal::ActionDeleteObject::exec(), and hal::ActionRenameObject::exec().
Definition at line 91 of file graph_context_manager.cpp.
References getContextById(), hal::ContextTreeModel::getDirectory(), hal::ContextTreeItem::getId(), hal::ContextTreeModel::getIndexFromContext(), hal::BaseTreeModel::getItemFromIndex(), hal::BaseTreeItem::getParent(), and QModelIndex::isValid().
Referenced by hal::ActionDeleteObject::exec().
void hal::GraphContextManager::handleGateNameChanged | ( | Gate * | g | ) | const |
Handler to be called after a gate has been renamed.
Used to apply the changes in the affected contexts.
g | - The renamed gate |
Definition at line 547 of file graph_context_manager.cpp.
References test_plugin::g, and hal::ContextTreeModel::list().
void hal::GraphContextManager::handleGateRemoved | ( | Gate * | g | ) | const |
Handler to be called after a gate has been removed.
Used to apply the changes in the affected contexts.
g | - The removed gate |
Definition at line 540 of file graph_context_manager.cpp.
References test_plugin::g, and hal::ContextTreeModel::list().
void hal::GraphContextManager::handleMarkedGlobalInput | ( | u32 | mNetId | ) |
Handler to be called after a net has been marked as a global input net.
Used to apply the changes in the affected contexts.
mNetId | - The id of the net that has been marked as a global input |
Definition at line 632 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list().
void hal::GraphContextManager::handleMarkedGlobalOutput | ( | u32 | mNetId | ) |
Handler to be called after a net has been marked as a global output net.
Used to apply the changes in the affected contexts.
mNetId | - The id of the net that has been marked as a global output |
Definition at line 644 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list().
void hal::GraphContextManager::handleModuleColorChanged | ( | Module * | m | ) | const |
Handler to be called after a module's color has been changed. Used to apply the changes in the affected contexts.
m | - The module which color has been changed |
Definition at line 354 of file graph_context_manager.cpp.
References test_plugin::g, hal::Module::get_gates(), hal::Module::get_id(), QSet::insert(), and hal::ContextTreeModel::list().
Referenced by hal::ActionSetObjectColor::exec().
void hal::GraphContextManager::handleModuleCreated | ( | Module * | m | ) | const |
Handler to be called after a module has been created. Used to apply the changes in the affected contexts.
m | - The module that has been created |
Definition at line 311 of file graph_context_manager.cpp.
References hal::Module::get_id(), and hal::ContextTreeModel::list().
void hal::GraphContextManager::handleModuleGateAssigned | ( | Module * | m, |
const u32 | inserted_gate | ||
) | const |
Handler to be called after a gate was newly assigned to a module.
Used to apply the changes in the affected contexts.
m | - The module with the new gate |
inserted_gate | - The id of the newly assigned gate |
Definition at line 430 of file graph_context_manager.cpp.
References QList::append(), QSet::contains(), hal::Module::get_id(), hal::Module::get_parent_module(), hal::ContextTreeModel::list(), and QSet::remove().
Handler to be called after a gate was removed from a module.
Used to apply the changes in the affected contexts.
m | - The module with the removed gate |
removed_gate | - The id of the removed gate |
new code line above should cover commented lines below else if (context->gates().contains(removed_gate)) context->scheduleSceneUpdate();
Definition at line 465 of file graph_context_manager.cpp.
References deleteGraphContext(), hal::Node::Gate, hal::Module::get_gates(), hal::Module::get_id(), hal::Module::get_submodules(), and hal::ContextTreeModel::list().
void hal::GraphContextManager::handleModuleNameChanged | ( | Module * | m | ) | const |
Handler to be called after a module's name has been changed. Used to apply the changes in the affected contexts.
m | - The module that has been changed |
Definition at line 340 of file graph_context_manager.cpp.
References hal::Module::get_id(), and hal::ContextTreeModel::list().
Handler to be called after a port of a module has been changed.
Used to apply the changes in the affected contexts.
m | - The module with the changed port |
Definition at line 528 of file graph_context_manager.cpp.
References hal::Module::get_id(), and hal::ContextTreeModel::list().
void hal::GraphContextManager::handleModuleRemoved | ( | Module * | m | ) |
Handler to be called after a module has been removed. Used to apply the changes in the affected contexts.
The module is already removed from the netlist at this point. However the module isn't deleted yet (not nullptr).
m | - The module that has been removed |
Definition at line 321 of file graph_context_manager.cpp.
References deleteGraphContext(), hal::Module::get_id(), and hal::ContextTreeModel::list().
void hal::GraphContextManager::handleModuleSubmoduleAdded | ( | Module * | m, |
const u32 | added_module | ||
) | const |
Handler to be called after a submodule was added to a module.
Used to apply the changes in the affected contexts.
m | - The module with the new submodule |
added_module | - The id of the added submodule |
Definition at line 368 of file graph_context_manager.cpp.
References QList::append(), QSet::contains(), hal::Module::get_id(), hal::Module::get_parent_module(), hal::ContextTreeModel::list(), and QSet::remove().
void hal::GraphContextManager::handleModuleSubmoduleRemoved | ( | Module * | m, |
const u32 | removed_module | ||
) |
Handler to be called after a submodule was removed from a module.
Used to apply the changes in the affected contexts.
m | - The module with the removed submodule |
removed_module | - The id of the removed submodule |
Definition at line 410 of file graph_context_manager.cpp.
References deleteGraphContext(), hal::Module::get_id(), hal::ContextTreeModel::list(), and hal::Node::Module.
void hal::GraphContextManager::handleModuleTypeChanged | ( | Module * | m | ) | const |
Handler to be called after a module's type has been changed. Used to apply the changes in the affected contexts.
m | - The module that has been changed |
Definition at line 347 of file graph_context_manager.cpp.
References hal::Module::get_id(), and hal::ContextTreeModel::list().
void hal::GraphContextManager::handleNetCreated | ( | Net * | n | ) | const |
Handler to be called after a new net has been created.
Currently no logic is done here.
n | - The new net |
Definition at line 554 of file graph_context_manager.cpp.
References test::n.
Handler to be called after a destination has been added to a net.
Used to apply the changes in the affected contexts.
n | - The net with the new destination |
dst_gate_id | - The id of the gate that contains the destination pin |
Definition at line 604 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list(), and test::n.
Handler to be called after a destination has been removed from a net.
Used to apply the changes in the affected contexts.
n | - The net with the removed destination |
dst_gate_id | - The id of the gate that contains the destination pin |
Definition at line 617 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list(), test::n, and UNUSED.
void hal::GraphContextManager::handleNetNameChanged | ( | Net * | n | ) | const |
Handler to be called after a net has been renamed.
Used to apply the changes in the affected contexts.
n | - The renamed net |
Definition at line 569 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list(), and test::n.
void hal::GraphContextManager::handleNetRemoved | ( | Net * | n | ) | const |
Handler to be called after a net has been removed.
Used to apply the changes in the affected contexts.
n | - The removed net |
Definition at line 562 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list(), and test::n.
Handler to be called after a source has been added to a net.
Used to apply the changes in the affected contexts.
n | - The net with the new source |
src_gate_id | - The id of the gate that contains the source pin |
Definition at line 576 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list(), and test::n.
Handler to be called after a source has been removed from a net.
Used to apply the changes in the affected contexts.
n | - The net with the removed source |
src_gate_id | - The id of the gate that contains the source pin |
Definition at line 589 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list(), test::n, and UNUSED.
bool hal::GraphContextManager::handleSaveTriggered | ( | const QString & | filename | ) |
Definition at line 826 of file graph_context_manager.cpp.
References QJsonArray::append(), QJsonDocument::Compact, hal::ContextTreeModel::directoryList(), hal::ContextTreeModel::getIndexFromContext(), hal::BaseTreeModel::getItemFromIndex(), hal::BaseTreeItem::getParent(), hal::BaseTreeModel::getRootItem(), hal::ContextTreeModel::list(), QFile::open(), QObject::parent(), QIODevice::write(), and QIODevice::WriteOnly.
Referenced by hal::GraphContextSerializer::serialize().
void hal::GraphContextManager::handleUnmarkedGlobalInput | ( | u32 | mNetId | ) |
Handler to be called after a net is no longer a global input net.
Used to apply the changes in the affected contexts.
mNetId | - The id of the net that is no longer a global input |
Definition at line 656 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list().
void hal::GraphContextManager::handleUnmarkedGlobalOutput | ( | u32 | mNetId | ) |
Handler to be called after a net is no longer a global output net.
Used to apply the changes in the affected contexts.
mNetId | - The id of the net that is no longer a global output |
Definition at line 666 of file graph_context_manager.cpp.
References hal::ContextTreeModel::list().
bool hal::GraphContextManager::moveItem | ( | u32 | itemId, |
bool | isDirectory, | ||
u32 | parentId, | ||
int | row = -1 |
||
) |
Definition at line 73 of file graph_context_manager.cpp.
References hal::ContextTreeModel::getContext(), hal::ContextTreeModel::getDirectory(), hal::BaseTreeModel::getRootItem(), and hal::ContextTreeModel::moveItem().
Referenced by hal::ActionMoveItem::exec().
|
inline |
Definition at line 412 of file graph_context_manager.h.
References QString::arg().
Referenced by hal::ActionCreateObject::exec().
Generate next view name with given prefix
prefix |
Definition at line 288 of file graph_context_manager.cpp.
References QString::arg(), contextWithNameExists(), and name.
Referenced by hal::GuiApiClasses::View::isolateInNew(), openGateInView(), and openNetEndpointsInView().
void hal::GraphContextManager::openGateInView | ( | u32 | gateId | ) |
Creates and opens a new view that contains the given gate.
netId | - The gate to open. |
Definition at line 168 of file graph_context_manager.cpp.
References hal::UserActionCompound::addAction(), hal::UserActionObjectType::ContextView, hal::UserActionCompound::exec(), hal::gGraphContextManager, name, nextViewName(), and hal::UserActionCompound::setUseCreatedObject().
Referenced by hal::ModuleContextMenu::addGateSubmenu(), and hal::ModuleWidget::handleItemDoubleClicked().
void hal::GraphContextManager::openModuleInView | ( | u32 | moduleId, |
bool | unfold | ||
) |
Opens a existing view that contains the given module, otherwise creates a new context and opens it.
moduleId | - The module to open. |
unfold | - True to unfold the module upon opening. |
Definition at line 138 of file graph_context_manager.cpp.
References hal::UserActionCompound::addAction(), hal::UserActionObjectType::ContextView, hal::UserActionCompound::exec(), QString::fromStdString(), hal::gContentManager, hal::Module::get_id(), hal::Netlist::get_module_by_id(), hal::Module::get_name(), getContextByExclusiveModuleId(), getContextById(), hal::ContentManager::getContextManagerWidget(), hal::gGraphContextManager, hal::gNetlist, hal::ContextManagerWidget::handleOpenContextClicked(), hal::UserActionObject::id(), hal::ShortestPath::module(), name, QString::number(), hal::UserAction::object(), hal::ContextManagerWidget::selectViewContext(), hal::GraphContext::setDirty(), hal::GraphContext::setExclusiveModuleId(), and hal::UserActionCompound::setUseCreatedObject().
Referenced by hal::ModuleContextMenu::addModuleSubmenu(), and hal::ModuleWidget::handleItemDoubleClicked().
void hal::GraphContextManager::openNetEndpointsInView | ( | u32 | netId | ) |
Creates and opens a new view that contains the sources and desinations of the given net.
netId | - The net to open. |
Definition at line 179 of file graph_context_manager.cpp.
References hal::UserActionCompound::addAction(), hal::PlacementHint::addGridPosition(), hal::UserActionObjectType::ContextView, hal::UserActionCompound::exec(), hal::Netlist::get_net_by_id(), hal::gGraphContextManager, hal::gNetlist, QSet::insert(), name, net, nextViewName(), hal::ActionAddItemsToObject::setPlacementHint(), and hal::UserActionCompound::setUseCreatedObject().
Referenced by hal::ModuleContextMenu::addNetSubmenu(), and hal::ModuleWidget::handleItemDoubleClicked().
void hal::GraphContextManager::renameContextDirectoryAction | ( | ContextDirectory * | ctxDir, |
const QString & | newName | ||
) |
Renames a contextDirectory.
Emits the signal directoryRenamed.
ctxDir | - The contextDirectory to rename. Must not be a nullptr. |
newName | - The new name of the directory |
Definition at line 216 of file graph_context_manager.cpp.
References directoryRenamed(), QObject::Q_EMIT(), and hal::ContextDirectory::setName().
Referenced by hal::ActionRenameObject::exec().
void hal::GraphContextManager::renameGraphContextAction | ( | GraphContext * | ctx, |
const QString & | newName | ||
) |
Renames a GraphContext.
Emits the signal contextRenamed.
ctx | - The graph context to rename. Must not be a nullptr. |
newName | - The new name of the context |
Definition at line 209 of file graph_context_manager.cpp.
References contextRenamed(), and QObject::Q_EMIT().
Referenced by hal::ActionRenameObject::exec(), and restoreFromFile().
GraphContext * hal::GraphContextManager::restoreFromFile | ( | const QString & | filename | ) |
Restores all persisted context from .json file and returns selected one.
filename | The .json file with persisted context data. |
Definition at line 708 of file graph_context_manager.cpp.
References hal::ContextTreeModel::addContext(), hal::ContextTreeModel::addDirectory(), QJsonArray::at(), hal::SettingsItemCheckbox::boolChanged(), hal::GraphContext::clear(), QObject::connect(), QJsonObject::contains(), contextCreated(), deleteGraphContext(), QJsonDocument::fromJson(), getContextById(), getDefaultLayouter(), getDefaultShader(), hal::ContextTreeModel::getDirectory(), hal::BaseTreeModel::getRootItem(), hal::gGraphContextManager, hal::GraphContext::id(), log_warning, QJsonDocument::object(), QFile::open(), QObject::Q_EMIT(), QIODevice::readAll(), hal::GraphContext::readFromFile(), QIODevice::ReadOnly, renameGraphContextAction(), hal::GraphContext::scene(), hal::GraphContext::setDirty(), hal::GraphContext::setExclusiveModuleId(), hal::GraphContext::setLayouter(), hal::GraphContext::setShader(), QJsonArray::size(), QVariant::toBool(), QJsonValue::toObject(), QString::toStdString(), and hal::SettingsItemCheckbox::value().
Referenced by hal::ContentManager::handleOpenDocument(), and hal::GraphContextSerializer::restore().
void hal::GraphContextManager::setContextId | ( | GraphContext * | ctx, |
u32 | ctxId | ||
) |
Assigns new ID to context if this id is not in use
ctx | the context |
ctxId | user provided ID |
Definition at line 127 of file graph_context_manager.cpp.
References getContextById(), and hal::GraphContext::id().
Referenced by hal::ActionCreateObject::exec().
|
static |
Definition at line 417 of file graph_context_manager.h.
Referenced by hal::GraphicsScene::GraphicsScene(), and hal::StandardGraphicsGate::paint().
|
static |
Definition at line 419 of file graph_context_manager.h.
Referenced by hal::GraphGraphicsView::mouseMoveEvent(), and hal::GraphGraphicsView::mousePressEvent().