-
Notifications
You must be signed in to change notification settings - Fork 2
/
DocDockManager.h
50 lines (33 loc) · 989 Bytes
/
DocDockManager.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
/**
* DocDockWidget.h
* Copyright (c) 2013 ROBLOX Corp. All Rights Reserved.
*/
#pragma once
// Qt Headers
#include <QDockWidget>
#include <QMap>
// Roblox Headers
#include "RBX/BaldPtr.h"
// Roblox Studio Headers
#include "IRobloxDoc.h"
class RobloxMainWindow;
class DocDockWidget;
class DocDockManager : public QObject
{
Q_OBJECT
public:
DocDockManager(RobloxMainWindow& mainWindow);
virtual ~DocDockManager();
void addDoc(IRobloxDoc& doc);
bool removeDoc(IRobloxDoc& doc);
bool renameDoc(IRobloxDoc& doc,const QString& text,const QString& tooltip);
bool setCurrentDoc(IRobloxDoc& doc);
IRobloxDoc* getCurrentDoc() const;
void startDrag(IRobloxDoc& doc);
Q_SIGNALS:
void attachTab(IRobloxDoc& doc);
private:
typedef QMap< RBX::BaldPtr<IRobloxDoc>,RBX::BaldPtr<DocDockWidget> > tDocDockMap;
RobloxMainWindow& m_MainWindow;
tDocDockMap m_Docs;
};