exampleoptions.h 1.72 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/**
 * Copyright (C) 2004 Michael Pyne <mpyne@kde.org>
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE. See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */
16

Michael Pyne's avatar
Michael Pyne committed
17 18
#ifndef JUK_EXAMPLEOPTIONS_H
#define JUK_EXAMPLEOPTIONS_H
19

Michael Pyne's avatar
Michael Pyne committed
20
class QUrl;
21

Michael Pyne's avatar
Michael Pyne committed
22
#include <QDialog>
23
#include <QWidget>
Michael Pyne's avatar
Michael Pyne committed
24

25
#include "ui_exampleoptionsbase.h"
26

27
class ExampleOptions : public QWidget, public Ui::ExampleOptionsBase
28 29
{
    Q_OBJECT
Scott Wheeler's avatar
Scott Wheeler committed
30
public:
Yuri Chornoivan's avatar
Yuri Chornoivan committed
31
    explicit ExampleOptions(QWidget *parent);
32

Scott Wheeler's avatar
Scott Wheeler committed
33
protected slots:
Michael Pyne's avatar
Michael Pyne committed
34 35 36
    void exampleSelectionChanged();
    void exampleDataChanged();
    void exampleFileChanged();
37 38 39 40

signals:
    void dataChanged();
    void fileChanged();
41 42 43 44 45
};

class ExampleOptionsDialog : public QDialog
{
    Q_OBJECT
Scott Wheeler's avatar
Scott Wheeler committed
46
public:
Yuri Chornoivan's avatar
Yuri Chornoivan committed
47
    explicit ExampleOptionsDialog(QWidget *parent);
48 49 50

    const ExampleOptions *widget() const { return m_options; }

Michael Pyne's avatar
Michael Pyne committed
51
protected:
52 53 54
    virtual void hideEvent(QHideEvent *);
    virtual void showEvent(QShowEvent *);

Scott Wheeler's avatar
Scott Wheeler committed
55
protected slots:
56
    void fileModeSelected();
Michael Pyne's avatar
Michael Pyne committed
57 58
    void urlChanged(const QUrl &);

Scott Wheeler's avatar
Scott Wheeler committed
59
signals:
60 61 62 63 64
    void fileChanged(const QString &);
    void dataChanged();
    void signalHidden();
    void signalShown();

Scott Wheeler's avatar
Scott Wheeler committed
65
private:
66 67 68
    ExampleOptions *m_options;
};

Michael Pyne's avatar
Michael Pyne committed
69
#endif /* JUK_EXAMPLEOPTIONS_H */
70

71
// vim: set et sw=4 tw=0 sta: