Diffstat (limited to 'noncore/settings/appearance2/sample.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/appearance2/sample.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/noncore/settings/appearance2/sample.h b/noncore/settings/appearance2/sample.h new file mode 100644 index 0000000..c6f9b5a --- a/dev/null +++ b/noncore/settings/appearance2/sample.h | |||
@@ -0,0 +1,49 @@ | |||
1 | #ifndef __PREVIEW_H__ | ||
2 | #define __PREVIEW_H__ | ||
3 | |||
4 | #include <qwidget.h> | ||
5 | |||
6 | #include <qpe/windowdecorationinterface.h> | ||
7 | |||
8 | class QVBox; | ||
9 | class QPopupMenu; | ||
10 | class SampleText; | ||
11 | |||
12 | class SampleWindow : public QWidget | ||
13 | { | ||
14 | Q_OBJECT | ||
15 | public: | ||
16 | SampleWindow( QWidget *parent ); | ||
17 | |||
18 | QSize sizeHint() const; | ||
19 | |||
20 | virtual void setFont( const QFont &f ); | ||
21 | |||
22 | void setStyle2 ( QStyle *sty ); | ||
23 | void setDecoration( WindowDecorationInterface *i ); | ||
24 | void setPalette ( const QPalette & ); | ||
25 | |||
26 | virtual void paintEvent( QPaintEvent * ); | ||
27 | |||
28 | void init(); | ||
29 | |||
30 | virtual bool eventFilter( QObject *, QEvent *e ); | ||
31 | virtual void paletteChange( const QPalette &old ); | ||
32 | virtual void resizeEvent( QResizeEvent *re ); | ||
33 | |||
34 | public slots: | ||
35 | void fixGeometry(); | ||
36 | |||
37 | protected: | ||
38 | WindowDecorationInterface *iface; | ||
39 | WindowDecorationInterface::WindowData wd; | ||
40 | QVBox *container; | ||
41 | QPopupMenu *popup; | ||
42 | int th; | ||
43 | int tb; | ||
44 | int lb; | ||
45 | int rb; | ||
46 | int bb; | ||
47 | }; | ||
48 | |||
49 | #endif | ||