wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
Commands.h File Reference

All QUndoCommand subclasses and the CommandUtils helper namespace. More...

#include <QCoreApplication>
#include "App/Element/GraphicElement.h"
#include "App/Scene/Scene.h"
Include dependency graph for Commands.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AddItemsCommand
 Undo command that adds a list of graphic elements to the scene. More...
class  ChangePortSizeCommand
 Undo command that changes the number of input or output ports on selected elements. More...
struct  UpdateBlobCommand::ConnectionInfo
class  DeleteItemsCommand
 Undo command that removes a list of items from the scene. More...
class  ElementsCommand
 Intermediate base for commands that operate on a fixed list of GraphicElements. More...
class  FlipCommand
 Undo command that flips a selection of elements along a horizontal or vertical axis. More...
class  MorphCommand
 Undo command that changes the type of selected elements while preserving connections. More...
class  MoveCommand
 Undo command that records a drag-move of a set of elements. More...
class  RegisterBlobCommand
 Undo command that registers/unregisters a blob in the IC registry. More...
class  RemoveBlobCommand
 Undo command that removes/restores a blob in the IC registry. More...
class  RenameBlobCommand
 Undo command that renames a blob in the IC registry. More...
class  RotateCommand
 Undo command that rotates a list of elements by a fixed angle. More...
class  SplitCommand
 Undo command that inserts a Node junction into an existing connection. More...
class  ToggleTruthTableOutputCommand
 Undo command that toggles one output bit in a TruthTable element. More...
class  UpdateBlobCommand
 Undo command for embedded IC blob changes that may alter port counts. More...
class  UpdateCommand
 Undo command for property changes (label, color, frequency, appearance, etc.). More...

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)

Detailed Description

All QUndoCommand subclasses and the CommandUtils helper namespace.

Definition in file Commands.h.