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:
blacksun
2014-11-10 21:47:28 +00:00
parent 4d8bec09e3
commit e8d6d4de5d
6 changed files with 164 additions and 69 deletions

View File

@@ -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();