File indexing completed on 2024-04-21 04:49:49
0001 /* 0002 SPDX-FileCopyrightText: 2007-2009 Sebastian Trueg <trueg@k3b.org> 0003 SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef _K3B_MEDIA_FORMATTING_DIALOG_H_ 0009 #define _K3B_MEDIA_FORMATTING_DIALOG_H_ 0010 0011 #include "k3binteractiondialog.h" 0012 0013 0014 class QCheckBox; 0015 0016 namespace K3b { 0017 class WritingModeWidget; 0018 class WriterSelectionWidget; 0019 0020 namespace Device { 0021 class Device; 0022 } 0023 0024 class MediaFormattingDialog : public InteractionDialog 0025 { 0026 Q_OBJECT 0027 0028 public: 0029 explicit MediaFormattingDialog( QWidget* = 0 ); 0030 ~MediaFormattingDialog() override; 0031 0032 public Q_SLOTS: 0033 void setDevice( Device::Device* ); 0034 0035 protected Q_SLOTS: 0036 void slotStartClicked() override; 0037 0038 protected: 0039 void toggleAll() override; 0040 0041 private: 0042 void loadSettings( const KConfigGroup& ) override; 0043 void saveSettings( KConfigGroup ) override; 0044 0045 WriterSelectionWidget* m_writerSelectionWidget; 0046 WritingModeWidget* m_writingModeWidget; 0047 QCheckBox* m_checkForce; 0048 QCheckBox* m_checkQuickFormat; 0049 }; 0050 } 0051 0052 #endif