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., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __konq_bgnd_h
00022 #define __konq_bgnd_h
00023 
00024 #include <qstring.h>
00025 #include <qpixmap.h>
00026 
00027 #include <kdialogbase.h>
00028 
00029 class KColorButton;
00030 class KURLRequester;
00031 class QButtonGroup;
00032 class QRadioButton;
00033 
00038 class KonqBgndDialog : public KDialogBase
00039 {
00040   Q_OBJECT
00041 public:
00045   KonqBgndDialog( QWidget* parent, const QString& pixmapFile,
00046                   const QColor& theColor, const QColor& defaultColor );
00047   ~KonqBgndDialog();
00048 
00049   QColor color() const;
00050   const QString& pixmapFile() const { return m_pixmapFile; }
00051 
00052 private slots:
00053   void slotBackgroundModeChanged();
00054   void slotPictureChanged();
00055   void slotColorChanged();
00056   
00057 private:
00058   void initPictures();
00059   void loadPicture( const QString& fileName );
00060 
00061   QColor m_color;
00062   QPixmap m_pixmap;
00063   QString m_pixmapFile;
00064   QFrame* m_preview;
00065   
00066   QButtonGroup* m_buttonGroup;
00067   QRadioButton* m_radioColor;
00068   QRadioButton* m_radioPicture;
00069   KURLRequester* m_comboPicture;
00070   KColorButton* m_buttonColor;
00071   
00072 };
00073 
00074 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys