2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef TABDIALOG_H
|
|
|
|
#define TABDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QDialogButtonBox;
|
|
|
|
class QFileInfo;
|
|
|
|
class QTabWidget;
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
//! [0]
|
|
|
|
class GeneralTab : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-09-06 21:24:56 +00:00
|
|
|
explicit GeneralTab(const QFileInfo &fileInfo, QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
//! [0]
|
|
|
|
|
|
|
|
|
|
|
|
//! [1]
|
|
|
|
class PermissionsTab : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-09-06 21:24:56 +00:00
|
|
|
explicit PermissionsTab(const QFileInfo &fileInfo, QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
//! [1]
|
|
|
|
|
|
|
|
|
|
|
|
//! [2]
|
|
|
|
class ApplicationsTab : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-09-06 21:24:56 +00:00
|
|
|
explicit ApplicationsTab(const QFileInfo &fileInfo, QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
//! [2]
|
|
|
|
|
|
|
|
|
|
|
|
//! [3]
|
|
|
|
class TabDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2019-09-06 21:24:56 +00:00
|
|
|
explicit TabDialog(const QString &fileName, QWidget *parent = nullptr);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QTabWidget *tabWidget;
|
|
|
|
QDialogButtonBox *buttonBox;
|
|
|
|
};
|
|
|
|
//! [3]
|
|
|
|
|
|
|
|
#endif
|