blob: f29aefe177caff53e65a51352d652621ab5ab6c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
|
/* ============================================================
* Author: Gilles Caulier <caulier dot gilles at gmail dot com>
* from digiKam project.
* Date : 2003-10-01
* Description : a kipi plugin to export image collections
* on CD/DVD.
*
* Copyright 2003-2005 by Gilles Caulier <caulier dot gilles at gmail dot com>
* Copyright 2003-2004 by Gregory Kokanosky
* <gregory dot kokanosky at free.fr>
* for HTML interface navigation mode
* Copyright 2005 by Owen Hirst <n8rider at sbcglobal.net>
* about bugfix.
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General
* Public License as published by the Free Software Foundation;
* either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* ============================================================ */
#ifndef CDARCHIVINGDIALOG_H
#define CDARCHIVINGDIALOG_H
// Qt includes
#include <qguardedptr.h>
// KDE includes
#include <kdialogbase.h>
#include <kio/global.h>
// KIPI includes
#include "kpaboutdata.h"
#include <libkipi/interface.h>
class KColorButton;
class KFileItem;
class KFilePreview;
class KIntNumInput;
class KListView;
class KSqueezedTextLabel;
class KURL;
class KURLRequester;
class QCheckBox;
class QLineEdit;
class QProgressDialog;
class QPushButton;
class QSpinBox;
class QString;
namespace KIPI
{
class ImageCollectionSelector;
}
namespace KIPICDArchivingPlugin
{
class CDArchivingDialog : public KDialogBase
{
Q_OBJECT
public:
CDArchivingDialog( KIPI::Interface* interface, QWidget *parent=0);
~CDArchivingDialog();
QString getK3bBinPathName() const;
QString getK3bParameters() const;
void setK3bBinPathName(const QString &Value);
void setK3bParameters(const QString &Value);
int getImagesPerRow() const;
void setImagesPerRow(int Value);
int getThumbnailsSize() const;
void setThumbnailsSize(int Value);
const QString getFontName() const;
void setFontName(QString Value);
const QString getFontSize() const;
void setFontSize(int Value);
const QString getBordersImagesSize() const;
void setBordersImagesSize(int Value);
const QColor getBackgroundColor() const;
void setBackgroundColor(QColor Value);
const QColor getForegroundColor() const;
void setForegroundColor(QColor Value);
const QColor getBordersImagesColor() const;
void setBordersImagesColor(QColor Value);
const QString getImageFormat() const;
void setImageFormat(QString Value);
const QString getMainTitle() const;
void setMainTitle(QString Value);
bool getUseHTMLInterface() const;
void setUseHTMLInterface(bool Value);
bool getUseAutoRunWin32() const;
void setUseAutoRunWin32(bool Value);
const QString getVolumeID() const;
void setVolumeID(QString Value);
const QString getVolumeSetID() const;
void setVolumeSetID(QString Value);
const QString getSystemID() const;
void setSystemID(QString Value);
const QString getApplicationID() const;
void setApplicationID(QString Value);
const QString getPublisher() const;
void setPublisher(QString Value);
const QString getPreparer() const;
void setPreparer(QString Value);
const QString getMediaFormat() const;
void setMediaFormat(QString Value);
bool getUseOnTheFly() const;
void setUseUseOnTheFly(bool Value);
bool getUseCheckCD() const;
void setUseCheckCD(bool Value);
bool getUseStartBurningProcess() const;
void setUseStartBurningProcess(bool Value);
QValueList<KIPI::ImageCollection> getSelectedAlbums() const
{
return m_selectedAlbums;
}
void ShowMediaCapacity(void);
protected slots:
void slotHelp();
void slotAlbumSelected(void);
void mediaFormatActived( const QString& item );
void slotOk();
void UrlChanged(const QString &url );
private:
KColorButton *m_backgroundColor;
KColorButton *m_bordersImagesColor;
KColorButton *m_foregroundColor;
KIO::filesize_t MaxMediaSize;
KIPI::ImageCollectionSelector *m_imageCollectionSelector;
KIPI::Interface *m_interface;
KIPIPlugins::KPAboutData *m_about;
KIntNumInput *m_imagesPerRow;
KIntNumInput *m_thumbnailsSize;
KListView *m_AlbumsList;
KSqueezedTextLabel *m_AlbumCollection;
KSqueezedTextLabel *m_AlbumComments;
KSqueezedTextLabel *m_AlbumDate;
KSqueezedTextLabel *m_AlbumItems;
KSqueezedTextLabel *m_AlbumSize;
KURLRequester *m_K3bBinPath;
QCheckBox *m_burnOnTheFly;
QCheckBox *m_checkCDBurn;
QCheckBox *m_startBurningProcess;
QCheckBox *m_useAutoRunWin32;
QCheckBox *m_useHTMLInterface;
QComboBox *m_fontName;
QComboBox *m_imageFormat;
QComboBox *m_mediaFormat;
QFrame *page_CDInfos;
QFrame *page_burning;
QFrame *page_setupLook;
QFrame *page_setupSelection;
QLabel *m_albumPreview;
QLabel *m_labelBackgroundColor;
QLabel *m_labelFontName;
QLabel *m_labelFontSize;
QLabel *m_labelForegroundColor;
QLabel *m_labelImageBorderSize;
QLabel *m_labelImageBorderSizeColor;
QLabel *m_labelThumbsFileFormat;
QLabel *m_labelTitle;
QLabel *m_mediaSize;
QLineEdit *m_K3bParameters;
QLineEdit *m_application_id;
QLineEdit *m_preparer;
QLineEdit *m_publisher;
QLineEdit *m_system_id;
QLineEdit *m_title;
QLineEdit *m_volume_id;
QLineEdit *m_volume_set_id;
QProgressDialog *m_progressDlg;
QPushButton *m_helpButton;
QSpinBox *m_bordersImagesSize;
QSpinBox *m_fontSize;
QString m_ImagesFilesSort;
QString m_TempFolder;
QValueList<KIPI::ImageCollection> m_selectedAlbums;
private:
void setupBurning(void);
void setupCDInfos(void);
void setupLookPage(void);
void setupSelection(void);
};
} // NameSpace KIPICDArchivingPlugin
#endif /* CDARCHIVINGDIALOG_H */
|