File indexing completed on 2024-05-05 04:51:45
0001 /* 0002 SPDX-FileCopyrightText: 2009-2010 Michal Malek <michalm@jabster.pl> 0003 SPDX-FileCopyrightText: 1998-2007 Sebastian Trueg <trueg@k3b.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 0009 #ifndef K3BDATAVIEW_H 0010 #define K3BDATAVIEW_H 0011 0012 #include "k3bview.h" 0013 0014 class QModelIndex; 0015 class QTreeView; 0016 0017 namespace K3b { 0018 class DataDoc; 0019 class DataProjectModel; 0020 class DataViewImpl; 0021 class DirProxyModel; 0022 0023 class DataView : public View 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 explicit DataView( DataDoc* doc, QWidget* parent = 0 ); 0029 ~DataView() override; 0030 0031 public Q_SLOTS: 0032 void slotBurn() override; 0033 void addUrls( const QList<QUrl>& urls ) override; 0034 0035 private Q_SLOTS: 0036 void slotParentDir(); 0037 void slotCurrentDirChanged(); 0038 void slotSetCurrentRoot( const QModelIndex& index ); 0039 0040 protected: 0041 ProjectBurnDialog* newBurnDialog( QWidget* parent = 0 ) override; 0042 0043 private: 0044 DataDoc* m_doc; 0045 DataViewImpl* m_dataViewImpl; 0046 QTreeView* m_dirView; 0047 DirProxyModel* m_dirProxy; 0048 }; 0049 } 0050 0051 #endif