[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeexamples/plasma/javascript/plasmoids/enumerateAPI/contents/code
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2009-12-08 6:08:46
Message-ID: 1260252526.546652.23179.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1060112 by aseigo:
layout API
M +21 -4 main.js
--- trunk/KDE/kdeexamples/plasma/javascript/plasmoids/enumerateAPI/contents/code/main.js #1060111:1060112
@@ -119,7 +119,7 @@
return rv
}
-
+// WIDGET API
var widgetApi = ''
for (index in classNames) {
var widgetName = classNames[index]
@@ -135,6 +135,21 @@
display.text = widgetApi
tabbar.addTab(i18n("Widgets"), display)
+// LAYOUTS API
+var layoutApi = ''
+layoutApi += enumerateObject("LinearLayout", layout, true)
+var p = new PushButton
+var l = new AnchorLayout(p)
+layoutApi += enumerateObject("AnchorLayout", l, true)
+p.deleteLater()
+l = 0
+
+display = new TextEdit
+display.readOnly = true
+display.text = layoutApi
+tabbar.addTab(i18n("Layouts"), display)
+
+// IMAGE API
fsvg = new FrameSvg('panel-background')
var imageApi = enumerateObject('FrameSvg', fsvg, false)
svg = new Svg('panel-background')
@@ -147,6 +162,7 @@
display.text = imageApi
tabbar.addTab(i18n("Images"), display)
+// PAINTING API
var paintingApi = ''
var p = new QColor
paintingApi += enumerateObject('QColor', p, false)
@@ -164,27 +180,28 @@
paintingApi += enumerateObject('QRectF', p, false)
p = new QSizeF(2,2)
paintingApi += enumerateObject('QSizeF', p, false)
+p = 0
display = new TextEdit
display.readOnly = true
display.text = paintingApi
tabbar.addTab(i18n("Painting"), display)
-
+// DATAENGINE API
var dataApi = ''
var d = dataEngine("time")
dataApi += enumerateObject("DataEngine", d, false)
var d = dataEngine("time").serviceForSource("Local")
var d = service("time", "Local")
dataApi += enumerateObject("Service", d, false)
+d = 0
display = new TextEdit
display.readOnly = true
display.text = dataApi
tabbar.addTab(i18n("DataEngine"), display)
-
tabbar.adjustSize()
layout.addItem(tabbar)
-
+plasmoid.gc()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic