Commit 3425ab3f authored by Sebastian Sauer's avatar Sebastian Sauer
Browse files

* renamed console-app krossrunner=>kross

* dox++


svn path=/trunk/koffice/; revision=599879
parent 8f7165d0
......@@ -8,7 +8,7 @@ add_subdirectory( core )
add_subdirectory( modules )
# commandline-prog to run scripts
add_subdirectory( runner )
add_subdirectory( console )
# unittests and such stuff
if (KDE4_BUILD_TESTS)
......
......@@ -6,6 +6,18 @@
* way. The application that uses Kross should not need to know
* anything about the used interpreter-language.
*
* The main parts of Kross:
* @ref core The core of Kross
* @ref modules The optional Kross modules
* @ref console The Kross console application
* @ref test The unit- and regression tests.
*
* The by Kross supported interpreter backends:
* @ref python The Python interpreter backend
* @ref ruby The Ruby interpreter backend
* @ref kjs The KDE JavaScript interpreter backend
*
* Links:
* @see http://kross.dipe.org
* @see http://www.kexi-project.org/wiki/wikiview/index.php?Scripting
* @see http://www.koffice.org
......
set(kross_SRCS main.cpp )
kde4_automoc(${kross_SRCS})
kde4_add_executable(kross ${kross_SRCS})
target_link_libraries(kross ${KDE4_KDECORE_LIBS} krosscore )
install(TARGETS kross DESTINATION ${BIN_INSTALL_DIR})
/** @section console The Kross console application
*
* The Kross console application provides an executable application
* to run by Kross supported scripts from within the commandline.
*/
......@@ -92,8 +92,8 @@ int main(int argc, char **argv)
{
int result = ERROR_OK;
KAboutData about("krossrunner",
"krossrunner",
KAboutData about("kross",
"kross",
"0.1",
"KDE application to run Kross scripts.",
KAboutData::License_LGPL,
......
/** @section core The core of Kross
*
* The core of Kross provides the framework to deal transparently
* with interpreter-backends and offers abstract functionality
* to deal with scripts.
*/
/** @section kjs The KDE JavaScript interpreter backend
*
* The KDE JavaScript interpreter backend uses the in kdelibs included
* kjs and kjsembed libraries to provide a JavaScript backend.
*/
/** @section modules The optional Kross modules
*
* Kross is able to optional dynamic load modules witch provide then
* additional functionality for scripts.
*/
/** @section python The Python interpreter backend
*
* The Python interpreter backend implements scripting with Python.
*/
/** @section ruby The Ruby interpreter backend
*
* The Ruby interpreter backend implements scripting with Ruby.
*/
set(krossrunner_SRCS main.cpp )
kde4_automoc(${krossrunner_SRCS})
kde4_add_executable(krossrunner ${krossrunner_SRCS})
target_link_libraries(krossrunner ${KDE4_KDECORE_LIBS} krosscore )
install(TARGETS krossrunner DESTINATION ${BIN_INSTALL_DIR})
#!/usr/bin/env python
#!/usr/bin/env kross
"""
This Python script is used as performance-tester and profiler
......
/** @section test The unit- and regression tests.
*
* Some internal testcases used to prevent regressions.
*/
#!/usr/bin/env python
#!/usr/bin/env kross
import Kross, os
......
#!/usr/bin/env kross
require 'Kross'
dialog = Kross.createDialog("TestGuiFormDialog")
......
#!/usr/bin/env python
#!/usr/bin/env kross
import qt
......
#!/usr/bin/env python
#!/usr/bin/env kross
class TkTest:
def __init__(self):
......
#!/usr/bin/env kross
var kross = Kross
var kjsaction = kross.action("MyKjsScript")
......
#!/usr/bin/env python
#!/usr/bin/env kross
"""
This Python script demonstrates how Kross could be used from
......
#!/usr/bin/env kross
// Print something on the console.
println("Let's start the KjsEmbed Unittest :-)");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment