mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Remove file and code, because unused with the new auto hotspot
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2410 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -224,39 +224,6 @@ class ChangePolygonPointsCommand : public ElementEditionCommand {
|
||||
QVector<QPointF> new_points;
|
||||
};
|
||||
|
||||
/**
|
||||
This command changes the dimensions and/or the hotspot of an electrical
|
||||
element.
|
||||
*/
|
||||
class ChangeHotspotCommand : public ElementEditionCommand {
|
||||
// constructors, destructor
|
||||
public:
|
||||
ChangeHotspotCommand(ElementScene *, const QSize &, const QSize &, const QPoint &, const QPoint &, const QPoint & = QPoint(), QUndoCommand * = 0);
|
||||
virtual ~ChangeHotspotCommand();
|
||||
private:
|
||||
ChangeHotspotCommand(const ChangeHotspotCommand &);
|
||||
|
||||
// methods
|
||||
public:
|
||||
virtual void undo();
|
||||
virtual void redo();
|
||||
|
||||
private:
|
||||
void applyOffset(const QPointF &);
|
||||
|
||||
// attributes
|
||||
/// Former dimensions
|
||||
QSize size_before;
|
||||
/// new dimensions
|
||||
QSize size_after;
|
||||
/// Former hotspot
|
||||
QPoint hotspot_before;
|
||||
/// New hotspot
|
||||
QPoint hotspot_after;
|
||||
/// Offset to be applied to primitives
|
||||
QPoint offset;
|
||||
};
|
||||
|
||||
/**
|
||||
This command changes the translated names of an electrical element.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user