Debian Codegraph @

src/tools/uic/python/pythonwritedeclaration.h

raw
1 // Copyright (C) 2019 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4 #ifndef PYTHONWRITEDECLARATION_H
5 #define PYTHONWRITEDECLARATION_H
6
7 #include <treewalker.h>
8
9 QT_BEGIN_NAMESPACE
10
11 class QTextStream;
12 class Driver;
13 class Uic;
14
15 struct Option;
16
17 namespace Python {
18
19 struct WriteDeclaration : public TreeWalker
20 {
21 WriteDeclaration(Uic *uic);
22
23 void acceptUI(DomUI *node) override;
24 void acceptButtonGroup(const DomButtonGroup *buttonGroup) override;
25
26 private:
27 Uic *m_uic;
28 Driver *m_driver;
29 QTextStream &m_output;
30 const Option &m_option;
31 };
32
33 } // namespace Python
34
35 QT_END_NAMESPACE
36
37 #endif // PYTHONWRITEDECLARATION_H