1
/* ============================================================
2
* Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
6
* Copyright 2004 by Renchi Raju
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)
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.
19
* ============================================================ */
27
#include "gpiteminfo.h"
43
class CameraIconViewItem;
44
class CameraController;
45
class RenameCustomizer;
48
class CameraUI : public QDialog
54
CameraUI(QWidget* parent, const QString& title,
55
const QString& model, const QString& port,
63
void closeEvent(QCloseEvent* e);
69
bool createAutoAlbum(const KURL& parentURL,
73
void addFileExtension(const QString& ext);
75
CameraIconView* m_view;
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;
88
RenameCustomizer* m_renameCustomizer;
89
QCheckBox* m_autoRotateCheck;
90
QCheckBox* m_autoAlbumCheck;
95
QProgressBar* m_progress;
97
CameraController* m_controller;
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);
113
void slotDownloadSelected();
114
void slotDownloadAll();
115
void slotDownload(bool onlySelected);
116
void slotDeleteSelected();
117
void slotDeleteAll();
119
void slotFileView(CameraIconViewItem* item);
120
void slotFileProps(CameraIconViewItem* item);
121
void slotFileExif(CameraIconViewItem* item);
123
void slotDownloaded(const QString&, const QString&);
124
void slotSkipped(const QString&, const QString&);
125
void slotDeleted(const QString&, const QString&);
127
void slotItemsSelected(bool selected);
129
void slotToggleAdvanced();
133
void signalLastDestination(const KURL&);
134
void signalAlbumSettingsChanged();
137
#endif /* CAMERAUI_H */