1 Writing Plasmoids With JavaScript
2 =================================
9 http://techbase.kde.org/Projects/Plasma/Package
11 Installing and Replacing
12 ------------------------
17 FormFactor formFactor();
19 QString currentActivity();
20 AspectRatioMode aspectRatioMode();
21 void setAspectRatioMode(AspectRatioMode mode);
22 bool shouldConserveResources();
25 setFailedToLaunch(bool failed, const QString &reason = QString());
27 resize(qreal w, qreal h);
28 setMinimumSize(qreal w, qreal h);
29 setPreferredSize(qreal w, qreal h);
31 setLayout(QGraphicsLayout *layout);
32 QGraphicsLayout *layout() const;
34 Getting Notified of Changes
35 ===========================
37 plasmoid.formFactorChanged
38 plasmoid.locationChanged
39 plasmoid.contextChanged
43 networkAvailableChanged(bool)
44 conserveResourcesChanged(bool)
46 User Interface Elements
47 =======================
78 Creating Items By Hand
79 ----------------------
83 Creating Items From UI Files
84 ----------------------------
94 Painting on the Canvas
95 ----------------------
96 plasmoid.paintInterface = function(painter)
103 Accessing Sources of Data
104 =========================
105 dataEngine(string name)
110 Declaring Config Values
111 -----------------------
112 KConfigXt XML -> main.xml
114 Accessing Configuration Data
115 ----------------------------
118 WriteConfig(string, var)
125 Other Functions and Classes
126 ===========================
131 plasmoid.setAspectRatioMode