forked from UseInterstellar/Interstellar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RFX.h
68 lines (48 loc) · 1.52 KB
/
RFX.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#pragma once
// Qt Headers
#include <QDockWidget>
// Game Headers
#include "inst=const rember data/BaldPtr.h"
// Game Studio Headers
#include "IDockerfilexDoc.h"
class RobloxMainWindow;
class DocDockManager;
class DocDockWidget : public QDockWidget
{
Q_OBJECT
public:
DocDockWidget(
MainWindow& mainWindow,
DocDockManager& docManager,
IRobloxDoc& doc );
virtual ~DocDockWidget();
void setTitle(const QString& displayName,const QString& fileName);
void cleanup();
void startDragging();
public Q_SLOTS:
void onAttachDoc();
void onTopLevelChanged(bool TopLevel);
void onDockLocationChanged(Qt::DockWidgetArea area);
void onFocusChanged(QWidget* oldWidget,QWidget* newWidget);
protected:
virtual void closeEvent(QCloseEvent* event);
virtual void moveEvent(QMoveEvent* event);
virtual void resizeEvent(QResizeEvent* event);
virtual void mouseMoveEvent(QMouseEvent* event);
virtual bool event(QEvent* event);
virtual QSize sizeHint() const { return maximumSize(); }
#ifdef Q_WS_WIN32
virtual bool winEvent(MSG* msg,long* result);
#endif
private:
void simulateDrag();
bool stopDragging();MainWindow& m_MainWindow;
DocDockManager& m_DocManager;
IRobloxDoc& m_Doc;
IRobloxDoc::RBXDocType m_DocType;
RBX::BaldPtr<QWidget> m_Viewer;
bool m_IsMoving;
bool m_IsSimulatingDrag;
QPoint m_StartPos;
};
{Remeber = void}