File indexing completed on 2021-12-21 13:27:52

0001 /**
0002  * Copyright (C) 2004 Michael Pyne <mpyne@kde.org>
0003  *
0004  * This program is free software; you can redistribute it and/or modify it under
0005  * the terms of the GNU General Public License as published by the Free Software
0006  * Foundation; either version 2 of the License, or (at your option) any later
0007  * version.
0008  *
0009  * This program is distributed in the hope that it will be useful, but WITHOUT ANY
0010  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
0011  * PARTICULAR PURPOSE. See the GNU General Public License for more details.
0012  *
0013  * You should have received a copy of the GNU General Public License along with
0014  * this program.  If not, see <http://www.gnu.org/licenses/>.
0015  */
0016 
0017 #ifndef JUK_EXAMPLEOPTIONS_H
0018 #define JUK_EXAMPLEOPTIONS_H
0019 
0020 class QUrl;
0021 
0022 #include <QDialog>
0023 #include <QWidget>
0024 
0025 #include "ui_exampleoptionsbase.h"
0026 
0027 class ExampleOptions : public QWidget, public Ui::ExampleOptionsBase
0028 {
0029     Q_OBJECT
0030 public:
0031     explicit ExampleOptions(QWidget *parent);
0032 
0033 protected slots:
0034     void exampleSelectionChanged();
0035     void exampleDataChanged();
0036     void exampleFileChanged();
0037 
0038 signals:
0039     void dataChanged();
0040     void fileChanged();
0041 };
0042 
0043 class ExampleOptionsDialog : public QDialog
0044 {
0045     Q_OBJECT
0046 public:
0047     explicit ExampleOptionsDialog(QWidget *parent);
0048 
0049     const ExampleOptions *widget() const { return m_options; }
0050 
0051 protected:
0052     virtual void hideEvent(QHideEvent *) override;
0053     virtual void showEvent(QShowEvent *) override;
0054 
0055 protected slots:
0056     void fileModeSelected();
0057     void urlChanged(const QUrl &);
0058 
0059 signals:
0060     void fileChanged(const QString &);
0061     void dataChanged();
0062     void signalHidden();
0063     void signalShown();
0064 
0065 private:
0066     ExampleOptions *m_options;
0067 };
0068 
0069 #endif /* JUK_EXAMPLEOPTIONS_H */
0070 
0071 // vim: set et sw=4 tw=0 sta: