libkonq Library API Documentation

konq_bgnddlg.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
00003    Copyright (c) 1999 David Faure <fauren@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018    Boston, MA 02111-1307, USA.
00019 */
00020 
00021 #ifndef __konq_bgnd_h
00022 #define __konq_bgnd_h
00023 
00024 #include <qgroupbox.h>
00025 #include <qstring.h>
00026 #include <qpixmap.h>
00027 
00028 #include <kdialogbase.h>
00029 
00030 class QComboBox;
00031 class QPushButton;
00032 
00038 class KBgndDialogPage : public QGroupBox
00039 {
00040   Q_OBJECT
00041 public:
00048   KBgndDialogPage( QWidget * parent, const QString & pixmapFile, KInstance *instance, const char * resource );
00049   virtual ~KBgndDialogPage();
00050 
00051   QPixmap pixmap() { return m_wallPixmap; }
00052   QString pixmapFile() { return m_wallFile; }
00053 
00054 public slots:
00055   void slotWallPaperChanged( int );
00056   void slotBrowse();
00057 
00058 protected:
00059   void showSettings( const QString& fileName );
00060   void loadWallPaper();
00061   virtual void resizeEvent ( QResizeEvent * );
00062 
00063   QPushButton * m_browseButton;
00064   QComboBox * m_wallBox;
00065   QFrame * m_wallWidget;
00066   QPixmap m_wallPixmap;
00067   QString m_wallFile;
00068   int imageX, imageW, imageH, imageY;
00069   KInstance *m_instance;
00070   QCString m_resource;
00071 };
00072 
00073 
00078 class KonqBgndDialog : public KDialogBase
00079 {
00080   Q_OBJECT
00081 public:
00085   KonqBgndDialog( const QString & pixmapFile, KInstance *instance );
00086   ~KonqBgndDialog();
00087 
00088   QPixmap pixmap() { return m_propsPage->pixmap(); }
00089   QString pixmapFile() { return m_propsPage->pixmapFile(); }
00090 
00091 private:
00092   KBgndDialogPage * m_propsPage;
00093 };
00094 
00095 #endif
00096 
KDE Logo
This file is part of the documentation for libkonq Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun Apr 11 13:44:46 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003