~neon/juk/master

1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
1
/***************************************************************************
2
    begin                : Thu Oct 28 2004
3
    copyright            : (C) 2004 by Michael Pyne
4
    email                : michael.pyne@kdemail.net
5
***************************************************************************/
6
7
/***************************************************************************
8
 *                                                                         *
9
 *   This program is free software; you can redistribute it and/or modify  *
10
 *   it under the terms of the GNU General Public License as published by  *
11
 *   the Free Software Foundation; either version 2 of the License, or     *
12
 *   (at your option) any later version.                                   *
13
 *                                                                         *
14
 ***************************************************************************/
15
1564 by Michael Pyne
Also standardize all of the JuK include header guards, to the most common style to save me
16
#ifndef EXAMPLEOPTIONS_H
17
#define EXAMPLEOPTIONS_H
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
18
19
#include <qdialog.h>
1566 by Scott Wheeler
Fix a few more classes.
20
1530 by Laurent Montel
qt3to4 + my script
21
#include <QHideEvent>
22
#include <QShowEvent>
1699 by Tim Beaulen
Port the exampleoptions widget to Ui4
23
#include <QWidget>
24
#include "ui_exampleoptionsbase.h"
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
25
1699 by Tim Beaulen
Port the exampleoptions widget to Ui4
26
class ExampleOptions : public QWidget, public Ui::ExampleOptionsBase
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
27
{
28
    Q_OBJECT
1566 by Scott Wheeler
Fix a few more classes.
29
public:
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
30
    ExampleOptions(QWidget *parent);
31
1566 by Scott Wheeler
Fix a few more classes.
32
protected slots:
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
33
    virtual void exampleSelectionChanged();
34
    virtual void exampleDataChanged();
35
    virtual void exampleFileChanged();
1699 by Tim Beaulen
Port the exampleoptions widget to Ui4
36
37
signals:
38
    void dataChanged();
39
    void fileChanged();
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
40
};
41
42
// We're not using KDialog(Base) because this dialog won't have any push
43
// buttons to close it.  It's just a little floating dialog.
44
class ExampleOptionsDialog : public QDialog
45
{
46
    Q_OBJECT
1566 by Scott Wheeler
Fix a few more classes.
47
public:
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
48
    ExampleOptionsDialog(QWidget *parent);
49
50
    const ExampleOptions *widget() const { return m_options; }
51
52
    protected:
53
    virtual void hideEvent(QHideEvent *);
54
    virtual void showEvent(QShowEvent *);
55
1566 by Scott Wheeler
Fix a few more classes.
56
protected slots:
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
57
    void fileModeSelected();
1663 by Laurent Montel
Fix signal/slot
58
    void fileChanged(const KUrl &);
1566 by Scott Wheeler
Fix a few more classes.
59
signals:
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
60
    void fileChanged(const QString &);
61
    void dataChanged();
62
    void signalHidden();
63
    void signalShown();
64
1566 by Scott Wheeler
Fix a few more classes.
65
private:
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
66
    ExampleOptions *m_options;
67
};
68
1564 by Michael Pyne
Also standardize all of the JuK include header guards, to the most common style to save me
69
#endif /* EXAMPLEOPTIONS_H */
1264 by Michael Pyne
GUI: Overhaul the file renamer configuration dialog based on a design of Scott's. This involved a lot more code than I thought at first, but it should be pretty neat.
70
1562 by Michael Pyne
Since we're standardizing the source style, figured I'd throw in the Big Huge Vim Modeline
71
// vim: set et sw=4 tw=0 sta: