2023-03-29 19:56:43 +02:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
2023-01-04 08:19:47 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later
|
2020-01-24 17:13:32 +01:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
2022-11-17 17:05:07 +01:00
|
|
|
class QCheckBox;
|
2020-01-24 17:13:32 +01:00
|
|
|
class QPushButton;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace ADS {
|
|
|
|
|
|
|
|
|
|
class DockManager;
|
2022-11-17 17:05:07 +01:00
|
|
|
class WorkspaceView;
|
2020-01-24 17:13:32 +01:00
|
|
|
|
|
|
|
|
class WorkspaceDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit WorkspaceDialog(DockManager *manager, QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
|
|
void setAutoLoadWorkspace(bool);
|
|
|
|
|
bool autoLoadWorkspace() const;
|
|
|
|
|
|
|
|
|
|
DockManager *dockManager() const;
|
|
|
|
|
|
|
|
|
|
private:
|
2023-03-29 19:56:43 +02:00
|
|
|
void updateActions(const QStringList &fileNames);
|
2020-01-24 17:13:32 +01:00
|
|
|
|
|
|
|
|
DockManager *m_manager = nullptr;
|
2022-11-17 17:05:07 +01:00
|
|
|
|
|
|
|
|
WorkspaceView *m_workspaceView = nullptr;
|
|
|
|
|
QPushButton *m_btCreateNew = nullptr;
|
|
|
|
|
QPushButton *m_btRename = nullptr;
|
|
|
|
|
QPushButton *m_btClone = nullptr;
|
|
|
|
|
QPushButton *m_btDelete = nullptr;
|
|
|
|
|
QPushButton *m_btReset = nullptr;
|
|
|
|
|
QPushButton *m_btSwitch = nullptr;
|
|
|
|
|
QPushButton *m_btImport = nullptr;
|
|
|
|
|
QPushButton *m_btExport = nullptr;
|
2023-03-29 19:56:43 +02:00
|
|
|
QPushButton *m_btUp = nullptr;
|
|
|
|
|
QPushButton *m_btDown = nullptr;
|
2022-11-17 17:05:07 +01:00
|
|
|
QCheckBox *m_autoLoadCheckBox = nullptr;
|
2020-01-24 17:13:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace ADS
|