2020-09-16 00:35:12 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2015-2017 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
SPDX-FileCopyrightText: 2019 Yuri Chornoivan <yurchor@ukr.net>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#if !defined(FILESYSTEMSUPPORTDIALOG_H)
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2017-09-11 16:27:51 +01:00
|
|
|
#define FILESYSTEMSUPPORTDIALOG_H
|
2008-09-24 20:32:01 +01:00
|
|
|
|
|
|
|
#include <QWidget>
|
2014-05-17 03:06:58 +01:00
|
|
|
#include <QDialog>
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2014-05-17 03:06:58 +01:00
|
|
|
class QDialogButtonBox;
|
2014-05-14 01:01:34 +01:00
|
|
|
class QPushButton;
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2010-05-20 17:09:29 +01:00
|
|
|
class FileSystemSupportDialogWidget;
|
|
|
|
|
2010-05-18 23:27:30 +01:00
|
|
|
/** Show supported Operations
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
Dialog to show which Operations are supported for which type of FileSystem.
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
@author Volker Lanz <vl@fidra.de>
|
2008-09-24 20:32:01 +01:00
|
|
|
*/
|
2014-05-17 03:06:58 +01:00
|
|
|
class FileSystemSupportDialog : public QDialog
|
2008-09-24 20:32:01 +01:00
|
|
|
{
|
2015-07-13 15:17:41 +01:00
|
|
|
Q_DISABLE_COPY(FileSystemSupportDialog)
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
2019-12-09 16:33:04 +00:00
|
|
|
explicit FileSystemSupportDialog(QWidget* parent);
|
2015-07-13 15:17:41 +01:00
|
|
|
~FileSystemSupportDialog();
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
2016-04-28 00:17:47 +01:00
|
|
|
QSize sizeHint() const override;
|
2010-01-18 13:46:45 +00:00
|
|
|
|
2016-05-22 20:03:49 +01:00
|
|
|
protected:
|
2015-07-13 15:17:41 +01:00
|
|
|
void onButtonRescanClicked();
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
FileSystemSupportDialogWidget& dialogWidget() {
|
|
|
|
Q_ASSERT(m_FileSystemSupportDialogWidget);
|
|
|
|
return *m_FileSystemSupportDialogWidget;
|
|
|
|
}
|
|
|
|
const FileSystemSupportDialogWidget& dialogWidget() const {
|
|
|
|
Q_ASSERT(m_FileSystemSupportDialogWidget);
|
|
|
|
return *m_FileSystemSupportDialogWidget;
|
|
|
|
}
|
|
|
|
void setupDialog();
|
|
|
|
void setupConnections();
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
private:
|
|
|
|
FileSystemSupportDialogWidget* m_FileSystemSupportDialogWidget;
|
|
|
|
QDialogButtonBox* dialogButtonBox;
|
2008-09-24 20:32:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|