Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / utils / wxNamingViewer / wxNamingTree.h
blob1ba472b0ef02f944d161679cfde076da93e6059b
1 // wxNamingTree.h
3 #ifndef i_wxNamingTree_h
4 #define i_wxNamingTree_h
6 #include "wx/treectrl.h"
7 #include "orbsvcs/CosNamingC.h"
9 class wxMenu;
10 class WxNamingObject;
12 class WxNamingTree:
13 public wxTreeCtrl
15 public:
16 WxNamingTree(
17 wxWindow* parent,
18 const wxWindowID id = -1);
19 virtual ~WxNamingTree();
21 bool isNodeSelected() const
22 { return GetSelection() != 0; }
23 void copySelectedToClipboard();
24 void resolve( CosNaming::NamingContext_ptr pRootContext);
25 void setOrb( CORBA::ORB_ptr pOrb);
27 enum {
28 treeCtrl = 1000
31 private:
32 CORBA::ORB_ptr orb;
34 enum {
35 listQuantum = 40,
37 void clearChildren ();
38 void clearChildren (wxTreeItemId& item);
39 WxNamingObject* getTreeObject() const;
40 WxNamingObject* getTreeObject(wxTreeItemId& item) const;
41 void listBindingList(
42 wxTreeItemId& item,
43 CosNaming::NamingContext_ptr context,
44 CosNaming::BindingList_var& bl);
45 void listContext( wxTreeItemId& item);
46 void refresh( wxTreeItemId& item);
47 wxMenu* contextPopup;
48 wxMenu* objectPopup;
49 enum {
50 contextPopupBindContext,
51 contextPopupBindNewContext,
52 contextPopupBindObject,
53 contextPopupUnbind,
54 contextPopupDestroy,
55 contextPopupViewReference,
56 contextPopupRefresh,
58 objectPopupUnbind,
59 objectPopupViewReference,
61 void onContextPopupBindContext( wxCommandEvent& event);
62 void onContextPopupBindNewContext( wxCommandEvent& event);
63 void onContextPopupBindObject( wxCommandEvent& event);
64 void onContextPopupDestroy( wxCommandEvent& event);
65 void onContextPopupRefresh( wxCommandEvent& event);
66 void onContextPopupUnbind( wxCommandEvent& event);
67 void onPopupViewReference( wxCommandEvent& event);
69 void onObjectPopupUnbind( wxCommandEvent& event);
70 void onObjectPopupViewReference( wxCommandEvent& event);
72 void onItemExpanding( wxTreeEvent& event);
73 void onRMouseUClick( wxMouseEvent& event);
74 void onLeftDClick( wxMouseEvent& event);
76 DECLARE_EVENT_TABLE()
79 #endif