digikam
albumpropsedit.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef ALBUMPROPSEDIT_H
00027 #define ALBUMPROPSEDIT_H
00028
00029
00030
00031 #include <QDateTime>
00032 #include <QString>
00033 #include <QStringList>
00034
00035
00036
00037 #include <kdialog.h>
00038
00039 namespace Digikam
00040 {
00041
00042 class PAlbum;
00043 class AlbumPropsEditPriv;
00044
00045 class AlbumPropsEdit : public KDialog
00046 {
00047 Q_OBJECT
00048
00049 public:
00050
00051 AlbumPropsEdit(PAlbum* album, bool create=false);
00052 ~AlbumPropsEdit();
00053
00054 QString title() const;
00055 QString comments() const;
00056 QDate date() const;
00057 QString collection() const;
00058 QStringList albumCollections() const;
00059
00060 static bool editProps(PAlbum *album,
00061 QString& title,
00062 QString& comments,
00063 QDate& date,
00064 QString& collection,
00065 QStringList& albumCollections);
00066
00067 static bool createNew(PAlbum *parent,
00068 QString& title,
00069 QString& comments,
00070 QDate& date,
00071 QString& collection,
00072 QStringList& albumCollections);
00073
00074 private slots:
00075
00076 void slotTitleChanged(const QString& newtitle);
00077 void slotDateLowButtonClicked();
00078 void slotDateAverageButtonClicked();
00079 void slotDateHighButtonClicked();
00080
00081 private:
00082
00083 AlbumPropsEditPriv* d;
00084 };
00085
00086 }
00087
00088 #endif