~ubuntu-branches/ubuntu/feisty/digikam/feisty

« back to all changes in this revision

Viewing changes to digikam/utilities/cameragui/cameraiconview.h

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
 
3
 * Date  : 2004-09-18
 
4
 * Description : 
 
5
 * 
 
6
 * Copyright 2004 by Renchi Raju
 
7
 
 
8
 * This program is free software; you can redistribute it
 
9
 * and/or modify it under the terms of the GNU General
 
10
 * Public License as published by the Free Software Foundation;
 
11
 * either version 2, or (at your option)
 
12
 * any later version.
 
13
 * 
 
14
 * This program is distributed in the hope that it will be useful,
 
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
 * GNU General Public License for more details.
 
18
 * 
 
19
 * ============================================================ */
 
20
 
 
21
#ifndef CAMERAICONVIEW_H
 
22
#define CAMERAICONVIEW_H
 
23
 
 
24
#include <thumbview.h>
 
25
#include <qdict.h>
 
26
 
 
27
class GPItemInfo;
 
28
class RenameCustomizer;
 
29
class CameraUI;
 
30
class CameraIconViewItem;
 
31
 
 
32
class CameraIconView : public ThumbView
 
33
{
 
34
    Q_OBJECT
 
35
    
 
36
public:
 
37
 
 
38
    CameraIconView(CameraUI* ui, QWidget* parent);
 
39
    ~CameraIconView();
 
40
 
 
41
    void setRenameCustomizer(RenameCustomizer* renamer);
 
42
    
 
43
    void addItem(const GPItemInfo& itemInfo);
 
44
    void removeItem(const QString& folder, const QString& file);
 
45
    void setThumbnail(const QString& folder, const QString& filename,
 
46
                      const QPixmap& pixmap);
 
47
 
 
48
    CameraIconViewItem* findItem(const QString& folder, const QString& file);
 
49
    
 
50
private:
 
51
 
 
52
    QString getTemplatedName(const QString& templ, 
 
53
                             const GPItemInfo* itemInfo,
 
54
                             int position);
 
55
    
 
56
    QDict<CameraIconViewItem> m_itemDict;
 
57
    RenameCustomizer*         m_renamer;
 
58
    CameraUI*                 m_ui;
 
59
 
 
60
signals:
 
61
 
 
62
    void signalSelected(bool selected);
 
63
    void signalFileView(CameraIconViewItem*);
 
64
    void signalFileProperties(CameraIconViewItem*);
 
65
    void signalFileExif(CameraIconViewItem*);
 
66
    void signalDownload();
 
67
    void signalDelete();
 
68
    
 
69
public slots:
 
70
 
 
71
    void slotDownloadNameChanged();
 
72
    void slotSelectionChanged();
 
73
    void slotSelectAll();
 
74
    void slotSelectNone();
 
75
    void slotSelectInvert();
 
76
    void slotSelectNew();
 
77
 
 
78
private slots:
 
79
 
 
80
    void slotContextMenu(ThumbItem* item, const QPoint& pos);
 
81
    void slotDoubleClicked(ThumbItem* item);
 
82
};    
 
83
 
 
84
#endif /* CAMERAICONVIEW_H */