forked from qt-creator/qt-creator
- Add QML attribute displayName to the workspace presets - Add workspace order - Replace QStringList workspaces with proper model in order to use text and value role - Clean up workspace management, remove redundant functions, move warning messages out of backend - Utilizing expected_str to forward error message - Change output format of generated XML workspace files - Remove workspace combo box from C++ based toolbar Task-number: QDS-9184 Change-Id: I19455db75e6b07aea9342eb5276c6191a1456a2d Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
50 lines
1.1 KiB
C++
50 lines
1.1 KiB
C++
// Copyright (C) 2023 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
class QCheckBox;
|
|
class QPushButton;
|
|
QT_END_NAMESPACE
|
|
|
|
namespace ADS {
|
|
|
|
class DockManager;
|
|
class WorkspaceView;
|
|
|
|
class WorkspaceDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit WorkspaceDialog(DockManager *manager, QWidget *parent = nullptr);
|
|
|
|
void setAutoLoadWorkspace(bool);
|
|
bool autoLoadWorkspace() const;
|
|
|
|
DockManager *dockManager() const;
|
|
|
|
private:
|
|
void updateActions(const QStringList &fileNames);
|
|
|
|
DockManager *m_manager = nullptr;
|
|
|
|
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;
|
|
QPushButton *m_btUp = nullptr;
|
|
QPushButton *m_btDown = nullptr;
|
|
QCheckBox *m_autoLoadCheckBox = nullptr;
|
|
};
|
|
|
|
} // namespace ADS
|