diff options
author | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-29 21:10:39 +0000 |
---|---|---|
committer | jai <jai@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-29 21:10:39 +0000 |
commit | e7b830ab561638ed25822054be80ce12e8801d38 (patch) | |
tree | a5b9aa16924c541fcb424ee9460b1ac7f5a89352 /modules/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h | |
parent | 9b720f395833b3ce2f499463e5fed37a0da926f4 (diff) | |
download | ATCD-DiffServ-Merge.tar.gz |
branching/taggingDiffServ-Merge
Diffstat (limited to 'modules/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h')
-rw-r--r-- | modules/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/modules/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h b/modules/CIAO/examples/Display/NavDisplayGUI_exec/RootPanel.h new file mode 100644 index 00000000000..1c0427ab5c4 --- /dev/null +++ b/modules/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 |