• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/VisualEditor

  • sources
  • kde-4.14
  • kdeedu
  • rocs
  • VisualEditor
  • Interface
EditorToolbar.h
Go to the documentation of this file.
1 /*
2  This file is part of Rocs.
3  Copyright 2012 Andreas Cord-Landwehr <cola@uni-paderborn.de>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of
8  the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef EDITORTOOLBAR_H
20 #define EDITORTOOLBAR_H
21 
22 #include <QWidget>
23 
24 class KActionCollection;
25 class KActionMenu;
26 class SelectMoveHandAction;
27 class GraphScene;
28 class Document;
29 
38 class EditorToolbar : public QWidget
39 {
40  Q_OBJECT
41 
42 public:
46  explicit EditorToolbar(QWidget *parent);
47 
54  void setup(GraphScene *scene, KActionCollection *collection);
55 
62  void setActiveDocument(Document *activeDocument);
63 
64 public slots:
69  void updateTypeActions();
70 
71 private:
72  Document* _document;
73  GraphScene* _scene;
74  KActionMenu *_addDataActionMenu;
75  KActionMenu *_addPointerActionMenu;
76  SelectMoveHandAction *_selectMoveAction;
77 };
78 
79 #endif
QWidget
EditorToolbar
This class provides hand actions to be performed at the graphics scene.
Definition: EditorToolbar.h:38
EditorToolbar::updateTypeActions
void updateTypeActions()
Update action menus for data types and pointer types.
Definition: EditorToolbar.cpp:96
EditorToolbar::EditorToolbar
EditorToolbar(QWidget *parent)
Default constructor.
Definition: EditorToolbar.cpp:41
GraphScene
Definition: GraphScene.h:38
EditorToolbar::setup
void setup(GraphScene *scene, KActionCollection *collection)
Setup toolbar actions.
Definition: EditorToolbar.cpp:46
EditorToolbar::setActiveDocument
void setActiveDocument(Document *activeDocument)
Set current active graph document.
Definition: EditorToolbar.cpp:81
SelectMoveHandAction
This action holds the 'Move Node' icon and tooltips, and when it's executed, it will move the selecte...
Definition: SelectMoveHandAction.h:38
QObject::parent
QObject * parent() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/VisualEditor

Skip menu "rocs/VisualEditor"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal