00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __konq_bgnd_h
00022 #define __konq_bgnd_h
00023
00024 #include <tqstring.h>
00025 #include <tqpixmap.h>
00026
00027 #include <kdialogbase.h>
00028
00029 class KColorButton;
00030 class KURLRequester;
00031 class TQButtonGroup;
00032 class TQRadioButton;
00033
00038 class KonqBgndDialog : public KDialogBase
00039 {
00040 Q_OBJECT
00041 public:
00045 KonqBgndDialog( TQWidget* parent, const TQString& pixmapFile,
00046 const TQColor& theColor, const TQColor& defaultColor );
00047 ~KonqBgndDialog();
00048
00049 TQColor color() const;
00050 const TQString& 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 TQString& fileName );
00060
00061 TQColor m_color;
00062 TQPixmap m_pixmap;
00063 TQString m_pixmapFile;
00064 TQFrame* m_preview;
00065
00066 TQButtonGroup* m_buttonGroup;
00067 TQRadioButton* m_radioColor;
00068 TQRadioButton* m_radioPicture;
00069 KURLRequester* m_comboPicture;
00070 KColorButton* m_buttonColor;
00071
00072 };
00073
00074 #endif