~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/digikam/ratingfilter.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.3.2 upstream) (37 hardy)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20080717202539-1bw3w3nrsso7yj4z
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2007-10-09
 
7
 * Description : a widget to filter album contents by rating
 
8
 * 
 
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>
 
11
 *
 
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)
 
16
 * any later version.
 
17
 * 
 
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.
 
22
 *
 
23
 * ============================================================ */
 
24
 
 
25
#ifndef RATINGFILTER_H
 
26
#define RATINGFILTER_H
 
27
 
 
28
// Local includes.
 
29
 
 
30
#include "albumlister.h"
 
31
#include "ratingwidget.h"
 
32
 
 
33
namespace Digikam
 
34
{
 
35
 
 
36
class RatingFilterPriv;
 
37
 
 
38
class RatingFilter : public RatingWidget
 
39
{
 
40
    Q_OBJECT
 
41
    
 
42
public:
 
43
 
 
44
    RatingFilter(QWidget* parent);
 
45
    ~RatingFilter();
 
46
 
 
47
    void setRatingFilterCondition(AlbumLister::RatingCondition cond);
 
48
    AlbumLister::RatingCondition ratingFilterCondition();
 
49
 
 
50
signals:
 
51
 
 
52
    void signalRatingFilterChanged(int, AlbumLister::RatingCondition);
 
53
 
 
54
protected:
 
55
 
 
56
    void mousePressEvent(QMouseEvent*);
 
57
    void mouseMoveEvent(QMouseEvent*);
 
58
    void mouseReleaseEvent(QMouseEvent*);
 
59
       
 
60
private:
 
61
 
 
62
    void updateRatingTooltip();
 
63
 
 
64
private slots:
 
65
 
 
66
    void slotRatingChanged();
 
67
 
 
68
private:
 
69
 
 
70
    RatingFilterPriv* d;
 
71
};
 
72
 
 
73
}  // namespace Digikam
 
74
 
 
75
#endif // RATINGWIDGET_H