2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef WINDOW_H
|
|
|
|
#define WINDOW_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
2023-05-16 08:44:34 +00:00
|
|
|
QT_FORWARD_DECLARE_CLASS(QSlider)
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QPushButton)
|
2014-08-02 17:42:15 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
class GLWidget;
|
|
|
|
|
|
|
|
class Window : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-09-12 13:32:51 +00:00
|
|
|
Window();
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
protected:
|
2016-06-15 08:12:35 +00:00
|
|
|
void keyPressEvent(QKeyEvent *event) override;
|
2011-04-27 10:05:43 +00:00
|
|
|
|
2014-08-02 17:42:15 +00:00
|
|
|
private slots:
|
|
|
|
void dockUndock();
|
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
private:
|
2023-09-12 13:03:48 +00:00
|
|
|
void dock();
|
|
|
|
void undock();
|
2011-04-27 10:05:43 +00:00
|
|
|
QSlider *createSlider();
|
|
|
|
|
|
|
|
GLWidget *glWidget;
|
|
|
|
QSlider *xSlider;
|
|
|
|
QSlider *ySlider;
|
|
|
|
QSlider *zSlider;
|
2014-08-02 17:42:15 +00:00
|
|
|
QPushButton *dockBtn;
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|