summaryrefslogtreecommitdiff
path: root/library/dummy_api_docu.cpp
Side-by-side diff
Diffstat (limited to 'library/dummy_api_docu.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--library/dummy_api_docu.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/library/dummy_api_docu.cpp b/library/dummy_api_docu.cpp
index 6b76401..f2153df 100644
--- a/library/dummy_api_docu.cpp
+++ b/library/dummy_api_docu.cpp
@@ -120,192 +120,250 @@
* \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
+ */