wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
Commands.cpp File Reference
#include "App/Scene/Commands.h"
#include <algorithm>
#include <cmath>
#include <QCoreApplication>
#include <QIODevice>
#include "App/Core/Common.h"
#include "App/Core/Constants.h"
#include "App/Element/ElementFactory.h"
#include "App/Element/GraphicElement.h"
#include "App/Element/GraphicElements/TruthTable.h"
#include "App/IO/Serialization.h"
#include "App/IO/SerializationContext.h"
#include "App/Scene/ICRegistry.h"
#include "App/Scene/Scene.h"
#include "App/Simulation/Simulation.h"
#include "App/Simulation/SimulationBlocker.h"
#include "App/Wiring/Connection.h"
#include "App/Wiring/Port.h"
Include dependency graph for Commands.cpp:

Go to the source code of this file.

Namespaces

namespace  CommandUtils

Functions

void CommandUtils::addItems (Scene *scene, const QList< QGraphicsItem * > &items)
void CommandUtils::deleteItems (Scene *scene, const QList< QGraphicsItem * > &items)
void CommandUtils::drainPortConnections (GraphicElement *elm, int fromPort, int toPort, bool isInput, QDataStream &stream, Scene *scene)
 Saves and deletes connections on ports in range [fromPort, toPort).
ConnectionCommandUtils::findConn (Scene *scene, const int id)
const QList< GraphicElement * > CommandUtils::findElements (Scene *scene, const QList< int > &ids)
GraphicElementCommandUtils::findElm (Scene *scene, const int id)
const QList< QGraphicsItem * > CommandUtils::findItems (Scene *scene, const QList< int > &ids)
const QList< QGraphicsItem * > CommandUtils::loadItems (Scene *scene, QByteArray &itemData, const QList< int > &ids, QList< int > &otherIds)
const QList< QGraphicsItem * > CommandUtils::loadList (const QList< QGraphicsItem * > &items, QList< int > &ids, QList< int > &otherIds)
void CommandUtils::saveItems (Scene *scene, QByteArray &itemData, const QList< QGraphicsItem * > &items, const QList< int > &otherIds)
void CommandUtils::storeIds (const QList< QGraphicsItem * > &items, QList< int > &ids)
void CommandUtils::storeOtherIds (const QList< QGraphicsItem * > &connections, const QList< int > &ids, QList< int > &otherIds)