Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qaxwidgetpropertysheet.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QACTIVEXPROPERTYSHEET_H
6
#
define
QACTIVEXPROPERTYSHEET_H
7
8
#
include
<
QtDesigner
/
private
/
qdesigner_propertysheet_p
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QDesignerAxWidget
;
13
class
QDesignerFormWindowInterface;
14
15
/* The propertysheet has a method to delete itself and repopulate
16
* if the "control" property changes. Pre 4.5, the control property
17
* might not be the first one, so, the properties are stored and
18
* re-applied. If the "control" is the first one, it should be
19
* sufficient to reapply the changed flags, however, care must be taken when
20
* resetting the control.
21
* Resetting a control: The current behaviour is that the modified Active X properties are added again
22
* as Fake-Properties, which is a nice side-effect as not cause a loss. */
23
24
class
QAxWidgetPropertySheet
:
public
QDesignerPropertySheet
25
{
26
Q_OBJECT
27
Q_INTERFACES(QDesignerPropertySheetExtension)
28
public
:
29
explicit
QAxWidgetPropertySheet
(
QDesignerAxWidget
*
object
,
QObject
*
parent
= 0);
30
31
bool
isEnabled
(
int
index)
const
override
;
32
bool
isVisible
(
int
index)
const
override
;
33
QVariant
property
(
int
index)
const
override
;
34
void
setProperty
(
int
index,
const
QVariant &value)
override
;
35
bool
reset
(
int
index)
override
;
36
int
indexOf
(
const
QString &name)
const
override
;
37
bool
dynamicPropertiesAllowed
()
const
override
;
38
39
static
const
char
*
controlPropertyName
;
40
41
public
slots
:
42
void
updatePropertySheet
();
43
44
private
:
45
QDesignerAxWidget
*axWidget()
const
;
46
47
const
QString m_controlProperty;
48
const
QString m_propertyGroup;
49
int
m_controlIndex;
50
struct
SavedProperties {
51
QVariantMap changedProperties;
52
QWidget *widget;
53
QString clsid;
54
} m_currentProperties;
55
56
static
void
reloadPropertySheet(
const
struct
SavedProperties &properties, QDesignerFormWindowInterface *formWin);
57
};
58
59
using
ActiveXPropertySheetFactory = QDesignerPropertySheetFactory<QDesignerAxWidget, QAxWidgetPropertySheet>;
60
61
QT_END_NAMESPACE
62
63
#
endif
QAxWidgetExtraInfoFactory
Definition
qaxwidgetextrainfo.h:40
QAxWidgetExtraInfoFactory::createExtension
QObject * createExtension(QObject *object, const QString &iid, QObject *parent) const override
Creates an extension specified by iid for the given object.
Definition
qaxwidgetextrainfo.cpp:68
QAxWidgetExtraInfo
Definition
qaxwidgetextrainfo.h:19
QAxWidgetExtraInfo::loadWidgetExtraInfo
bool loadWidgetExtraInfo(DomWidget *ui_widget) override
Loads extra information about the specified widget, and returns true if successful; otherwise returns...
Definition
qaxwidgetextrainfo.cpp:58
QAxWidgetExtraInfo::saveWidgetExtraInfo
bool saveWidgetExtraInfo(DomWidget *ui_widget) override
Saves the information about the specified widget, and returns true if successful; otherwise returns f...
Definition
qaxwidgetextrainfo.cpp:39
QAxWidgetExtraInfo::saveUiExtraInfo
bool saveUiExtraInfo(DomUI *ui) override
Saves the information about the user interface specified by ui, and returns true if successful; other...
Definition
qaxwidgetextrainfo.cpp:29
QAxWidgetExtraInfo::core
QDesignerFormEditorInterface * core() const override
\omit
Definition
qaxwidgetextrainfo.cpp:24
QAxWidgetExtraInfo::widget
QWidget * widget() const override
Returns the widget described by this extension.
Definition
qaxwidgetextrainfo.cpp:19
QAxWidgetExtraInfo::loadUiExtraInfo
bool loadUiExtraInfo(DomUI *ui) override
Loads extra information about the user interface specified by ui, and returns true if successful; oth...
Definition
qaxwidgetextrainfo.cpp:34
QAxWidgetPropertySheet
Definition
qaxwidgetpropertysheet.h:25
QAxWidgetPropertySheet::indexOf
int indexOf(const QString &name) const override
Definition
qaxwidgetpropertysheet.cpp:108
QAxWidgetPropertySheet::setProperty
void setProperty(int index, const QVariant &value) override
Definition
qaxwidgetpropertysheet.cpp:88
QAxWidgetPropertySheet::reset
bool reset(int index) override
Definition
qaxwidgetpropertysheet.cpp:66
QAxWidgetPropertySheet::dynamicPropertiesAllowed
bool dynamicPropertiesAllowed() const override
Definition
qaxwidgetpropertysheet.cpp:55
QAxWidgetPropertySheet::isEnabled
bool isEnabled(int index) const override
Definition
qaxwidgetpropertysheet.cpp:42
QAxWidgetPropertySheet::property
QVariant property(int index) const override
Definition
qaxwidgetpropertysheet.cpp:79
QAxWidgetPropertySheet::controlPropertyName
static const char * controlPropertyName
Definition
qaxwidgetpropertysheet.h:39
QAxWidgetPropertySheet::isVisible
bool isVisible(int index) const override
Definition
qaxwidgetpropertysheet.cpp:49
QDesignerAxPluginWidget
Definition
qdesigneraxwidget.h:70
QDesignerAxPluginWidget::QDesignerAxPluginWidget
QDesignerAxPluginWidget(QWidget *parent)
Definition
qdesigneraxwidget.cpp:160
QDesignerAxPluginWidget::metaObject
const QMetaObject * metaObject() const override
Definition
qdesigneraxwidget.cpp:167
QDesignerAxPluginWidget::qt_metacall
int qt_metacall(QMetaObject::Call, int, void **) override
Definition
qdesigneraxwidget.cpp:191
QDesignerAxPluginWidget::~QDesignerAxPluginWidget
virtual ~QDesignerAxPluginWidget()
QDesignerAxWidget
Definition
qdesigneraxwidget.h:29
QDesignerAxWidget::axobject
QAxWidget * axobject() const
Definition
qdesigneraxwidget.h:60
QDesignerAxWidget::resetControl
void resetControl()
Definition
qdesigneraxwidget.cpp:87
QDesignerAxWidget::paintEvent
void paintEvent(QPaintEvent *event) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
Definition
qdesigneraxwidget.cpp:127
QDesignerAxWidget::control
QString control() const
Definition
qdesigneraxwidget.cpp:70
QDesignerAxWidget::drawFlags
unsigned drawFlags() const
Definition
qdesigneraxwidget.h:55
QDesignerAxWidget::loaded
bool loaded()
Definition
qdesigneraxwidget.h:49
QDesignerAxWidget::minimumSizeHint
QSize minimumSizeHint() const override
Definition
qdesigneraxwidget.cpp:120
QDesignerAxWidget::~QDesignerAxWidget
virtual ~QDesignerAxWidget()
Definition
qdesigneraxwidget.cpp:60
QDesignerAxWidget::loadControl
bool loadControl(const QString &clsid)
Definition
qdesigneraxwidget.cpp:96
QDesignerAxWidget::sizeHint
QSize sizeHint() const override
Definition
qdesigneraxwidget.cpp:113
QDesignerAxWidget::DrawControl
@ DrawControl
Definition
qdesigneraxwidget.h:53
QDesignerAxWidget::DrawIndicator
@ DrawIndicator
Definition
qdesigneraxwidget.h:53
QDesignerAxWidget::DrawFrame
@ DrawFrame
Definition
qdesigneraxwidget.h:53
QDesignerAxWidget::setControl
void setControl(const QString &clsid)
Definition
qdesigneraxwidget.cpp:77
QDesignerAxWidget::setDrawFlags
void setDrawFlags(unsigned f)
Definition
qdesigneraxwidget.h:56
QDesignerAxWidget::widgetIcon
static QPixmap widgetIcon()
Definition
qdesigneraxwidget.cpp:65
QObjectData::parent
QObject * parent
Definition
qobject.h:74
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qttools
src
designer
src
plugins
activeqt
qaxwidgetpropertysheet.h
Generated on
for Qt by
1.18.0