mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
The following issues were fixed * Fixed wrong/missing namespaces * Fixed obvious typos in documentation * Documentation not in sync with source code refs #544
69 lines
2.1 KiB
C++
69 lines
2.1 KiB
C++
/* Copyright (C) 2014
|
|
* Swift Project Community / Contributors
|
|
*
|
|
* This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
//! \file
|
|
|
|
#ifndef BLACKGUI_DOCKWIDGETINFOAREA_H
|
|
#define BLACKGUI_DOCKWIDGETINFOAREA_H
|
|
|
|
#include "blackgui/blackguiexport.h"
|
|
#include "blackgui/dockwidget.h"
|
|
|
|
namespace BlackGui
|
|
{
|
|
//! Forward declarations
|
|
class CInfoArea;
|
|
namespace Components { class CEnableForDockWidgetInfoArea; }
|
|
|
|
//! Specialized class for dock widgets serving as info area.
|
|
//! \sa CDockWidgetInfoBar
|
|
//! \sa CInfoArea
|
|
class BLACKGUI_EXPORT CDockWidgetInfoArea : public CDockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CDockWidgetInfoArea(QWidget *parent = nullptr);
|
|
|
|
//! The parent info area
|
|
const CInfoArea *getParentInfoArea() const;
|
|
|
|
//! The parent info area
|
|
CInfoArea *getParentInfoArea();
|
|
|
|
//! Is this the selected widget, means it is not floating, and the one selected
|
|
bool isSelectedDockWidget() const;
|
|
|
|
//! Visible widget
|
|
bool isVisibleWidget() const;
|
|
|
|
protected:
|
|
//! Contribute to menu
|
|
virtual void addToContextMenu(QMenu *contextMenu) const override;
|
|
|
|
//! \copydoc CDockWidget::initialFloating
|
|
virtual void initialFloating() override;
|
|
|
|
private:
|
|
//! Find all embedded dock widget components. These are components marked as CDockWidgetInfoAreaComponent
|
|
//! \remarks Only directly embedded info area components, not those of nested info areas
|
|
QList<Components::CEnableForDockWidgetInfoArea *> findEmbeddedDockWidgetInfoAreaComponents();
|
|
|
|
//! Nested info areas
|
|
QList<CDockWidgetInfoArea *> findNestedInfoAreas();
|
|
|
|
//! The parent info areas
|
|
const QList<const CInfoArea *> findParentInfoAreas() const;
|
|
};
|
|
|
|
} // namespace
|
|
|
|
#endif // guard
|