File indexing completed on 2024-04-28 07:51:28

0001 /*
0002     This file is part of the KDE project "KBounce"
0003 
0004     SPDX-FileCopyrightText: 2010 Andreas Scherf <ascherfy@gmail.com>
0005 
0006     SPDX-License-Identifier: LGPL-2.0-or-later
0007 */
0008 
0009 #ifndef BACKGROUNDSELECTOR_H
0010 #define BACKGROUNDSELECTOR_H
0011 
0012 #include <QWidget>
0013 #include <KConfigSkeleton>
0014 namespace Ui {
0015     class KBounceBackgroundSelector;
0016 }
0017 
0018 class BackgroundSelector : public QWidget {
0019     Q_OBJECT
0020     public:
0021         explicit BackgroundSelector(QWidget *parent ,KConfigSkeleton * config );
0022         ~BackgroundSelector() override;
0023 
0024         void setupData();
0025     private Q_SLOTS:
0026         void imagePathChanged(const QString& path);
0027         void useRandomBackgroundPicturesChanged(bool state);
0028         void previewBackgroundPicture();
0029     protected:
0030         void changeEvent(QEvent *e) override;
0031         void enableSettings(bool enable=true);
0032     private:
0033         Ui::KBounceBackgroundSelector *ui;
0034         KConfigSkeleton * m_config;
0035 };
0036 
0037 #endif // BACKGROUNDSELECTOR_H