SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SideWindow.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2018 SEGS Team (see Authors.txt)
5  * This software is licensed! (See License.txt for details)
6  */
7 
8 #ifndef SIDEWINDOW_H
9 #define SIDEWINDOW_H
10 
11 #include <QtWidgets/QMainWindow>
12 
13 #include <QAbstractItemModel>
14 
15 namespace Ui
16 {
17  class SideWindow;
18 }
19 
20 namespace Urho3D
21 {
22  class Node;
23  class Scene;
24  class StaticModel;
25  class Vector3;
26  class Drawable;
27 }
28 
29 struct CoHSceneGraph;
30 struct CoHNode;
31 struct CoHModel;
32 
33 class MapViewerApp;
34 
35 class SideWindow : public QMainWindow
36 {
37  Q_OBJECT
38 
39 public:
40  explicit SideWindow(QWidget *parent = nullptr);
41  ~SideWindow();
42  void setMapViewer(MapViewerApp *mapview);
43 protected:
44  void changeEvent(QEvent *e);
45 signals:
46  void scenegraphSelected(const QString &path);
47  void nodeSelected(CoHNode *n);
48  void nodeDisplayRequest(CoHNode *n,bool isroot);
49 public slots:
50  void onCameraPositionChanged(float x,float y,float z);
51  void onModelSelected(CoHNode*n, CoHModel*m, Urho3D::Drawable*d);
52  void onScenegraphLoaded(const CoHSceneGraph &sc);
53 private slots:
54  void on_actionLoad_Scene_Graph_triggered();
55 
56  void on_actionSet_data_paths_triggered();
57 
58  void on_nodeList_clicked(const QModelIndex &index);
59 
60  void on_nodeList_doubleClicked(const QModelIndex &index);
61 
62 private:
63  MapViewerApp *m_map_viewer;
64  Ui::SideWindow *ui;
65  QAbstractItemModel *m_model;
66 };
67 
68 #endif // SIDEWINDOW_H
void nodeDisplayRequest(CoHNode *n, bool isroot)
Definition: CoHModelLoader.h:91
void scenegraphSelected(const QString &path)
Definition: CoHSceneConverter.h:52
void nodeSelected(CoHNode *n)
void onScenegraphLoaded(const CoHSceneGraph &sc)
Definition: SideWindow.cpp:150
~SideWindow()
Definition: SideWindow.cpp:46
void onCameraPositionChanged(float x, float y, float z)
Definition: SideWindow.cpp:68
Definition: MapViewerApp.h:30
Definition: SideWindow.h:35
void setMapViewer(MapViewerApp *mapview)
Definition: SideWindow.cpp:51
void changeEvent(QEvent *e)
Definition: SideWindow.cpp:56
SideWindow(QWidget *parent=nullptr)
Definition: SideWindow.cpp:37
Definition: CoHSceneConverter.h:85
void onModelSelected(CoHNode *n, CoHModel *m, Urho3D::Drawable *d)
Definition: SideWindow.cpp:76