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

kig

  • sources
  • kde-4.12
  • kdeedu
  • kig
  • scripting
script-common.h
Go to the documentation of this file.
1 // Copyright (C) 2004 Pino Toscano <toscano.pino@tiscali.it>
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_SCRIPT_COMMON_H
19 #define KIG_SCRIPTING_SCRIPT_COMMON_H
20 
21 #include <algorithm>
22 #include <list>
23 
24 #include "../objects/object_holder.h"
25 
26 class QString;
27 
28 class ScriptType
29 {
30 public:
36  enum Type { Unknown = 0, Python = 1 };
41  static QString fillCodeStatement( ScriptType::Type type );
45  static QString templateCode( ScriptType::Type type, std::list<ObjectHolder*> args );
49  static const char* icon( ScriptType::Type type );
53  static QString highlightStyle( ScriptType::Type type );
58  static ScriptType::Type intToType( int type );
59 };
60 
61 #endif
ScriptType
Definition: script-common.h:28
ScriptType::icon
static const char * icon(ScriptType::Type type)
Returns the icon's name for a script language.
Definition: script-common.cc:107
ScriptType::Type
Type
This enum represents all the script language types actually in Kig.
Definition: script-common.h:36
ScriptType::intToType
static ScriptType::Type intToType(int type)
Converts an int to a ScriptType::Type.
Definition: script-common.cc:119
ScriptType::Python
Definition: script-common.h:36
ScriptType::fillCodeStatement
static QString fillCodeStatement(ScriptType::Type type)
Returns an i18n'ed statement like 'Now fill in the code:' with the name of the script language...
Definition: script-common.cc:39
ScriptType::templateCode
static QString templateCode(ScriptType::Type type, std::list< ObjectHolder * > args)
Returns a template code for a script language.
Definition: script-common.cc:44
ScriptType::highlightStyle
static QString highlightStyle(ScriptType::Type type)
Returns the Kate highlight stytle name for a script language.
Definition: script-common.cc:112
ScriptType::Unknown
Definition: script-common.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:40 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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