summaryrefslogtreecommitdiff
path: root/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h')
-rw-r--r--CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h b/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h
new file mode 100644
index 00000000000..1c0427ab5c4
--- /dev/null
+++ b/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h
@@ -0,0 +1,47 @@
+// $Id$
+
+#ifndef __ROOTPANEL_H
+#define __ROOTPANEL_H
+
+#define QT_GENUINE_STR
+
+#include "ace/Hash_Map_Manager.h"
+#include "ace/Null_Mutex.h"
+#include "MapView.h"
+#include "DetailView.h"
+#include <qmainwindow.h>
+
+class NodeItem;
+class QMouseEvent;
+
+class RootPanel : public QMainWindow
+{
+ Q_OBJECT
+
+typedef ACE_Hash_Map_Manager_Ex<ACE_UINT64,
+ NodeItem*,
+ ACE_Hash<ACE_UINT64>,
+ ACE_Equal_To<ACE_UINT64>,
+ ACE_Null_Mutex> NodeItemMap;
+
+public:
+ RootPanel(QCanvas&, QWidget *parent = 0, const char *name = 0);
+ ~RootPanel();
+
+public:
+ void addUnit(NavUnit* unit);
+ void updateUnit(NavUnit *unit);
+
+protected:
+ void clear();
+ virtual void customEvent(QCustomEvent *e);
+
+ QCanvas& canvas;
+ MapView *navview;
+ DetailView *details;
+
+ QPopupMenu* options;
+ NodeItemMap nodeMap;
+};
+
+#endif // __ROOTPANEL_H