First step for the dynamic element text : Now user can add directly from the diagram editor an editable text of an element.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5005 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2017-08-03 17:36:08 +00:00
parent 0df5391491
commit 3ef55906a4
33 changed files with 2222 additions and 863 deletions

View File

@@ -49,15 +49,14 @@ class DiagramView : public QGraphicsView
// attributes
Diagram *m_scene;
DVEventInterface *m_event_interface;
QMenu *context_menu;
QAction *paste_here;
QPoint paste_here_pos;
QPointF rubber_band_origin;
bool fresh_focus_in_; ///< Indicate the focus was freshly gained
bool m_first_activation;
Diagram *m_diagram;
DVEventInterface *m_event_interface = nullptr;
QMenu *m_context_menu;
QAction *m_paste_here;
QPoint m_paste_here_pos;
QPointF m_rubber_band_origin;
bool m_fresh_focus_in,
m_first_activation = true;
public:
QString title() const;
void editDiagramProperties();
@@ -66,7 +65,7 @@ class DiagramView : public QGraphicsView
void addRow();
void removeRow();
/// @return the diagram rendered by this view
Diagram *diagram() { return(m_scene); }
Diagram *diagram() { return(m_diagram); }
QETDiagramEditor *diagramEditor() const;
bool hasSelectedItems();
bool hasCopiableItems();