2016-02-12 15:00:31 +08:00
|
|
|
#ifndef ADS_INTERNAL_HEADER
|
|
|
|
#define ADS_INTERNAL_HEADER
|
2017-02-20 17:06:55 +08:00
|
|
|
/*******************************************************************************
|
|
|
|
** QtAdcancedDockingSystem
|
|
|
|
** Copyright (C) 2017 Uwe Kindler
|
|
|
|
**
|
|
|
|
** This program is free software: you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation, either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** This program is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
******************************************************************************/
|
2016-02-15 18:32:35 +08:00
|
|
|
#include <QSharedPointer>
|
|
|
|
#include <QWeakPointer>
|
|
|
|
|
2016-02-12 15:00:31 +08:00
|
|
|
#include "ads/API.h"
|
2016-02-26 19:43:14 +08:00
|
|
|
|
2016-04-11 13:27:02 +08:00
|
|
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
2016-02-26 19:48:10 +08:00
|
|
|
#else
|
|
|
|
#include "ads/SectionContent.h"
|
|
|
|
#endif
|
|
|
|
|
2016-02-12 15:00:31 +08:00
|
|
|
|
|
|
|
ADS_NAMESPACE_BEGIN
|
|
|
|
class SectionContent;
|
|
|
|
class SectionTitleWidget;
|
2017-02-23 05:33:48 +08:00
|
|
|
class CSectionContentWidget;
|
2016-02-12 15:00:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
class InternalContentData
|
|
|
|
{
|
|
|
|
public:
|
2016-02-15 18:32:35 +08:00
|
|
|
typedef QSharedPointer<InternalContentData> RefPtr;
|
|
|
|
typedef QWeakPointer<InternalContentData> WeakPtr;
|
|
|
|
|
2016-02-12 15:00:31 +08:00
|
|
|
InternalContentData();
|
|
|
|
~InternalContentData();
|
|
|
|
|
2016-02-26 19:43:14 +08:00
|
|
|
QSharedPointer<SectionContent> content;
|
2016-02-12 15:00:31 +08:00
|
|
|
SectionTitleWidget* titleWidget;
|
2017-02-23 05:33:48 +08:00
|
|
|
CSectionContentWidget* contentWidget;
|
2016-02-12 15:00:31 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2016-02-18 22:06:00 +08:00
|
|
|
class HiddenSectionItem
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
HiddenSectionItem() :
|
|
|
|
preferredSectionId(-1),
|
|
|
|
preferredSectionIndex(-1)
|
|
|
|
{}
|
|
|
|
|
|
|
|
int preferredSectionId;
|
|
|
|
int preferredSectionIndex;
|
|
|
|
InternalContentData data;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2016-02-12 15:00:31 +08:00
|
|
|
ADS_NAMESPACE_END
|
|
|
|
#endif
|