~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/id3tag/editor.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef EDITOR_H
 
2
#define EDITOR_H
 
3
 
 
4
#include <kdialog.h>
 
5
 
 
6
class KLineEdit;
 
7
class QLabel;
 
8
class NID3;
 
9
class QComboBox;
 
10
 
 
11
class Editor : public QWidget
 
12
{
 
13
Q_OBJECT
 
14
public:
 
15
        Editor(NID3 *id);
 
16
        QString name() const;
 
17
        QString artist() const;
 
18
        QString album() const;
 
19
        QString year() const;
 
20
        QString genre() const;
 
21
        QString comment() const;
 
22
        
 
23
 
 
24
signals:
 
25
        void saved();
 
26
 
 
27
public slots:
 
28
        void open(const QString &file);
 
29
        void show();
 
30
 
 
31
protected slots:
 
32
        void save();
 
33
        void textChanged(const QString&dummy);
 
34
 
 
35
protected:
 
36
        virtual void hideEvent(QHideEvent*);
 
37
 
 
38
private:
 
39
        KLineEdit *mName, *mArtist, *mAlbum, *mYear, *mComment;
 
40
        QComboBox *mGenre;
 
41
        QLabel *mFile;
 
42
        NID3 *mID3Loader;
 
43
        QPushButton *mSaveButton;
 
44
};
 
45
 
 
46
#endif
 
47