Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
abstractformwindowcursor.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
5#ifndef ABSTRACTFORMWINDOWCURSOR_H
6#define ABSTRACTFORMWINDOWCURSOR_H
7
8#include <QtDesigner/sdk_global.h>
9
10QT_BEGIN_NAMESPACE
11
12class QDesignerFormWindowInterface;
13class QWidget;
14class QVariant;
15class QString;
16
17class QDESIGNER_SDK_EXPORT QDesignerFormWindowCursorInterface
18{
19public:
20 Q_DISABLE_COPY_MOVE(QDesignerFormWindowCursorInterface)
21
22 enum MoveOperation
23 {
24 NoMove,
25
26 Start,
27 End,
28 Next,
29 Prev,
30 Left,
31 Right,
32 Up,
33 Down
34 };
35
36 enum MoveMode
37 {
38 MoveAnchor,
39 KeepAnchor
40 };
41
42 QDesignerFormWindowCursorInterface() = default;
43 virtual ~QDesignerFormWindowCursorInterface() = default;
44
45 virtual QDesignerFormWindowInterface *formWindow() const = 0;
46
47 virtual bool movePosition(MoveOperation op, MoveMode mode = MoveAnchor) = 0;
48
49 virtual int position() const = 0;
50 virtual void setPosition(int pos, MoveMode mode = MoveAnchor) = 0;
51
52 virtual QWidget *current() const = 0;
53
54 virtual int widgetCount() const = 0;
55 virtual QWidget *widget(int index) const = 0;
56
57 virtual bool hasSelection() const = 0;
58 virtual int selectedWidgetCount() const = 0;
59 virtual QWidget *selectedWidget(int index) const = 0;
60
61 virtual void setProperty(const QString &name, const QVariant &value) = 0;
62 virtual void setWidgetProperty(QWidget *widget, const QString &name, const QVariant &value) = 0;
63 virtual void resetWidgetProperty(QWidget *widget, const QString &name) = 0;
64
65 bool isWidgetSelected(QWidget *widget) const;
66};
67
68QT_END_NAMESPACE
69
70#endif // ABSTRACTFORMWINDOWCURSOR_H
The QDesignerFormWindowCursorInterface class allows you to query and modify a form window's widget se...
friend class QWidget
Definition qpainter.h:432
Combined button and popup list for selecting options.