• 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
  • Actions
PropertiesDialogAction.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 library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library 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 GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 
21 #ifndef PROPERTIESDIALOGACTION_H
22 #define PROPERTIESDIALOGACTION_H
23 
24 #include "VisualEditorExport.h"
25 #include <KAction>
26 #include "CoreTypes.h"
27 
28 class QPointF;
29 class Document;
30 
31 class VISUALEDITOR_EXPORT PropertiesDialogAction : public KAction
32 {
33  Q_OBJECT
34 
35  enum DialogType {
36  DOCUMENT,
37  DATASTRUCTURE,
38  DATA,
39  DATATYPE,
40  POINTER,
41  POINTERTYPE
42  };
43 
44 public:
45  PropertiesDialogAction(QString text, Document* document, QObject* parent);
46  PropertiesDialogAction(QString text, DataStructurePtr dataStructure, QObject* parent);
47  PropertiesDialogAction(QString text, DataPtr data, QObject* parent);
48  PropertiesDialogAction(QString text, PointerPtr pointer, QObject* parent);
49  PropertiesDialogAction(QString text, DataTypePtr dataType, QObject* parent);
50  PropertiesDialogAction(QString text, PointerTypePtr pointerType, QObject* parent);
51 
52  void setPosition(QPointF screenPosition);
53 
54 public slots:
55  void showDialog();
56 
57 private:
58  Document* _document;
59  DataStructurePtr _dataStructure;
60  DataPtr _data;
61  PointerPtr _pointer;
62  DataTypePtr _dataType;
63  PointerTypePtr _pointerType;
64  QPointF _screenPosition;
65 
66  DialogType _dialogType;
67 };
68 
69 
70 #endif // PROPERTIESDIALOGACTION_H
VISUALEDITOR_EXPORT
#define VISUALEDITOR_EXPORT
Definition: VisualEditorExport.h:31
PropertiesDialogAction
Definition: PropertiesDialogAction.h:31
VisualEditorExport.h
QPointF
QObject
QString
KAction
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