~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to core/utilities/cameragui/q3support/icongroupitem.h

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Rohan Garg, Philip Muškovac, Felix Geyer
  • Date: 2011-09-23 18:18:55 UTC
  • mfrom: (1.2.36 upstream)
  • Revision ID: package-import@ubuntu.com-20110923181855-ifs67wxkugshev9k
Tags: 2:2.1.1-0ubuntu1
[ Rohan Garg ]
* New upstream release (LP: #834190)
  - debian/control
    + Build with libqtwebkit-dev
 - debian/kipi-plugins-common
    + Install libkvkontakte required by kipi-plugins
 - debian/digikam
    + Install panoramagui

[ Philip Muškovac ]
* New upstream release
  - debian/control:
    + Add libcv-dev, libcvaux-dev, libhighgui-dev, libboost-graph1.46-dev,
      libksane-dev, libxml2-dev, libxslt-dev, libqt4-opengl-dev, libqjson-dev,
      libgpod-dev and libqca2-dev to build-deps
    + Add packages for kipi-plugins, libmediawiki, libkface, libkgeomap and
      libkvkontakte
  - debian/rules:
    + Don't build with gphoto2 since it doesn't build with it.
  - Add kubuntu_fix_test_linking.diff to fix linking of the dngconverter test
  - update install files
  - update kubuntu_01_mysqld_executable_name.diff for new cmake layout
    and rename to kubuntu_mysqld_executable_name.diff
* Fix typo in digikam-data description (LP: #804894)
* Fix Vcs links

[ Felix Geyer ]
* Move library data files to the new packages libkface-data, libkgeomap-data
  and libkvkontakte-data.
* Override version of the embedded library packages to 1.0~digikam<version>.
* Exclude the library packages from digikam-dbg to prevent file conflicts in
  the future.
* Call dh_install with --list-missing.

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        : 2005-04-24
 
7
 * Description : icons group item.
 
8
 *
 
9
 * Copyright (C) 2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
10
 * Copyright (C) 2006-2011 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
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 ICONGROUPITEM_H
 
26
#define ICONGROUPITEM_H
 
27
 
 
28
// Qt includes
 
29
 
 
30
#include <QRect>
 
31
 
 
32
// Local includes
 
33
 
 
34
#include "digikam_export.h"
 
35
 
 
36
class QPainter;
 
37
 
 
38
namespace Digikam
 
39
{
 
40
 
 
41
class IconView;
 
42
class IconItem;
 
43
 
 
44
class IconGroupItem
 
45
{
 
46
    friend class IconView;
 
47
 
 
48
public:
 
49
 
 
50
    IconGroupItem(IconView* parent);
 
51
    virtual ~IconGroupItem();
 
52
 
 
53
    IconView* iconView() const;
 
54
 
 
55
    IconGroupItem* nextGroup() const;
 
56
    IconGroupItem* prevGroup() const;
 
57
 
 
58
    QRect  rect() const;
 
59
    int    y() const;
 
60
    bool   move(int y);
 
61
 
 
62
    IconItem* firstItem() const;
 
63
    IconItem* lastItem() const;
 
64
 
 
65
    int       count() const;
 
66
    int       index(IconItem* item) const;
 
67
 
 
68
    void      clear(bool update=true);
 
69
    void      sort();
 
70
 
 
71
    void insertItem(IconItem* item);
 
72
    void takeItem(IconItem* item);
 
73
 
 
74
    virtual int compare(IconGroupItem* group);
 
75
 
 
76
protected:
 
77
 
 
78
    virtual void paintBanner(QPainter* p);
 
79
 
 
80
private:
 
81
 
 
82
    static int cmpItems(const void* n1, const void* n2);
 
83
 
 
84
private:
 
85
 
 
86
    IconGroupItem*            m_next;
 
87
    IconGroupItem*            m_prev;
 
88
 
 
89
    class IconGroupItemPriv;
 
90
    IconGroupItemPriv* const  d;
 
91
};
 
92
 
 
93
}  // namespace Digikam
 
94
 
 
95
#endif /* ICONGROUPITEM_H */