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

kig

  • sources
  • kde-4.14
  • kdeedu
  • kig
  • scripting
python_type.h
Go to the documentation of this file.
1 // Copyright (C) 2003 Dominique Devriese <devriese@kde.org>
2 
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
7 
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
16 // 02110-1301, USA.
17 
18 #ifndef KIG_SCRIPTING_PYTHON_TYPE_H
19 #define KIG_SCRIPTING_PYTHON_TYPE_H
20 
21 #include "../objects/object_type.h"
22 
23 class PythonCompileType
24  : public ObjectType
25 {
26  PythonCompileType();
27  ~PythonCompileType();
28 public:
29  static const PythonCompileType* instance();
30 
31  ObjectImp* calc( const Args& parents, const KigDocument& d ) const;
32 
33  const ObjectImpType* impRequirement( const ObjectImp* o, const Args& parents ) const;
34  bool isDefinedOnOrThrough( const ObjectImp* o, const Args& parents ) const;
35  const ObjectImpType* resultId() const;
36 
37  std::vector<ObjectCalcer*> sortArgs( const std::vector<ObjectCalcer*>& args ) const;
38  Args sortArgs( const Args& args ) const;
39 };
40 
41 class PythonExecuteType
42  : public ObjectType
43 {
44  PythonExecuteType();
45  ~PythonExecuteType();
46 public:
47  static const PythonExecuteType* instance();
48 
49  ObjectImp* calc( const Args& parents, const KigDocument& d ) const;
50 
51  const ObjectImpType* impRequirement( const ObjectImp* o, const Args& parents ) const;
52  bool isDefinedOnOrThrough( const ObjectImp* o, const Args& parents ) const;
53  const ObjectImpType* resultId() const;
54 
55  std::vector<ObjectCalcer*> sortArgs( const std::vector<ObjectCalcer*>& args ) const;
56  Args sortArgs( const Args& args ) const;
57 
58 // virtual QStringList specialActions() const;
59 // virtual void executeAction( int i, RealObject* o, KigDocument& d, KigWidget& w,
60 // NormalMode& m ) const;
61 };
62 
63 #endif
ObjectImpType
Instances of this class represent a certain ObjectImp type.
Definition: object_imp.h:95
PythonCompileType::sortArgs
std::vector< ObjectCalcer * > sortArgs(const std::vector< ObjectCalcer * > &args) const
Definition: python_type.cc:166
PythonExecuteType::isDefinedOnOrThrough
bool isDefinedOnOrThrough(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: python_type.cc:191
PythonExecuteType::instance
static const PythonExecuteType * instance()
Definition: python_type.cc:138
PythonCompileType
Definition: python_type.h:23
PythonCompileType::calc
ObjectImp * calc(const Args &parents, const KigDocument &d) const
Definition: python_type.cc:111
PythonCompileType::isDefinedOnOrThrough
bool isDefinedOnOrThrough(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: python_type.cc:186
PythonCompileType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: python_type.cc:106
PythonExecuteType::resultId
const ObjectImpType * resultId() const
returns the ObjectImp id of the ObjectImp's produced by this ObjectType.
Definition: python_type.cc:161
Args
std::vector< const ObjectImp * > Args
Definition: objects/common.h:47
PythonExecuteType::calc
ObjectImp * calc(const Args &parents, const KigDocument &d) const
Definition: python_type.cc:144
PythonCompileType::impRequirement
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: python_type.cc:101
PythonCompileType::instance
static const PythonCompileType * instance()
Definition: python_type.cc:95
ObjectType
The ObjectType class is a thing that represents the "behaviour" for a certain type.
Definition: object_type.h:32
PythonExecuteType::impRequirement
const ObjectImpType * impRequirement(const ObjectImp *o, const Args &parents) const
Supposing that parents would be given as parents to this type's calc function, this function returns ...
Definition: python_type.cc:155
PythonExecuteType::sortArgs
std::vector< ObjectCalcer * > sortArgs(const std::vector< ObjectCalcer * > &args) const
Definition: python_type.cc:176
KigDocument
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
PythonExecuteType
Definition: python_type.h:41
ObjectImp
The ObjectImp class represents the behaviour of an object after it is calculated. ...
Definition: object_imp.h:226
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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