Plasma Engine  2.0
Loading...
Searching...
No Matches
GameObjectPanel.moc.h
1#pragma once
2
3#include <EditorFramework/EditorFrameworkDLL.h>
4#include <EditorFramework/GUI/RawDocumentTreeWidget.moc.h>
5#include <GuiFoundation/DockPanels/DocumentPanel.moc.h>
6
10
11class PL_EDITORFRAMEWORK_DLL plQtGameObjectWidget : public QWidget
12{
13 Q_OBJECT
14
15public:
17 QWidget* pParent, plGameObjectDocument* pDocument, const char* szContextMenuMapping, std::unique_ptr<plQtDocumentTreeModel> pCustomModel, plSelectionManager* pSelection = nullptr);
19
20private Q_SLOTS:
21 void OnItemDoubleClicked(const QModelIndex&);
22 void OnRequestContextMenu(QPoint pos);
23 void OnFilterTextChanged(const QString& text);
24
25private:
26 void DocumentSceneEventHandler(const plGameObjectEvent& e);
27
28protected:
29 plGameObjectDocument* m_pDocument;
30 plQtDocumentTreeView* m_pTreeWidget;
31 plQtSearchWidget* m_pFilterWidget;
32 plString m_sContextMenuMapping;
33};
34
35class PL_EDITORFRAMEWORK_DLL plQtGameObjectPanel : public plQtDocumentPanel
36{
37 Q_OBJECT
38
39public:
41 QWidget* pParent, plGameObjectDocument* pDocument, const char* szContextMenuMapping, std::unique_ptr<plQtDocumentTreeModel> pCustomModel);
43
44
45protected:
46 plQtGameObjectWidget* m_pMainWidget = nullptr;
47};
Definition GameObjectDocument.h:95
Definition DocumentPanel.moc.h:10
Definition RawDocumentTreeWidget.moc.h:16
Definition GameObjectPanel.moc.h:36
Definition GameObjectPanel.moc.h:12
A widget that contains a line edit for a search text and a button to clear the search text.
Definition SearchWidget.moc.h:14
Selection Manager stores a set of selected document objects.
Definition SelectionManager.h:26
Definition GameObjectDocument.h:28