Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

sample.h

Go to the documentation of this file.
00001 /*
00002                              This file is part of the Opie Project
00003 
00004                              Copyright (c)  2002 Trolltech AS <info@trolltech.com>
00005                              Copyright (c)  2002 Robert Griebl <sandman@handhelds.org>
00006               =.
00007             .=l.
00008            .>+-=
00009  _;:,     .>    :=|.         This program is free software; you can
00010 .> <`_,   >  .   <=          redistribute it and/or  modify it under
00011 :`=1 )Y*s>-.--   :           the terms of the GNU Library General Public
00012 .="- .-=="i,     .._         License as published by the Free Software
00013  - .   .-<_>     .<>         Foundation; either version 2 of the License,
00014      ._= =}       :          or (at your option) any later version.
00015     .%`+i>       _;_.
00016     .i_,=:_.      -<s.       This program is distributed in the hope that
00017      +  .  -:.       =       it will be useful,  but WITHOUT ANY WARRANTY;
00018     : ..    .:,     . . .    without even the implied warranty of
00019     =_        +     =;=|`    MERCHANTABILITY or FITNESS FOR A
00020   _.=:.       :    :=>`:     PARTICULAR PURPOSE. See the GNU
00021 ..}^=.=       =       ;      Library General Public License for more
00022 ++=   -.     .`     .:       details.
00023 :     =  ...= . :.=-
00024  -.   .:....=;==+<;          You should have received a copy of the GNU
00025   -_. . .   )=.  =           Library General Public License along with
00026     --        :-=`           this library; see the file COPYING.LIB.
00027                              If not, write to the Free Software Foundation,
00028                              Inc., 59 Temple Place - Suite 330,
00029                              Boston, MA 02111-1307, USA.
00030 */
00031 
00032 #ifndef __PREVIEW_H__
00033 #define __PREVIEW_H__
00034 
00035 #include <qwidget.h>
00036 
00037 #include <qpe/windowdecorationinterface.h>
00038 
00039 class QVBox;
00040 class QPopupMenu;
00041 class SampleText;
00042 
00043 class SampleWindow : public QWidget
00044 {
00045     Q_OBJECT
00046 public:
00047     SampleWindow( QWidget *parent );
00048 
00049     QSize sizeHint() const;
00050 
00051     virtual void setFont( const QFont &f );
00052 
00053         void setStyle2 ( QStyle *sty, const QPalette &p );
00054     void setDecoration( WindowDecorationInterface *i );
00055     void setPalette ( const QPalette & );
00056 
00057     virtual void paintEvent( QPaintEvent * );
00058 
00059     void init();
00060 
00061     virtual bool eventFilter( QObject *, QEvent *e );
00062     virtual void paletteChange( const QPalette &old );
00063     virtual void resizeEvent( QResizeEvent *re );
00064 
00065 public slots:
00066     void fixGeometry();
00067 
00068 protected:
00069     WindowDecorationInterface *iface;
00070     WindowDecorationInterface::WindowData wd;
00071     QVBox *container;
00072     QPopupMenu *popup;
00073     int th;
00074     int tb;
00075     int lb;
00076     int rb;
00077     int bb;
00078 };
00079 
00080 #endif

Generated on Sat Nov 5 16:17:46 2005 for OPIE by  doxygen 1.4.2