2014-09-10 17:27:45 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file vpropertyformview_p.h
|
|
|
|
** @author hedgeware <internal(at)hedgeware.net>
|
|
|
|
** @date
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
|
|
|
** All rights reserved. This program and the accompanying materials
|
|
|
|
** are made available under the terms of the GNU Lesser General Public License
|
|
|
|
** (LGPL) version 2.1 which accompanies this distribution, and is available at
|
|
|
|
** http://www.gnu.org/licenses/lgpl-2.1.html
|
|
|
|
**
|
|
|
|
** This library 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
|
|
|
|
** Lesser General Public License for more details.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#ifndef VPROPERTYFORMVIEW_P_H
|
|
|
|
#define VPROPERTYFORMVIEW_P_H
|
|
|
|
|
|
|
|
// ONLY INCLUDE THIS IN .CPP FILES
|
|
|
|
|
|
|
|
#include "vpropertyformwidget_p.h"
|
2022-08-22 10:34:02 +02:00
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
2016-08-06 20:42:40 +02:00
|
|
|
#include "../vmisc/diagnostic.h"
|
2022-08-22 10:34:02 +02:00
|
|
|
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
2014-09-10 17:27:45 +02:00
|
|
|
|
2014-09-10 19:57:08 +02:00
|
|
|
namespace VPE
|
|
|
|
{
|
2014-09-10 17:27:45 +02:00
|
|
|
|
2016-08-06 20:42:40 +02:00
|
|
|
QT_WARNING_PUSH
|
|
|
|
QT_WARNING_DISABLE_CLANG("-Wweak-vtables")
|
2014-10-03 13:40:39 +02:00
|
|
|
|
2014-09-10 17:27:45 +02:00
|
|
|
class VPropertyFormViewPrivate : public VPropertyFormWidgetPrivate
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//! The current property model
|
|
|
|
VPropertyModel* Model;
|
|
|
|
|
|
|
|
//! The currently used property set
|
|
|
|
VPropertySet* PropertySet;
|
|
|
|
|
|
|
|
//! Determines whether the widget needs to be rebuild
|
|
|
|
bool NeedsRebuild;
|
|
|
|
|
|
|
|
//! Helper variable
|
|
|
|
bool IgnoreDataChangedSignal;
|
|
|
|
|
|
|
|
VPropertyFormViewPrivate()
|
2017-07-05 18:35:34 +02:00
|
|
|
: VPropertyFormWidgetPrivate(), Model(nullptr), PropertySet(nullptr), NeedsRebuild(false),
|
2014-09-20 18:05:21 +02:00
|
|
|
IgnoreDataChangedSignal(false)
|
|
|
|
{}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
2015-10-12 13:52:48 +02:00
|
|
|
explicit VPropertyFormViewPrivate(VPropertyModel* prop_model)
|
2017-07-05 18:35:34 +02:00
|
|
|
: VPropertyFormWidgetPrivate(), Model(prop_model), PropertySet(nullptr), NeedsRebuild(false),
|
2014-09-20 18:05:21 +02:00
|
|
|
IgnoreDataChangedSignal(false)
|
|
|
|
{}
|
2014-09-10 17:27:45 +02:00
|
|
|
|
2015-10-12 13:52:48 +02:00
|
|
|
explicit VPropertyFormViewPrivate(VPropertySet* prop_set)
|
2017-07-05 18:35:34 +02:00
|
|
|
: VPropertyFormWidgetPrivate(), Model(nullptr), PropertySet(prop_set), NeedsRebuild(false),
|
2014-09-20 18:05:21 +02:00
|
|
|
IgnoreDataChangedSignal(false)
|
|
|
|
{}
|
|
|
|
|
2018-06-26 14:53:48 +02:00
|
|
|
virtual ~VPropertyFormViewPrivate() override {}
|
2014-09-20 18:05:21 +02:00
|
|
|
|
|
|
|
private:
|
2022-08-12 17:50:13 +02:00
|
|
|
Q_DISABLE_COPY_MOVE(VPropertyFormViewPrivate) // NOLINT
|
2014-09-10 17:27:45 +02:00
|
|
|
};
|
|
|
|
|
2016-08-06 20:42:40 +02:00
|
|
|
QT_WARNING_POP
|
2014-10-03 13:40:39 +02:00
|
|
|
|
2014-09-10 17:27:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // VPROPERTYFORMVIEW_P_H
|