moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kig / scripting / python_type.h
blob81f0835fd52700bbf3af0001a3b3a4175ad1993a
1 // Copyright (C) 2003 Dominique Devriese <devriese@kde.org>
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.
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.
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., 59 Temple Place - Suite 330, Boston, MA
16 // 02111-1307, USA.
18 #ifndef KIG_SCRIPTING_PYTHON_TYPE_H
19 #define KIG_SCRIPTING_PYTHON_TYPE_H
21 #include "../objects/object_type.h"
23 class PythonCompileType
24 : public ObjectType
26 PythonCompileType();
27 ~PythonCompileType();
28 public:
29 static const PythonCompileType* instance();
31 ObjectImp* calc( const Args& parents, const KigDocument& d ) const;
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;
37 std::vector<ObjectCalcer*> sortArgs( const std::vector<ObjectCalcer*>& args ) const;
38 Args sortArgs( const Args& args ) const;
41 class PythonExecuteType
42 : public ObjectType
44 PythonExecuteType();
45 ~PythonExecuteType();
46 public:
47 static const PythonExecuteType* instance();
49 ObjectImp* calc( const Args& parents, const KigDocument& d ) const;
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;
55 std::vector<ObjectCalcer*> sortArgs( const std::vector<ObjectCalcer*>& args ) const;
56 Args sortArgs( const Args& args ) const;
58 // virtual QStringList specialActions() const;
59 // virtual void executeAction( int i, RealObject* o, KigDocument& d, KigWidget& w,
60 // NormalMode& m ) const;
63 #endif