1
/* ============================================================
3
* This file is a part of digiKam project
4
* http://www.digikam.org
7
* Description : a widget to filter album contents by rating
9
* Copyright (C) 2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
* Copyright (C) 2007 by Arnd Baecker <arnd dot baecker at web dot de>
12
* This program is free software; you can redistribute it
13
* and/or modify it under the terms of the GNU General
14
* Public License as published by the Free Software Foundation;
15
* either version 2, or (at your option)
18
* This program is distributed in the hope that it will be useful,
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
* GNU General Public License for more details.
23
* ============================================================ */
25
#ifndef RATINGFILTER_H
26
#define RATINGFILTER_H
30
#include "albumlister.h"
31
#include "ratingwidget.h"
36
class RatingFilterPriv;
38
class RatingFilter : public RatingWidget
44
RatingFilter(QWidget* parent);
47
void setRatingFilterCondition(AlbumLister::RatingCondition cond);
48
AlbumLister::RatingCondition ratingFilterCondition();
52
void signalRatingFilterChanged(int, AlbumLister::RatingCondition);
56
void mousePressEvent(QMouseEvent*);
57
void mouseMoveEvent(QMouseEvent*);
58
void mouseReleaseEvent(QMouseEvent*);
62
void updateRatingTooltip();
66
void slotRatingChanged();
73
} // namespace Digikam
75
#endif // RATINGWIDGET_H