blob: fd99d94451d331c07e0144a34ddfc7c8fc890ab6 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// 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 "core_global.h"
#include <utils/id.h>
#include <QWidget>
QT_BEGIN_NAMESPACE
class QSplitter;
QT_END_NAMESPACE
namespace Core {
class OutputPanePlaceHolderPrivate;
class CORE_EXPORT OutputPanePlaceHolder : public QWidget
{
Q_OBJECT
public:
explicit OutputPanePlaceHolder(Utils::Id mode, QSplitter *parent = nullptr);
~OutputPanePlaceHolder() override;
static OutputPanePlaceHolder *getCurrent();
static bool isCurrentVisible();
bool isMaximized() const;
void setMaximized(bool maximize);
void ensureSizeHintAsMinimum();
int nonMaximizedSize() const;
signals:
void visibilityChangeRequested(bool visible);
protected:
void resizeEvent(QResizeEvent *event) override;
void showEvent(QShowEvent *) override;
private:
void setHeight(int height);
void currentModeChanged(Utils::Id mode);
OutputPanePlaceHolderPrivate *d;
};
} // namespace Core
|