diff options
Diffstat (limited to 'src/libs/imageproperties/imagepropertiessidebardb.h')
-rw-r--r-- | src/libs/imageproperties/imagepropertiessidebardb.h | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/src/libs/imageproperties/imagepropertiessidebardb.h b/src/libs/imageproperties/imagepropertiessidebardb.h new file mode 100644 index 00000000..7037b648 --- /dev/null +++ b/src/libs/imageproperties/imagepropertiessidebardb.h @@ -0,0 +1,117 @@ +/* ============================================================ + * + * This file is a part of digiKam project + * http://www.digikam.org + * + * Date : 2004-11-17 + * Description : image properties side bar using data from + * digiKam database. + * + * Copyright (C) 2004-2008 by Gilles Caulier <caulier dot gilles at gmail dot com> + * Copyright (C) 2007 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> + * + * 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, 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. + * + * ============================================================ */ + +#ifndef IMAGEPROPERTIESSIDEBARDB_H +#define IMAGEPROPERTIESSIDEBARDB_H + +// TQt includes. + +#include <tqptrlist.h> + +// KDE includes. + +#include <kurl.h> + +// Local includes. + +#include "imagepropertiessidebar.h" +#include "digikam_export.h" + +class TQSplitter; +class TQWidget; +class TQRect; + +namespace Digikam +{ + +class DImg; +class AlbumIconView; +class AlbumIconItem; +class ImageInfo; +class NavigateBarTab; +class ImagePropertiesSideBarDBPriv; + +class DIGIKAM_EXPORT ImagePropertiesSideBarDB : public ImagePropertiesSideBar +{ + TQ_OBJECT + + +public: + + ImagePropertiesSideBarDB(TQWidget* parent, const char *name, TQSplitter *splitter, Side side=Left, + bool mimimizedDefault=false); + + ~ImagePropertiesSideBarDB(); + + virtual void itemChanged(const KURL& url, const TQRect &rect = TQRect(), DImg *img = 0); + + virtual void itemChanged(ImageInfo *info, const TQRect &rect = TQRect(), DImg *img = 0); + virtual void itemChanged(TQPtrList<ImageInfo> infos); + + void takeImageInfoOwnership(bool takeOwnership); + + void populateTags(void); + void refreshTagsView(); + +signals: + + void signalFirstItem(void); + void signalPrevItem(void); + void signalNextItem(void); + void signalLastItem(void); + void signalProgressBarMode(int, const TQString&); + void signalProgressValue(int); + +public slots: + + void slotAssignRating(int rating); + void slotAssignRatingNoStar(); + void slotAssignRatingOneStar(); + void slotAssignRatingTwoStar(); + void slotAssignRatingThreeStar(); + void slotAssignRatingFourStar(); + void slotAssignRatingFiveStar(); + + virtual void slotNoCurrentItem(void); + +private slots: + + void slotChangedTab(TQWidget* tab); + void slotFileMetadataChanged(const KURL &url); + +private: + + void itemChanged(const KURL& url, ImageInfo *info, + const TQRect &rect, DImg *img); + void itemChanged(TQPtrList<ImageInfo> infos, const TQRect &rect, DImg *img); + +private: + + ImagePropertiesSideBarDBPriv* d; +}; + +} // NameSpace Digikam + +#endif // IMAGEPROPERTIESSIDEBARDB_H |