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

kig

Public Types | Static Public Member Functions | List of all members
ScriptType Class Reference

#include <script-common.h>

Public Types

enum  Type { Unknown = 0, Python = 1 }
 

Static Public Member Functions

static QString fillCodeStatement (ScriptType::Type type)
 
static QString highlightStyle (ScriptType::Type type)
 
static const char * icon (ScriptType::Type type)
 
static ScriptType::Type intToType (int type)
 
static QString templateCode (ScriptType::Type type, std::list< ObjectHolder * > args)
 

Detailed Description

Definition at line 28 of file script-common.h.

Member Enumeration Documentation

enum ScriptType::Type

This enum represents all the script language types actually in Kig.

The first type ( Unknown ) can be used if we don't want particular tunings for a script language.

Enumerator
Unknown 
Python 

Definition at line 36 of file script-common.h.

Member Function Documentation

QString ScriptType::fillCodeStatement ( ScriptType::Type  type)
static

Returns an i18n'ed statement like 'Now fill in the code:' with the name of the script language.

Definition at line 39 of file script-common.cc.

QString ScriptType::highlightStyle ( ScriptType::Type  type)
static

Returns the Kate highlight stytle name for a script language.

Definition at line 112 of file script-common.cc.

const char * ScriptType::icon ( ScriptType::Type  type)
static

Returns the icon's name for a script language.

Definition at line 107 of file script-common.cc.

ScriptType::Type ScriptType::intToType ( int  type)
static

Converts an int to a ScriptType::Type.

Useful when reading script types from files.

Definition at line 119 of file script-common.cc.

QString ScriptType::templateCode ( ScriptType::Type  type,
std::list< ObjectHolder * >  args 
)
static

Returns a template code for a script language.

Definition at line 44 of file script-common.cc.


The documentation for this class was generated from the following files:
  • script-common.h
  • script-common.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 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