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

« back to all changes in this revision

Viewing changes to core/utilities/lighttable/lighttableview.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        : 2007-03-05
 
7
 * Description : a widget to display 2 preview image on
 
8
 *               lightable to compare pictures.
 
9
 *
 
10
 * Copyright (C) 2007-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 LIGHTTABLEVIEW_H
 
26
#define LIGHTTABLEVIEW_H
 
27
 
 
28
// Qt includes
 
29
 
 
30
#include <QFrame>
 
31
#include <QString>
 
32
 
 
33
// Local includes
 
34
 
 
35
#include "imageinfo.h"
 
36
#include "digikam_export.h"
 
37
 
 
38
namespace Digikam
 
39
{
 
40
 
 
41
class LightTableView : public QFrame
 
42
{
 
43
    Q_OBJECT
 
44
 
 
45
public:
 
46
 
 
47
    LightTableView(QWidget* parent=0);
 
48
    ~LightTableView();
 
49
 
 
50
    void   setSyncPreview(bool sync);
 
51
    void   setNavigateByPair(bool b);
 
52
 
 
53
    void   setLeftImageInfo(const ImageInfo& info = ImageInfo());
 
54
    void   setRightImageInfo(const ImageInfo& info = ImageInfo());
 
55
 
 
56
    ImageInfo leftImageInfo() const;
 
57
    ImageInfo rightImageInfo() const;
 
58
 
 
59
    void   setLoadFullImageSize(bool b);
 
60
 
 
61
    void   checkForSelection(const ImageInfo& info);
 
62
 
 
63
    double leftZoomMax();
 
64
    double leftZoomMin();
 
65
 
 
66
    double rightZoomMax();
 
67
    double rightZoomMin();
 
68
 
 
69
    bool   leftMaxZoom();
 
70
    bool   leftMinZoom();
 
71
 
 
72
    bool   rightMaxZoom();
 
73
    bool   rightMinZoom();
 
74
 
 
75
    void   leftReload();
 
76
    void   rightReload();
 
77
 
 
78
Q_SIGNALS:
 
79
 
 
80
    void signalLeftPreviewLoaded(bool);
 
81
    void signalRightPreviewLoaded(bool);
 
82
 
 
83
    void signalLeftZoomFactorChanged(double);
 
84
    void signalRightZoomFactorChanged(double);
 
85
 
 
86
    void signalLeftDroppedItems(const ImageInfoList&);
 
87
    void signalRightDroppedItems(const ImageInfoList&);
 
88
 
 
89
    void signalLeftPanelLeftButtonClicked();
 
90
    void signalRightPanelLeftButtonClicked();
 
91
 
 
92
    void signalLeftPopupTagsView();
 
93
    void signalRightPopupTagsView();
 
94
 
 
95
    void signalSlideShow();
 
96
    void signalDeleteItem(const ImageInfo&);
 
97
    void signalEditItem(const ImageInfo&);
 
98
    void signalToggleOnSyncPreview(bool);
 
99
 
 
100
public Q_SLOTS:
 
101
 
 
102
    void slotDecreaseLeftZoom();
 
103
    void slotIncreaseLeftZoom();
 
104
    void slotLeftZoomSliderChanged(int);
 
105
    void setLeftZoomFactor(double z);
 
106
    void slotLeftFitToWindow();
 
107
    void slotLeftZoomTo100();
 
108
 
 
109
    void slotDecreaseRightZoom();
 
110
    void slotIncreaseRightZoom();
 
111
    void slotRightZoomSliderChanged(int);
 
112
    void setRightZoomFactor(double z);
 
113
    void slotRightFitToWindow();
 
114
    void slotRightZoomTo100();
 
115
 
 
116
private Q_SLOTS:
 
117
 
 
118
    void slotLeftContentsMoved(int, int);
 
119
    void slotRightContentsMoved(int, int);
 
120
    void slotLeftPreviewLoaded(bool);
 
121
    void slotRightPreviewLoaded(bool);
 
122
    void slotDeleteLeftItem();
 
123
    void slotDeleteRightItem();
 
124
 
 
125
private :
 
126
 
 
127
    void checkForSyncPreview();
 
128
 
 
129
    /// To not sync right panel during left loading
 
130
    bool leftPreviewLoading() const;
 
131
 
 
132
    /// To not sync left panel during right loading.
 
133
    bool rightPreviewLoading() const;
 
134
 
 
135
private :
 
136
 
 
137
    class LightTableViewPriv;
 
138
    LightTableViewPriv* const d;
 
139
};
 
140
 
 
141
}  // namespace Digikam
 
142
 
 
143
#endif /* LIGHTTABLEVIEW_H */