1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
/*
* A place to explain various headers
*/
/*
* applicationinterface.h
*/
/**
* \class ApplicationInterface
* \brief Application interface currently used by the quicklaunch framework
*
* This is the interface to be exposed by applications available as DSO
* Normally one would use the OApplicationFactory which does the magic of
* exposing the interface.
*
* Resulting dynamic shared objects (dso) need to go into the
* OPIEDIR/plugins/application.
*
*
* You can use this interface to load applications into your application.
* @todo Implement Services + Trader
* @since Opie 1.0.2
*/
/**
* \fn QWidget* ApplicationInterface::createMainWindow(const QString& appName, QWidget* parent, const char* name, Qt::WFlags f)
* \brief create the mainwindow for the giving application name
* Create a main window for the giving application name
*
* @param appName The application widget to be created
* @param parent The parent of the newly created widget
* @param name The name of the QObject
* @param f Possible Window Flags
*
* @return the widget or 0l
*/
/**
* \fn QStringList ApplicationInterface::applications()const
* The list of application windows supported
*/
/*
* Font Factory
*/
/**
* \class FontFactoryInterface
* \brief Interface for additional Font Factories
*
* To add special types of fonts TrueTypes or your very own
* format. If you implement this Interface you can add
* custom font loading.
*
* The dynamic shared object goes to
* OPIEDIR/plugins/fontfactories.
*
* As of version Opie 1.0.2 loading of the plugins is not
* yet implemented
*
*/
/**
* \fn QFontFactory* FontFactoryInterface::fontFactory()
*
* Create a new QFontFactory and return it
*/
/*
* ImageCodec
*/
/**
* \class ImageCodecInterface
* \brief add Image Codecs
*
* This interface will be queried to add new Image loading
* and saving routines.
*
* The ImageCodec needs to be placed in OPIEDIR/plugins/imagecodecs.
*
* @see QImage
* @see QImageIO
**/
/**
* \fn QStringList ImageCodecInterface::keys()const
* \brief Query for the list of supported formats
*
* Return a QStringList of the supported formats
*
*/
/**
* \fn bool ImageCodecInterface::installIOHandler(const QString& format )
* \brief install codec to QIageIO for the specefic format
*
* Install a QImage codec for the requested format
*/
/*
* Input Methods
*/
/**
* \class InputMethodInterface
* \brief Interface class for inputting keyboard events
*
* InputMethods are loaded by the Launcher/Server/Taskbar
* and are located inside OPIEDIR/plugins/inputmethods
*
* Depending on the device these InputMethods are the only way
* to input charachters
*
*/
/**
* \fn QWidget InputMethodInterface::inputMethod(QWidget*parent, Qt::WFlags f)
* \brief create a new widget which should be used as input
*
* This method will be called if the inputmethod is to be shown.
* Make sure that your widget is not too large. As of Opie1.1 InputMethods
* can be floating as well.
*
* Delete the Widget yourself.
*
*
* @param parent The parent of the to be created Input widget.
* @param f The Qt::WFlags for the widget
*/
/**
* \fn void InputMethodInterface::resetState()
* \brief Reset the state of the inputmethod
*
* If you're shown reset the state of the keyboard to the
* the default.
*/
/**
* \fn QPixmap* InputMethodInterface::icon()
* \brief The icon of your Input method
*
* Return a pointer to a QPixmap symboling your inputmethod
* You need to delete the pixmap later yourself.
*/
/**
* \fn void InputMethodInterface::onKeyPress(QObject* receiver, const char* slot)
* \brief pass your key event through
*
* In your actual Input Implementation you'll need a SIGNAL with this
* void key(ushort,ushort,ushort,bool,bool) signal. The host of your input method
* requests you to connect your signal with the signal out of receiver and slot.
*
* ushort == unicode value
* ushort == keycode
* ushort == modifiers from Qt::ButtonState
* bool == true if the key is pressed and false if released
* bool == autorepeat on or off.
*
* See the QWSServer for more information about emitting keys
*
*
* @param receiver the receiver to QObject::connect to
* @param slot the slot to QObject::connect to
*
*/
/*
* MediaPlayer Plugins
*/
/**
* \class MediaPlayerPluginInterface
* \brief Plugins for the Opie Player I
*
* You can extend the Opie Player I by plugins placed in
* OPIEDIR/plugins/codecs
*
*
*/
/**
* \fn MediaPlayerDecoder MediaPlayerPluginInterface::decoder()
*
* Create a new MediaPlayerDecoder
*
*/
/*
* MenuApplet Interface
*/
/**
* \class MenuAppletInterface
* \brief Plugins for the Menu Applet/StartMenu
*
* You can extend the startmenu by plugins implementing this
* interface. You need to place the plugin in plugins/applets
* from where they will be loaded.
*
*
*/
/**
* \fn QString MenuAppletInterface::name()const
* \brief Translated name of the Menu Applet
*
* Return a translated name using QObject::tr of your plugin
*/
/**
* \fn int MenuAppletInterface::position()const
* \brief the wished position of this applet
*
* The position where you want to be placed. 0 for the down most
*
*/
/**
* \fn QIconSet MenuAppletInterface::icon()const
* \brief return a QIconSet.
*
* The returned icon set will be shown next
* to text().
* Make use of AppLnk::smallIconSize()
*/
/**
* \fn QString MenuAppletInterface::text()const
* \brief return a Text shown to the user in the menu
*/
/**
* \fn QPopupMenu* MenuAppletInterface::popup( QWidget* parent)const
* \brief Provide a SubMenu popup if you want
*
* You can provide a Submenu popup for your item as well. If you return
* 0 no popup will be shown.
*
* You can use the QPopupMenu::aboutToShow() signal to be informed before
* showing the popup
*
* @param parent The parent of the to be created popup.
* @see QPopupMenu
*/
/**
* \fn void MenuAppletInterface::activated()
* \brief This method gets called once the user clicked on the item
*
* This is the way you get informed about user input. Your plugin
* has just been clicked
*/
/*
* StyleInterface
*/
/**
* \class StyleInterface
* \brief StyleInterface base class
*
* Opie styles should implement StyleExtendedInterface.
* StyleInterface is only for compability reasons present and should
* not be used for new styles.
*
* Styles need to be put into OPIEDIR/plugins/styles
*/
/**
* \class StyleExtendedInterface
* \brief The Plugin Interface for all Opie styles
*
* If you want to create a new QStyle for Opie use this class.
*
* key(ushort,ushort,ushort,bool,bool)
*/
/*
* Taskbar Applets
*/
/**
* \class TaskbarAppletInterface
*
* This is the base class of all Applets shown in the taskbar
* An applets need to provide a position and a widget.
*
* Applets need to be put into OPIEDIR/plugins/applets
*
*/
/**
* \fn QWidget* TaskbarAppletInterface::applet( QWidget* parent )
* \brief return the new Applet Widget
*
* @param parent The parent of the Applet normally the taskbar
*/
/**
* \fn int TaskbarAppletInterface::position()const;
* \brief the wished position
*
* From left to right. 0 is left. The clock uses 10
*/
/**
* \class WindowDecorationInterface
*
* Interface class for Window Decorations. Yu need to implement
* metric and drawing functions.
*/
/**
* \class WindowDecorationInterface::WindowData
*
* Window informations like the QRect, Palette, Caption
* and flag
*/
/**
* \fn int WindowDecorationInterface::metric(Metric m,const WindowData* )
*
* Return the width for the item out of Metric.
* Normally you will case Metric and default: should call the interface
* method. Also return 0
*/
/**
* \fn void WindowDecorationInterface::drawArea( Area a, QPainter* , const WindowData* )const
*
* draw the Area specefic in a to the QPainter
*/
/**
* \fn void WindowDecorationInterface::drawButton(Button b,QPainter*p ,const WindowData* d, int x, int y, int w,int h, QWSButton::State s)const
*
* @param b The Button to be drawn
* @param p The painter to draw at
* @param d The Window Data
* @param x The X position of the button
* @param y The Y position of the button
* @param w The width of the button
* @param h The height of the button
* @param s The state of the button
*/
/**
* \fn QRegion WindowDecorationInterface::mask( const WindowData* )const
*
* The mask of the Decoration.
*
* \code
* int th = metric(TitleHeight,wd);
* QRect rect( wd->rect );
* QRect r(rect.left() - metric(LeftBorder,wd),
* rect.top() - th - metric(TopBorder,wd),
* rect.width() + metric(LeftBorder,wd) + metric(RightBorder,wd),
* rect.height() + th + metric(TopBorder,wd) + metric(BottomBorder,wd));
* return QRegion(r) - rect;
* \endcode
*/
|