blob: 1c0427ab5c4497bcf6c2ed90255646bff11d1e00 (
plain)
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
|
// $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
|