Table of Contents
To use the KDE libraries use the :cl-smoke.kde.ui (Depends on :cl-smoke.kde.core).
Besides these packages there is :kde.tests for the unit tests and :kde.examples containing the examples.
The examples can be run with:
(asdf:oos 'asdf:load-op :cl-smoke.kde.examples)
And then running the function of the example; e.g.:
(kde.examples:mandelbrot
)
Example 4.1. Hello World
;;; Copyright 2009 Tobias Rautenkranz ;;; License: X11 license (in-package :cl-smoke.kde.examples) (defun hello-world () "KDE Hello World" (kde:with-kde ("khelloworld" "Hello World" "0.1") (let* ((window (make-instance 'kde:push-button :args '("Hello world")))) (cxx:show window) (qt:exec))))
Example 4.2. KMandelbrot
A port of the Qt Mandelbrot example to KDE.
The Mandelbrot example shows how to use a worker thread to perform heavy computations without blocking the main thread's event loop.
The sources can be found in the
src/mandelbrot/
directory of the :kde.examples package