~ubuntu-branches/ubuntu/jaunty/kgraphviewer/jaunty

« back to all changes in this revision

Viewing changes to src/part/dotgraphview.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Stalcup
  • Date: 2008-08-30 21:38:37 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080830213837-m9yz9i817rdqt26d
Tags: 4:2.0.2-kde4.1.1-0ubuntu1
* New upstream release
* Removed debian/cdbs dir, using cdbs kde4.mk

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
 
73
73
public:
74
74
  enum ZoomPosition { TopLeft, TopRight, BottomLeft, BottomRight, Auto };
75
 
  enum EditingMode { None, AddNewElement, AddNewEdge, DrawNewEdge };
 
75
  enum EditingMode { None, AddNewElement, AddNewEdge, DrawNewEdge, SelectingElements };
76
76
  enum ScrollDirection { Here, Left, Right, Top, Bottom };
77
77
  
78
78
  explicit DotGraphView(KActionCollection* actions, QWidget* parent=0);
120
120
 
121
121
  void prepareAddNewElement(QMap<QString,QString> attribs);
122
122
  void prepareAddNewEdge(QMap<QString,QString> attribs);
123
 
 
 
123
  void prepareSelectElements();
 
124
  
124
125
  void createNewEdgeDraftFrom(CanvasElement* node);
125
126
  void finishNewEdgeTo(CanvasElement* node);
126
127
 
153
154
  /** signals that the user has activated a remove element command */
154
155
  void removeElement(const QString&);
155
156
  /** signals the content of the new selection */
156
 
  void selectionIs(const QList<QString>&);
 
157
  void selectionIs(const QList<QString>, const QPoint&);
157
158
  /** let the application tweak the created edge if necessary */
158
159
  void newEdgeFinished(
159
160
      const QString&, const QString&,
160
161
      const QMap<QString, QString>&);
 
162
  void contextMenuEvent(const QString&, const QPoint&);
161
163
 
162
164
public Q_SLOTS:
163
165
  void zoomIn();
191
193
  bool displayGraph();
192
194
  void slotEdgeSelected(CanvasEdge*, Qt::KeyboardModifiers);
193
195
  void slotElementSelected(CanvasElement*, Qt::KeyboardModifiers);
194
 
  
 
196
  void slotSelectionChanged();
 
197
  void slotContextMenuEvent(const QString&, const QPoint&);
 
198
 
195
199
protected:
196
200
  void resizeEvent(QResizeEvent*);
197
201
  void mousePressEvent(QMouseEvent*);