summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/cdarchiving/cdarchivingdialog.h
blob: 3aca79861b77666ef295de4ffeb813c736ecdf26 (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
250
/* ============================================================
 * 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

// TQt includes

#include <tqguardedptr.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 TQCheckBox;
class TQLineEdit;
class TQProgressDialog;
class TQPushButton;
class TQSpinBox;
class TQString;


namespace KIPI
{
class ImageCollectionSelector;
}

namespace KIPICDArchivingPlugin
{

class CDArchivingDialog : public KDialogBase
{
    Q_OBJECT
  TQ_OBJECT

public:

    CDArchivingDialog( KIPI::Interface* interface, TQWidget *tqparent=0);
    ~CDArchivingDialog();

    TQString getK3bBinPathName() const;
    TQString getK3bParameters() const;

    void  setK3bBinPathName(const TQString &Value);
    void  setK3bParameters(const TQString &Value);

    int   getImagesPerRow() const;
    void  setImagesPerRow(int Value);

    int   getThumbnailsSize() const;
    void  setThumbnailsSize(int Value);

    const TQString getFontName() const;
    void  setFontName(TQString Value);

    const TQString getFontSize() const;
    void  setFontSize(int Value);

    const TQString getBordersImagesSize() const;
    void  setBordersImagesSize(int Value);

    const TQColor getBackgroundColor() const;
    void  setBackgroundColor(TQColor Value);

    const TQColor getForegroundColor() const;
    void  setForegroundColor(TQColor Value);

    const TQColor getBordersImagesColor() const;
    void  setBordersImagesColor(TQColor Value);

    const TQString getImageFormat() const;
    void  setImageFormat(TQString Value);

    const TQString getMainTitle() const;
    void  setMainTitle(TQString Value);

    bool  getUseHTMLInterface() const;
    void  setUseHTMLInterface(bool Value);

    bool  getUseAutoRunWin32() const;
    void  setUseAutoRunWin32(bool Value);

    const TQString getVolumeID() const;
    void  setVolumeID(TQString Value);

    const TQString getVolumeSetID() const;
    void  setVolumeSetID(TQString Value);

    const TQString getSystemID() const;
    void  setSystemID(TQString Value);

    const TQString getApplicationID() const;
    void  setApplicationID(TQString Value);

    const TQString getPublisher() const;
    void  setPublisher(TQString Value);

    const TQString getPreparer() const;
    void  setPreparer(TQString Value);

    const TQString getMediaFormat() const;
    void  setMediaFormat(TQString Value);

    bool  getUseOnTheFly() const;
    void  setUseUseOnTheFly(bool Value);

    bool  getUseCheckCD() const;
    void  setUseCheckCD(bool Value);

    bool  getUseStartBurningProcess() const;
    void  setUseStartBurningProcess(bool Value);

    TQValueList<KIPI::ImageCollection> getSelectedAlbums() const
    {
        return m_selectedAlbums;
    }

    void ShowMediaCapacity(void);

protected slots:

    void slotHelp();
    void slotAlbumSelected(void);
    void mediaFormatActived( const TQString& item );
    void slotOk();
    void UrlChanged(const TQString &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;

    TQCheckBox                           *m_burnOnTheFly;
    TQCheckBox                           *m_checkCDBurn;
    TQCheckBox                           *m_startBurningProcess;
    TQCheckBox                           *m_useAutoRunWin32;
    TQCheckBox                           *m_useHTMLInterface;
    TQComboBox                           *m_fontName;
    TQComboBox                           *m_imageFormat;
    TQComboBox                           *m_mediaFormat;

    TQFrame                              *page_CDInfos;
    TQFrame                              *page_burning;
    TQFrame                              *page_setupLook;
    TQFrame                              *page_setupSelection;

    TQLabel                              *m_albumPreview;
    TQLabel                              *m_labelBackgroundColor;
    TQLabel                              *m_labelFontName;
    TQLabel                              *m_labelFontSize;
    TQLabel                              *m_labelForegroundColor;
    TQLabel                              *m_labelImageBorderSize;
    TQLabel                              *m_labelImageBorderSizeColor;
    TQLabel                              *m_labelThumbsFileFormat;
    TQLabel                              *m_labelTitle;
    TQLabel                              *m_mediaSize;

    TQLineEdit                           *m_K3bParameters;
    TQLineEdit                           *m_application_id;
    TQLineEdit                           *m_preparer;
    TQLineEdit                           *m_publisher;
    TQLineEdit                           *m_system_id;
    TQLineEdit                           *m_title;
    TQLineEdit                           *m_volume_id;
    TQLineEdit                           *m_volume_set_id;

    TQProgressDialog                     *m_progressDlg;

    TQPushButton                         *m_helpButton;

    TQSpinBox                            *m_bordersImagesSize;
    TQSpinBox                            *m_fontSize;

    TQString                              m_ImagesFilesSort;
    TQString                              m_TempFolder;

    TQValueList<KIPI::ImageCollection>    m_selectedAlbums;

private:

    void setupBurning(void);
    void setupCDInfos(void);
    void setupLookPage(void);
    void setupSelection(void);
};

}  // NameSpace KIPICDArchivingPlugin

#endif /* CDARCHIVINGDIALOG_H */