• 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
AssignValueAction.h
Go to the documentation of this file.
1 /*
2  This file is part of Rocs.
3  Copyright (C) 2011 Andreas Cord-Landwehr <phoenixx@uni-paderborn.de>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (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 along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
20 
21 #ifndef ASSIGNVALUEACTION_H
22 #define ASSIGNVALUEACTION_H
23 
24 #include <KAction>
25 #include "CoreTypes.h"
26 
27 class GraphScene;
28 
29 class AssignValueAction : public KAction
30 {
31  Q_OBJECT
32 public:
33 
34  enum AssignMethod {Enumerate, RandomInteger, RandomReal};
35 
42  AssignValueAction(const QString& name, GraphScene *scene, AssignMethod method, QWidget *parent);
43 
52  AssignValueAction(const QString& name, GraphScene *scene, AssignMethod method, DataStructurePtr ds, QWidget *parent);
53 
54 public slots:
55  void enumerateDataStructure();
56  void enumerateSelected();
57  void assignRandomIntegersDataStructure();
58  void assignRandomIntegersSelected();
59  void assignRandomRealsDataStructure();
60  void assignRandomRealsSelected();
61 
62 private:
63  GraphScene *_graphScene;
64  DataStructurePtr _dataStructure;
65 };
66 
67 #endif // ASSIGNVALUEACTION_H
QWidget
AssignValueAction::RandomReal
Definition: AssignValueAction.h:34
AssignValueAction
Definition: AssignValueAction.h:29
AssignValueAction::enumerateDataStructure
void enumerateDataStructure()
Definition: AssignValueAction.cpp:73
AssignValueAction::assignRandomRealsSelected
void assignRandomRealsSelected()
Definition: AssignValueAction.cpp:132
AssignValueAction::Enumerate
Definition: AssignValueAction.h:34
GraphScene
Definition: GraphScene.h:38
AssignValueAction::enumerateSelected
void enumerateSelected()
Definition: AssignValueAction.cpp:83
QString
AssignValueAction::assignRandomRealsDataStructure
void assignRandomRealsDataStructure()
Definition: AssignValueAction.cpp:121
AssignValueAction::assignRandomIntegersDataStructure
void assignRandomIntegersDataStructure()
Definition: AssignValueAction.cpp:96
AssignValueAction::AssignMethod
AssignMethod
Definition: AssignValueAction.h:34
KAction
AssignValueAction::RandomInteger
Definition: AssignValueAction.h:34
AssignValueAction::AssignValueAction
AssignValueAction(const QString &name, GraphScene *scene, AssignMethod method, QWidget *parent)
Creates a new assign value action that assigns values to selected data items.
Definition: AssignValueAction.cpp:32
AssignValueAction::assignRandomIntegersSelected
void assignRandomIntegersSelected()
Definition: AssignValueAction.cpp:107
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