Difference between revisions of "Sandbox"

Jump to: navigation, search
Line 42: Line 42:
 
== SK API Test ==
 
== SK API Test ==
 
=== Bar ===
 
=== Bar ===
 
+
== createBar ==
==== createBar ====
+
This creates a bar at x, y with width and height w, h.
+
Synopsis
SYNOPSIS
+
reference createBar(widget, x, y, w, h, image)
  reference createBar(widget, x, y, w, h, image)
+
Arguments
 
+
* reference to widget -- karamba
DESCRIPTION
+
* integer x -- x coordinate
  This creates a bar at x, y with width and height w, h.
+
* integer y -- y coordinate
 
+
* integer w -- width
ARGUMENTS
+
* integer h -- height
  * reference to widget -- karamba
+
* string image -- Path to image
  * integer x -- x coordinate
+
Return Value
  * integer y -- y coordinate
+
Reference to new bar meter
  * integer w -- width
+
  * integer h -- height
+
  * string image -- Path to image
+
 
+
RETURN VALUE
+
  Reference to new bar meter
+
 
+
 
==== deleteBar ====
 
==== deleteBar ====
+
This deletes the bar.
SYNOPSIS
+
Synopsis
  boolean deleteBar(widget, bar)
+
boolean deleteBar(widget, bar)
 
+
Arguments
DESCRIPTION
+
* reference to widget -- karamba
  This deletes the bar.
+
* reference to bar -- bar
 
+
Return Value
ARGUMENTS
+
true if successful
  * reference to widget -- karamba
+
==== getBarImage  ====
  * reference to bar -- bar
+
Get the path to the bar image.
 
+
Synopsis
RETURN VALUE
+
string getBarImage(widget, bar)
  true if successful
+
Arguments
 
+
* reference to widget -- karamba
==== setBarMinMax ====
+
* reference to bar -- bar
+
Return Value
SYNOPSIS
+
path to bar image
  boolean setBarMinMax(widget, bar, min, max)
+
 
+
DESCRIPTION
+
  Returns current bar value.
+
 
+
ARGUMENTS
+
  * reference to widget -- karamba
+
  * reference to bar -- bar
+
  * integer min -- min value
+
  * integer max -- max value
+
 
+
RETURN VALUE
+
  true if successful
+

Revision as of 17:17, 28 April 2007

Contents

Code tag demo

  1. include <QtCore/QtCore>

int main(int argc, char* argv[]) {

 QApplication app(argc, argv);
 QLabel l("Hello world!");
 l.show();
 return app.exec();

}

Code

{{{text}}}

Code

{{{text}}}

Creative Commons License
This work is licensed under a Creative Commons Attribution 2.5 License.


Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial 2.5 License.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 2.5 License.

All text is available under the terms of the Gnu Free Documentation License

Danimo's stuff

{{{3}}}
 
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
How To Do the Lorem Ipsum


ISV svg

SVG (currently failing, why?)

noframe


PNG: poorly rendered compared to the SVG

Isv.png

SK API Test

Bar

createBar

This creates a bar at x, y with width and height w, h. Synopsis reference createBar(widget, x, y, w, h, image) Arguments

  • reference to widget -- karamba
  • integer x -- x coordinate
  • integer y -- y coordinate
  • integer w -- width
  • integer h -- height
  • string image -- Path to image

Return Value Reference to new bar meter

deleteBar

This deletes the bar. Synopsis boolean deleteBar(widget, bar) Arguments

  • reference to widget -- karamba
  • reference to bar -- bar

Return Value true if successful

getBarImage

Get the path to the bar image. Synopsis string getBarImage(widget, bar) Arguments

  • reference to widget -- karamba
  • reference to bar -- bar

Return Value path to bar image


KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal