2017-02-04 05:56:08 +08:00
|
|
|
//============================================================================
|
|
|
|
/// \file ContainerWidget.cpp
|
|
|
|
/// \author Uwe Kindler
|
|
|
|
/// \date 03.02.2017
|
|
|
|
/// \brief Implementation of CContainerWidget
|
|
|
|
//============================================================================
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
// INCLUDES
|
|
|
|
//============================================================================
|
|
|
|
#include "ads/ContainerWidget.h"
|
|
|
|
|
2016-04-06 13:52:17 +08:00
|
|
|
#include <QDebug>
|
2015-12-09 19:21:38 +08:00
|
|
|
#include <QPaintEvent>
|
|
|
|
#include <QPainter>
|
|
|
|
#include <QContextMenuEvent>
|
|
|
|
#include <QMenu>
|
|
|
|
#include <QSplitter>
|
2016-02-11 21:33:02 +08:00
|
|
|
#include <QDataStream>
|
|
|
|
#include <QtGlobal>
|
2016-02-26 19:43:14 +08:00
|
|
|
#include <QGridLayout>
|
|
|
|
#include <QPoint>
|
2017-01-31 05:44:27 +08:00
|
|
|
#include <QApplication>
|
2016-02-26 19:43:14 +08:00
|
|
|
|
|
|
|
#include "ads/Internal.h"
|
|
|
|
#include "ads/SectionWidget.h"
|
|
|
|
#include "ads/SectionTitleWidget.h"
|
|
|
|
#include "ads/SectionContentWidget.h"
|
2016-04-15 14:21:23 +08:00
|
|
|
#include "ads/DropOverlay.h"
|
2016-04-01 19:06:12 +08:00
|
|
|
#include "ads/Serialization.h"
|
2015-12-09 19:21:38 +08:00
|
|
|
|
2017-02-04 05:56:08 +08:00
|
|
|
namespace ads
|
2015-12-09 19:21:38 +08:00
|
|
|
{
|
2017-02-04 05:56:08 +08:00
|
|
|
//============================================================================
|
|
|
|
CContainerWidget::CContainerWidget(QWidget *parent)
|
|
|
|
: QFrame(parent)
|
2015-12-09 19:21:38 +08:00
|
|
|
{
|
2017-01-31 05:44:27 +08:00
|
|
|
m_SectionDropOverlay = new DropOverlay(this, DropOverlay::ModeSectionOverlay);
|
|
|
|
m_ContainerDropOverlay = new DropOverlay(this, DropOverlay::ModeContainerOverlay);
|
|
|
|
m_ContainerDropOverlay->setAttribute(Qt::WA_TransparentForMouseEvents);
|
|
|
|
m_ContainerDropOverlay->setWindowFlags(m_ContainerDropOverlay->windowFlags() | Qt::WindowTransparentForInput);
|
|
|
|
|
|
|
|
m_MainLayout = new QGridLayout();
|
|
|
|
m_MainLayout->setContentsMargins(0, 1, 0, 0);
|
|
|
|
m_MainLayout->setSpacing(0);
|
|
|
|
setLayout(m_MainLayout);
|
2016-02-18 22:06:00 +08:00
|
|
|
}
|
|
|
|
|
2016-02-24 18:45:19 +08:00
|
|
|
|
2017-02-04 05:56:08 +08:00
|
|
|
//============================================================================
|
|
|
|
CContainerWidget::~CContainerWidget()
|
2016-04-21 13:51:26 +08:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2017-02-04 05:56:08 +08:00
|
|
|
} // namespace ads
|
2016-04-21 13:51:26 +08:00
|
|
|
|
2017-02-04 05:56:08 +08:00
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// EOF ContainerWidget.cpp
|