44 if (!ctx)
return false;
54 for (
const auto&
g : m->
get_gates(
nullptr,
true))
56 u32 gid =
g->get_id();
59 if (gats.
isEmpty() || pos.
x() < polePosition.
x() || pos.
y() < polePosition.
y())
67 u32 mid = sm->get_id();
71 pos.
x() < polePosition.
x() || pos.
y() < polePosition.
y())
Adds an item to a module or grouping.
void setPlacementHint(PlacementHint hint)
UserActionFactory for ActionFoldModule.
UserAction * newAction() const
ActionFoldModuleFactory()
static ActionFoldModuleFactory * sFactory
QString tagname() const override
ActionFoldModule(u32 moduleId=0)
Removes an item from a Module or Grouping.
ContextManagerWidget * getContextManagerWidget()
GraphContext * getCurrentContext()
Logical container for modules, gates, and nets.
GraphLayouter * getLayouter() const
GraphContext * getContextById(u32 id) const
NetLayoutPoint positonForNode(const Node &nd) const
const std::vector< Gate * > & get_gates() const
std::vector< Module * > get_submodules(const std::function< bool(Module *)> &filter=nullptr, bool recursive=false) const
Module * get_module_by_id(u32 module_id) const
The Node class object represents a module or a gate.
The PlacementHint class object provides hints for the layouter how new box objects are placed on a vi...
void addGridPosition(const Node &nd, const QPoint &p)
void addAction(UserAction *act)
The UserActionFactory is the abstract base class for registration.
The UserAction class is the abstract base class for user interactions.
virtual void setObject(const UserActionObject &obj)
The UserActionObject class represents a single object used in UserAction.
UserActionObjectType::ObjectType type() const
ContentManager * gContentManager
GraphContextManager * gGraphContextManager
QSet::iterator insert(const T &value)
bool isEmpty() const const