~ubuntu-branches/ubuntu/breezy/kdemultimedia/breezy

« back to all changes in this revision

Viewing changes to noatun/noatun/library/noatunpref.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-03-24 04:48:58 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050324044858-8ff88o9jxej6ii3d
Tags: 4:3.4.0-0ubuntu3
Add kubuntu_02_hide_arts_menu_entries.diff to hide artsbuilder and artscontrol k-menu entries

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef NOATUNPREF_H
2
 
#define NOATUNPREF_H
3
 
 
4
 
#include <kdialogbase.h>
5
 
#include <noatunapp.h>
6
 
#include <qlist.h>
7
 
 
8
 
class CModule;
9
 
 
10
 
class NoatunPreferences : public KDialogBase
11
 
{
12
 
Q_OBJECT
13
 
friend class CModule;
14
 
 
15
 
public:
16
 
        NoatunPreferences(QWidget *parent);
17
 
 
18
 
public:
19
 
        virtual void show();
20
 
 
21
 
protected:
22
 
        virtual void slotOk();
23
 
        virtual void slotApply();
24
 
 
25
 
private:
26
 
        void add(CModule *page);
27
 
        void remove(CModule *page);
28
 
        
29
 
private:
30
 
        class NoatunPreferencesPrivate;
31
 
        NoatunPreferencesPrivate *d;
32
 
 
33
 
        QList<CModule> mModules;
34
 
};
35
 
 
36
 
class CModule : public QWidget
37
 
{
38
 
Q_OBJECT
39
 
 
40
 
public:
41
 
        /**
42
 
         * arguments are short and long descriptions
43
 
         * for this module, respectively
44
 
         *
45
 
         * parent is the object that is this modules virtual-parent.
46
 
         * When that is deleted, this also will go away, automagically.
47
 
         **/
48
 
        CModule(const QString &name, const QString &description, QObject *parent=0);
49
 
 
50
 
        virtual ~CModule();
51
 
 
52
 
public slots:
53
 
        /**
54
 
         * save all your options, and apply them
55
 
         **/
56
 
        virtual void save() {}
57
 
        /**
58
 
         * reload all options (e.g., read config files)
59
 
         **/
60
 
        virtual void reopen() {}
61
 
 
62
 
private slots:
63
 
        void ownerDeleted();
64
 
 
65
 
private:
66
 
        class CModulePrivate;
67
 
        CModulePrivate *d;
68
 
};
69
 
 
70
 
 
71
 
#endif // NOATUNPREF_H