Difference between revisions of "Sandbox"

Jump to: navigation, search
(Undo revision 75031 by Claus chr (talk))
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 +
== Mail Encryption Demo ==
 +
 +
Test: <mail address="foo@bar.baz">Contact me!</mail>
 +
 
== Code tag demo ==
 
== Code tag demo ==
  
 
<!-- cpp == C++, n == numbered-->
 
<!-- cpp == C++, n == numbered-->
<code cppqt n>
+
<syntaxhighlight lang="cpp-qt" line>
 
#include <QtCore/QtCore>
 
#include <QtCore/QtCore>
 
+
# Типа это тупой коментарий. А кто-то кроме меня его увидит?
 
int main(int argc, char* argv[])
 
int main(int argc, char* argv[])
 
{
 
{
 
   QApplication app(argc, argv);
 
   QApplication app(argc, argv);
 
   QLabel l("Hello world!");
 
   QLabel l("Hello world!");
   l.show();
+
   QLabel h("Хуй!");
 +
  h.show();
 
   return app.exec();
 
   return app.exec();
 
}
 
}
</code>
+
</syntaxhighlight>
  
 
{{Code|2=Some code in a box}}
 
{{Code|2=Some code in a box}}
Line 27: Line 32:
  
 
{{GFDL}}
 
{{GFDL}}
 +
 
== Danimo's stuff ==
 
== Danimo's stuff ==
  
 
{{Box|How To Do the Lorem Ipsum|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}}
 
{{Box|How To Do the Lorem Ipsum|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}}
  
== ISV svg ==
+
== Code formatting ==
 +
<syntaxhighlight lang="cpp">
  
=== SVG (currently failing, why?) ===
+
#include <iostream>
[[Image:Isv.svg|noframe|left|400px]]
+
  
 +
using namespace std;
  
=== PNG: poorly rendered compared to the SVG ===
+
int main() {
[[Image:Isv.png]]
+
    '''cout << "Hello World" << endl;'''
 +
    return 0;
 +
}
  
== SK API Test ==
+
</syntaxhighlight>
=== Bar ===
+
  
==== createBar ====
 
 
SYNOPSIS
 
  reference createBar(widget, x, y, w, h, image)
 
  
DESCRIPTION
+
== ISV svg ==
  This creates a bar at x, y with width and height w, h.
+
  
ARGUMENTS
+
=== SVG (currently failing, why?) ===
  * reference to widget -- karamba
+
[[Image:Isv.svg|noframe|left|400px]]
  * 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 ====
+
=== PNG: poorly rendered compared to the SVG ===
+
[[Image:Isv.png]]
SYNOPSIS
+
  boolean deleteBar(widget, bar)
+
 
+
DESCRIPTION
+
  This deletes the bar.
+
 
+
ARGUMENTS
+
  * reference to widget -- karamba
+
  * reference to bar -- bar
+
 
+
RETURN VALUE
+
  true if successful
+
 
+
==== setBarMinMax ====
+
+
SYNOPSIS
+
  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
+
[[File:/home/mkujanpa/Dokumentit/KMyMoney/tags_picture4.png]]
  true if successful
+

Latest revision as of 18:16, 27 August 2012

Contents

[edit] Mail Encryption Demo

Test: <mail address="foo@bar.baz">Contact me!</mail>

[edit] Code tag demo

  1. #include <QtCore/QtCore>
  2. # Типа это тупой коментарий. А кто-то кроме меня его увидит?
  3. int main(int argc, char* argv[])
  4. {
  5.   QApplication app(argc, argv);
  6.   QLabel l("Hello world!");
  7.   QLabel h("Хуй!");
  8.   h.show();
  9.   return app.exec();
  10. }
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

[edit] 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


[edit] Code formatting

#include <iostream>
 
using namespace std;
 
int main() {
    '''cout << "Hello World" << endl;'''
    return 0;
}


[edit] ISV svg

[edit] SVG (currently failing, why?)

noframe


[edit] PNG: poorly rendered compared to the SVG

Isv.png

File:/home/mkujanpa/Dokumentit/KMyMoney/tags picture4.png


This page was last modified on 27 August 2012, at 18:16. This page has been accessed 10,340 times. Content is available under Creative Commons License SA 3.0 as well as the GNU Free Documentation License 1.2.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal