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
|
/*
*
* $Id$
* Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
*
* This file is part of the K3b project.
* Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
*
* 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 of the License, or
* (at your option) any later version.
* See the file "COPYING" for the exact licensing terms.
*/
#ifndef _K3B_CDIMAGEWRITINGDIALOG_H_
#define _K3B_CDIMAGEWRITINGDIALOG_H_
#include <k3binteractiondialog.h>
class QCheckBox;
class K3bWriterSelectionWidget;
class QLabel;
class KURL;
class KActiveLabel;
class KProgress;
class K3bDataModeWidget;
class K3bWritingModeWidget;
class K3bTempDirSelectionWidget;
class KURLRequester;
class K3bListView;
class QSpinBox;
class QComboBox;
class K3bIso9660;
class K3bCueFileParser;
class QDragEnterEvent;
class QDropEvent;
class KListView;
class QListViewItem;
class QPoint;
/**
*@author Sebastian Trueg
*/
class K3bCdImageWritingDialog : public K3bInteractionDialog
{
Q_OBJECT
public:
K3bCdImageWritingDialog( QWidget* = 0, const char* = 0, bool = true );
~K3bCdImageWritingDialog();
void setImage( const KURL& url );
protected slots:
void slotStartClicked();
void slotMd5JobPercent( int );
void slotMd5JobFinished( bool );
void slotContextMenu( KListView*, QListViewItem*, const QPoint& pos );
void slotUpdateImage( const QString& );
protected:
void loadUserDefaults( KConfigBase* );
void saveUserDefaults( KConfigBase* );
void loadK3bDefaults();
void calculateMd5Sum( const QString& );
void dragEnterEvent( QDragEnterEvent* );
void dropEvent( QDropEvent* );
void init();
void toggleAll();
private:
enum {
IMAGE_UNKNOWN,
IMAGE_ISO,
IMAGE_CUE_BIN,
IMAGE_AUDIO_CUE,
IMAGE_CDRDAO_TOC,
IMAGE_CDRECORD_CLONE };
void setupGui();
void createIso9660InfoItems( K3bIso9660* );
void createCdrecordCloneItems( const QString&, const QString& );
void createCueBinItems( const QString&, const QString& );
void createAudioCueItems( const K3bCueFileParser& cp );
int currentImageType();
QString imagePath() const;
K3bWriterSelectionWidget* m_writerSelectionWidget;
QCheckBox* m_checkDummy;
QCheckBox* m_checkNoFix;
QCheckBox* m_checkCacheImage;
QCheckBox* m_checkVerify;
K3bDataModeWidget* m_dataModeWidget;
K3bWritingModeWidget* m_writingModeWidget;
QSpinBox* m_spinCopies;
KURLRequester* m_editImagePath;
QComboBox* m_comboImageType;
K3bListView* m_infoView;
K3bTempDirSelectionWidget* m_tempDirSelectionWidget;
class Private;
Private* d;
};
#endif
|