~ubuntu-branches/ubuntu/edgy/digikam/edgy-updates

« back to all changes in this revision

Viewing changes to digikam/utilities/cameragui/cameraui.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-16
 
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 CAMERAUI_H
 
22
#define CAMERAUI_H
 
23
 
 
24
#include <qdialog.h>
 
25
#include <qstring.h>
 
26
 
 
27
#include "gpiteminfo.h"
 
28
 
 
29
class QPushButton;
 
30
class QToolButton;
 
31
class QCheckBox;
 
32
class QLabel;
 
33
class QImage;
 
34
class QVButtonGroup;
 
35
class QVBox;
 
36
class QLineEdit;
 
37
class QPopupMenu;
 
38
class QProgressBar;
 
39
class QDate;
 
40
class KURL;
 
41
 
 
42
class CameraIconView;
 
43
class CameraIconViewItem;
 
44
class CameraController;
 
45
class RenameCustomizer;
 
46
class AnimWidget;
 
47
 
 
48
class CameraUI : public QDialog
 
49
{
 
50
    Q_OBJECT
 
51
 
 
52
public:
 
53
 
 
54
    CameraUI(QWidget* parent, const QString& title,
 
55
             const QString& model, const QString& port,
 
56
             const QString& path);
 
57
    ~CameraUI();
 
58
 
 
59
    bool isBusy() const;
 
60
    
 
61
protected:
 
62
 
 
63
    void closeEvent(QCloseEvent* e);
 
64
    
 
65
private:
 
66
 
 
67
    void readSettings();
 
68
    void saveSettings();
 
69
    bool createAutoAlbum(const KURL& parentURL,
 
70
                         const QString& name,
 
71
                         const QDate& date,
 
72
                         QString& errMsg);
 
73
    void addFileExtension(const QString& ext);
 
74
    
 
75
    CameraIconView*   m_view;
 
76
 
 
77
    QPushButton*      m_helpBtn;
 
78
    QPushButton*      m_closeBtn;
 
79
    QPushButton*      m_downloadBtn;
 
80
    QPushButton*      m_deleteBtn;
 
81
    QPopupMenu*       m_downloadMenu;
 
82
    QPopupMenu*       m_deleteMenu;
 
83
    QPushButton*      m_advBtn;
 
84
    QToolButton*      m_cancelBtn;
 
85
 
 
86
    bool              m_showAdvanced;
 
87
    QVBox*            m_advBox;
 
88
    RenameCustomizer* m_renameCustomizer;
 
89
    QCheckBox*        m_autoRotateCheck;
 
90
    QCheckBox*        m_autoAlbumCheck;
 
91
    
 
92
    QLabel*           m_status;
 
93
    AnimWidget*       m_anim;
 
94
    bool              m_busy;
 
95
    QProgressBar*     m_progress;
 
96
 
 
97
    CameraController* m_controller;
 
98
    
 
99
    KURL              m_lastDestURL;
 
100
 
 
101
private slots:
 
102
 
 
103
    void slotHelp();
 
104
 
 
105
    void slotConnected(bool val);
 
106
    void slotBusy(bool val);
 
107
    void slotErrorMsg(const QString& msg);
 
108
    void slotFolderList(const QStringList& folderList);
 
109
    void slotFileList(const GPItemInfoList& fileList);
 
110
    void slotThumbnail(const QString& folder, const QString& file,
 
111
                       const QImage& thumbnail);
 
112
 
 
113
    void slotDownloadSelected();
 
114
    void slotDownloadAll();
 
115
    void slotDownload(bool onlySelected);
 
116
    void slotDeleteSelected();
 
117
    void slotDeleteAll();
 
118
 
 
119
    void slotFileView(CameraIconViewItem* item);
 
120
    void slotFileProps(CameraIconViewItem* item);
 
121
    void slotFileExif(CameraIconViewItem* item);
 
122
    
 
123
    void slotDownloaded(const QString&, const QString&);
 
124
    void slotSkipped(const QString&, const QString&);
 
125
    void slotDeleted(const QString&, const QString&);
 
126
    
 
127
    void slotItemsSelected(bool selected);
 
128
    
 
129
    void slotToggleAdvanced();
 
130
    
 
131
signals:
 
132
    
 
133
    void signalLastDestination(const KURL&);
 
134
    void signalAlbumSettingsChanged();
 
135
};
 
136
 
 
137
#endif /* CAMERAUI_H */