2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-04-27 10:05:43 +00:00
|
|
|
#ifndef INTERACTIVEWIDGET_H
|
|
|
|
#define INTERACTIVEWIDGET_H
|
|
|
|
|
|
|
|
#include "widgets.h"
|
|
|
|
#include "paintcommands.h"
|
|
|
|
|
2012-04-12 10:56:20 +00:00
|
|
|
#include <QMainWindow>
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#include <private/qmath_p.h>
|
|
|
|
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QToolBox)
|
|
|
|
|
|
|
|
class InteractiveWidget : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
InteractiveWidget();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void run();
|
|
|
|
void load();
|
|
|
|
void load(const QString &fname);
|
|
|
|
void save();
|
|
|
|
|
|
|
|
protected:
|
2021-03-19 12:22:24 +00:00
|
|
|
bool eventFilter(QObject *o, QEvent *e) override;
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void cmdSelected(QListWidgetItem *item);
|
|
|
|
void enumSelected(QListWidgetItem *item);
|
|
|
|
|
|
|
|
private:
|
|
|
|
QToolBox *m_commandsToolBox;
|
|
|
|
QToolBox *m_enumsToolBox;
|
|
|
|
OnScreenWidget<QWidget> *m_onScreenWidget;
|
|
|
|
QTextEdit *ui_textEdit;
|
|
|
|
QString m_filename;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|