2015-02-07 00:32:25 +00:00
|
|
|
/*************************************************************************
|
|
|
|
* Copyright (C) 2008, 2010 by Volker Lanz <vl@fidra.de> *
|
|
|
|
* *
|
|
|
|
* 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 3 of *
|
|
|
|
* the License, 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. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.*
|
|
|
|
*************************************************************************/
|
2008-09-24 20:32:01 +01:00
|
|
|
|
|
|
|
#if !defined(FILESYSTEMSUPPORTDIALOG__H)
|
|
|
|
|
|
|
|
#define FILESYSTEMSUPPORTDIALOG__H
|
|
|
|
|
|
|
|
#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_OBJECT
|
|
|
|
Q_DISABLE_COPY(FileSystemSupportDialog)
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
|
|
|
FileSystemSupportDialog(QWidget* parent);
|
|
|
|
~FileSystemSupportDialog();
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
public:
|
|
|
|
QSize sizeHint() const;
|
2010-01-18 13:46:45 +00:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
protected Q_SLOTS:
|
|
|
|
void onButtonRescanClicked();
|
2008-09-24 20:32:01 +01:00
|
|
|
|
2015-07-13 15:17:41 +01:00
|
|
|
protected:
|
|
|
|
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
|