| 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 | |
| 4 | #ifndef VALIDATOR_H |
| 5 | #define VALIDATOR_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 | struct Validator : public TreeWalker |
| 18 | { |
| 19 | Validator(Uic *uic); |
| 20 | |
| 21 | void acceptUI(DomUI *node) override; |
| 22 | void acceptWidget(DomWidget *node) override; |
| 23 | |
| 24 | void acceptLayoutItem(DomLayoutItem *node) override; |
| 25 | void acceptLayout(DomLayout *node) override; |
| 26 | |
| 27 | void acceptActionGroup(DomActionGroup *node) override; |
| 28 | void acceptAction(DomAction *node) override; |
| 29 | |
| 30 | private: |
| 31 | Driver *m_driver; |
| 32 | }; |
| 33 | |
| 34 | QT_END_NAMESPACE |
| 35 | |
| 36 | #endif // VALIDATOR_H |
| 37 |
