mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2025-01-13 00:30:25 +08:00
58 lines
1.6 KiB
C++
58 lines
1.6 KiB
C++
#ifndef ContainerWidget_pH
|
|
#define ContainerWidget_pH
|
|
//============================================================================
|
|
/// \file ContainerWidget_p.h
|
|
/// \author Uwe Kindler
|
|
/// \date 21.01.2017
|
|
/// \brief Declaration of
|
|
//============================================================================
|
|
|
|
|
|
//============================================================================
|
|
// INCLUDES
|
|
//============================================================================
|
|
#include <QList>
|
|
#include <QHash>
|
|
#include <QPointer>
|
|
#include <QGridLayout>
|
|
#include <QSplitter>
|
|
|
|
#include "ads/DropOverlay.h"
|
|
|
|
namespace ads
|
|
{
|
|
|
|
class SectionWidget;
|
|
class FloatingWidget;
|
|
class HiddenSectionItem;
|
|
|
|
|
|
struct ContainerWidgetPrivate
|
|
{
|
|
// Elements inside container.
|
|
QList<SectionWidget*> sections;
|
|
QList<FloatingWidget*> floatings;
|
|
QHash<int, HiddenSectionItem> hiddenSectionContents;
|
|
|
|
|
|
// Helper lookup maps, restricted to this container.
|
|
QHash<int, SectionContent::WeakPtr> SectionContentIdMap;
|
|
QHash<QString, SectionContent::WeakPtr> SectionContentNameMap;
|
|
QHash<int, SectionWidget*> SectionWidgetIdMap;
|
|
|
|
|
|
// Layout stuff
|
|
QGridLayout* mainLayout = nullptr;
|
|
Qt::Orientation orientation = Qt::Horizontal;
|
|
QPointer<QSplitter> splitter; // $mfreiholz: I'd like to remove this variable entirely,
|
|
// because it changes during user interaction anyway.
|
|
|
|
// Drop overlay stuff.
|
|
QPointer<DropOverlay> dropOverlay;
|
|
QWidget* LeftBorderDropArea;
|
|
};
|
|
} // namespace ads
|
|
|
|
//---------------------------------------------------------------------------
|
|
#endif // ContainerWidget_pH
|