mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-11 00:29:57 +01:00
Element editor: add terminal is managed by esevent
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3475 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -41,7 +41,7 @@ class ElementScene : public QGraphicsScene {
|
||||
|
||||
// enum
|
||||
public:
|
||||
enum Behavior { Normal, Terminal, PasteArea };
|
||||
enum Behavior { Normal, PasteArea };
|
||||
enum ItemOption {
|
||||
SortByZValue = 1,
|
||||
IncludeTerminals = 2,
|
||||
@@ -81,7 +81,6 @@ class ElementScene : public QGraphicsScene {
|
||||
*/
|
||||
QPointF fsi_pos;
|
||||
QPointF moving_press_pos;
|
||||
bool moving_parts_;
|
||||
|
||||
/// Variables related to drawing
|
||||
ESEventInterface *m_event_interface;
|
||||
@@ -132,7 +131,6 @@ class ElementScene : public QGraphicsScene {
|
||||
bool wasCopiedFromThisElement(const QString &);
|
||||
void cut();
|
||||
void copy();
|
||||
void paste();
|
||||
void contextMenu (QContextMenuEvent *event);
|
||||
QETElementEditor* editor() const;
|
||||
|
||||
@@ -144,7 +142,6 @@ class ElementScene : public QGraphicsScene {
|
||||
virtual void keyPressEvent (QKeyEvent *event);
|
||||
|
||||
virtual void drawForeground(QPainter *, const QRectF &);
|
||||
virtual void endCurrentBehavior(const QGraphicsSceneMouseEvent *);
|
||||
|
||||
private:
|
||||
QRectF elementContentBoundingRect(const ElementContent &) const;
|
||||
@@ -161,7 +158,6 @@ class ElementScene : public QGraphicsScene {
|
||||
|
||||
public slots:
|
||||
void slot_move();
|
||||
void slot_addTerminal();
|
||||
void slot_select(const ElementContent &);
|
||||
void slot_selectAll();
|
||||
void slot_deselectAll();
|
||||
|
||||
Reference in New Issue
Block a user