File indexing completed on 2024-04-28 04:37:14
0001 /* 0002 SPDX-FileCopyrightText: 2013 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef AREADISPLAY_H 0008 #define AREADISPLAY_H 0009 0010 #include <QWidget> 0011 0012 class QLabel; 0013 class QToolButton; 0014 0015 namespace KDevelop { 0016 class MainWindow; 0017 } 0018 namespace Sublime { 0019 class MainWindow; 0020 class Area; 0021 } 0022 0023 /** 0024 * This widget displays the current area by the menu 0025 */ 0026 0027 class AreaDisplay : public QWidget 0028 { 0029 Q_OBJECT 0030 public: 0031 explicit AreaDisplay(KDevelop::MainWindow* parent); 0032 0033 QSize sizeHint() const override; 0034 QSize minimumSizeHint() const override; 0035 0036 protected: 0037 bool eventFilter(QObject* obj, QEvent* event) override; 0038 0039 private Q_SLOTS: 0040 void newArea(Sublime::Area* area); 0041 void backToCode(); 0042 0043 private: 0044 QLabel* m_separator; 0045 QToolButton* m_button; 0046 KDevelop::MainWindow* const m_mainWindow; 0047 }; 0048 0049 #endif // AREADISPLAY_H