~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to core/libs/widgets/graphicsview/graphicsdimgview.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * Date        : 2010-04-30
7
7
 * Description : Graphics View for DImg preview
8
8
 *
9
 
 * Copyright (C) 2010-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
10
 
 * Copyright (C) 2011 Gilles Caulier <caulier dot gilles at gmail dot com>
 
9
 * Copyright (C) 2010-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
 
10
 * Copyright (C) 2011-2012 Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
13
13
 * and/or modify it under the terms of the GNU General
46
46
 
47
47
public:
48
48
 
49
 
    GraphicsDImgView(QWidget* parent = 0);
 
49
    explicit GraphicsDImgView(QWidget* const parent = 0);
50
50
    virtual ~GraphicsDImgView();
51
51
 
52
 
    /** Return the instance of item set by setItem().*/
 
52
    /** Return the instance of item set by setItem().
 
53
     */
53
54
    GraphicsDImgItem*         item()        const;
54
55
 
55
56
    /** Return a cast of item instance of item set by setItem() as DImgPreviewItem
56
 
        Note: if you store a GraphicsDImgItem object using setItem(), this method will return 0 */
 
57
     *  Note: if you store a GraphicsDImgItem object using setItem(), this method will return 0.
 
58
     */
57
59
    DImgPreviewItem*          previewItem() const;
58
60
 
59
61
    SinglePhotoPreviewLayout* layout()      const;
61
63
    /** Scrolls the view such that scenePos (in scene coordinates
62
64
     *  is displayed on the viewport at viewportPos (in viewport coordinates).
63
65
     *  E.g., calling scrollPointOnPoint(scenePos, viewport()->rect().center()) is
64
 
     *  equivalent to calling centerOn(scenePos). */
 
66
     *  equivalent to calling centerOn(scenePos).
 
67
     */
65
68
    void scrollPointOnPoint(const QPointF& scenePos, const QPoint& viewportPos);
66
69
 
67
70
    int  contentsX() const;
89
92
    void drawText(QPainter* p, const QRectF& rect, const QString& text);
90
93
 
91
94
    /** Store internal instance of item as GraphicsDImgItem. You can store DImgPreviewItem object also by this method.
92
 
        Use item() or previewItem() to get right version.
93
 
        Note: if you store a GraphicsDImgItem object, previewItem() will return 0 */
 
95
     *  Use item() or previewItem() to get right version.
 
96
     *  Note: if you store a GraphicsDImgItem object, previewItem() will return 0.
 
97
     */
94
98
    void setItem(GraphicsDImgItem* item);
95
99
 
96
100
    void installPanIcon();
106
110
    void continuePanning(const QPoint& pos);
107
111
    void finishPanning();
108
112
 
 
113
    void setShowText(bool value);
 
114
    
109
115
    virtual bool acceptsMouseClick(QMouseEvent* e);
110
 
 
111
116
    virtual void scrollContentsBy(int dx, int dy);
112
117
 
113
 
    void setShowText(bool value);
114
 
 
115
118
protected Q_SLOTS:
116
119
 
117
120
    void         slotContentsMoved();
118
121
    void         slotCornerButtonPressed();
119
122
    void         slotPanIconHidden();
 
123
 
120
124
    virtual void slotPanIconSelectionMoved(const QRect&, bool);
121
125
 
122
126
private:
123
127
 
124
 
    class GraphicsDImgViewPriv;
125
 
    GraphicsDImgViewPriv* const d;
 
128
    class Private;
 
129
    Private* const d;
126
130
};
127
131
 
128
132
} // namespace Digikam