aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/editormanager/editorwindow.h
blob: 63c42e012ea46b42e2ea0feec2776e9b4ddfa1cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QWidget>

namespace Core {
namespace Internal {

class EditorArea;

class EditorWindow : public QWidget
{
    Q_OBJECT
public:
    explicit EditorWindow(QWidget *parent = nullptr);
    ~EditorWindow() override;

    EditorArea *editorArea() const;

    QVariantHash saveState() const;
    void restoreState(const QVariantHash &state);
private:
    void updateWindowTitle();

    EditorArea *m_area;
};

} // Internal
} // Core