summaryrefslogtreecommitdiff
path: root/noncore/settings/appearance2/sample.h
blob: c6f9b5a3a244237c1fc3f6e346865bad45bdcfd3 (plain)
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
#ifndef __PREVIEW_H__
#define __PREVIEW_H__

#include <qwidget.h>

#include <qpe/windowdecorationinterface.h>

class QVBox;
class QPopupMenu;
class SampleText;

class SampleWindow : public QWidget
{
    Q_OBJECT
public:
    SampleWindow( QWidget *parent );

    QSize sizeHint() const;

    virtual void setFont( const QFont &f );

	void setStyle2 ( QStyle *sty );
    void setDecoration( WindowDecorationInterface *i );
    void setPalette ( const QPalette & );

    virtual void paintEvent( QPaintEvent * );

    void init();

    virtual bool eventFilter( QObject *, QEvent *e );
    virtual void paletteChange( const QPalette &old );
    virtual void resizeEvent( QResizeEvent *re );

public slots:
    void fixGeometry();

protected:
    WindowDecorationInterface *iface;
    WindowDecorationInterface::WindowData wd;
    QVBox *container;
    QPopupMenu *popup;
    int th;
    int tb;
    int lb;
    int rb;
    int bb;
};

#endif