mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-11-15 21:25:44 +08:00
6a1b6307c9
completed/tested). Context menu also works with new impl. Shows close button on top-right corner of SectionWidget.
47 lines
834 B
C++
47 lines
834 B
C++
#ifndef ADS_INTERNAL_HEADER
|
|
#define ADS_INTERNAL_HEADER
|
|
|
|
#include <QSharedPointer>
|
|
#include <QWeakPointer>
|
|
|
|
#include "ads/API.h"
|
|
#include "ads/SectionContent.h"
|
|
|
|
ADS_NAMESPACE_BEGIN
|
|
class SectionContent;
|
|
class SectionTitleWidget;
|
|
class SectionContentWidget;
|
|
|
|
|
|
class InternalContentData
|
|
{
|
|
public:
|
|
typedef QSharedPointer<InternalContentData> RefPtr;
|
|
typedef QWeakPointer<InternalContentData> WeakPtr;
|
|
|
|
InternalContentData();
|
|
~InternalContentData();
|
|
|
|
SectionContent::RefPtr content;
|
|
SectionTitleWidget* titleWidget;
|
|
SectionContentWidget* contentWidget;
|
|
};
|
|
|
|
|
|
class HiddenSectionItem
|
|
{
|
|
public:
|
|
HiddenSectionItem() :
|
|
preferredSectionId(-1),
|
|
preferredSectionIndex(-1)
|
|
{}
|
|
|
|
int preferredSectionId;
|
|
int preferredSectionIndex;
|
|
InternalContentData data;
|
|
};
|
|
|
|
|
|
ADS_NAMESPACE_END
|
|
#endif
|