1/****************************************************************************
2**
3** Copyright (C) 2016 The Qt Company Ltd.
4** Contact: https://www.qt.io/licensing/
5**
6** This file is part of the Qt Designer of the Qt Toolkit.
7**
8** $QT_BEGIN_LICENSE:GPL-EXCEPT$
9** Commercial License Usage
10** Licensees holding valid commercial Qt licenses may use this file in
11** accordance with the commercial license agreement provided with the
12** Software or, alternatively, in accordance with the terms contained in
13** a written agreement between you and The Qt Company. For licensing terms
14** and conditions see https://www.qt.io/terms-conditions. For further
15** information use the contact form at https://www.qt.io/contact-us.
16**
17** GNU General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU
19** General Public License version 3 as published by the Free Software
20** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
21** included in the packaging of this file. Please review the following
22** information to ensure the GNU General Public License requirements will
23** be met: https://www.gnu.org/licenses/gpl-3.0.html.
24**
25** $QT_END_LICENSE$
26**
27****************************************************************************/
28
29#include "abstractactioneditor.h"
30
31QT_BEGIN_NAMESPACE
32
33/*!
34 \class QDesignerActionEditorInterface
35
36 \brief The QDesignerActionEditorInterface class allows you to
37 change the focus of Qt Designer's action editor.
38
39 \inmodule QtDesigner
40
41 The QDesignerActionEditorInterface class is not intended to be
42 instantiated directly. You can retrieve an interface to \QD's
43 action editor using the
44 QDesignerFormEditorInterface::actionEditor() function.
45
46 You can control which actions that are available in the action
47 editor's window using the manageAction() and unmanageAction()
48 functions. An action that is managed by \QD is available in the
49 action editor while an unmanaged action is ignored.
50
51 QDesignerActionEditorInterface also provides the core() function
52 that you can use to retrieve a pointer to \QD's current
53 QDesignerFormEditorInterface object, and the setFormWindow()
54 function that enables you to change the currently selected form
55 window.
56
57 \sa QDesignerFormEditorInterface, QDesignerFormWindowInterface
58*/
59
60/*!
61 Constructs an action editor interface with the given \a parent and
62 the specified window \a flags.
63*/
64QDesignerActionEditorInterface::QDesignerActionEditorInterface(QWidget *parent, Qt::WindowFlags flags)
65 : QWidget(parent, flags)
66{
67}
68
69/*!
70 Destroys the action editor interface.
71*/
72QDesignerActionEditorInterface::~QDesignerActionEditorInterface() = default;
73
74/*!
75 Returns a pointer to \QD's current QDesignerFormEditorInterface
76 object.
77*/
78QDesignerFormEditorInterface *QDesignerActionEditorInterface::core() const
79{
80 return nullptr;
81}
82
83/*!
84 \fn void QDesignerActionEditorInterface::setFormWindow(QDesignerFormWindowInterface *formWindow)
85
86 Sets the currently selected form window to \a formWindow.
87
88*/
89
90/*!
91 \fn void QDesignerActionEditorInterface::manageAction(QAction *action)
92
93 Instructs \QD to manage the specified \a action. An action that is
94 managed by \QD is available in the action editor.
95
96 \sa unmanageAction()
97*/
98
99/*!
100 \fn void QDesignerActionEditorInterface::unmanageAction(QAction *action)
101
102 Instructs \QD to ignore the specified \a action. An unmanaged
103 action is not available in the action editor.
104
105 \sa manageAction()
106*/
107
108QT_END_NAMESPACE
109

source code of qttools/src/designer/src/lib/sdk/abstractactioneditor.cpp