diff options
Diffstat (limited to 'TAO/utils/wxNamingViewer/wxNamingViewerFrame.h')
-rw-r--r-- | TAO/utils/wxNamingViewer/wxNamingViewerFrame.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/TAO/utils/wxNamingViewer/wxNamingViewerFrame.h b/TAO/utils/wxNamingViewer/wxNamingViewerFrame.h new file mode 100644 index 00000000000..f3c316a8252 --- /dev/null +++ b/TAO/utils/wxNamingViewer/wxNamingViewerFrame.h @@ -0,0 +1,41 @@ +// $Id$ +// wxNamingViewerFrame.h + +#ifndef i_wxNamingViewerFrame_h +#define i_wxNamingViewerFrame_h + +#include "orbsvcs/CosNamingC.h" +#include "wxNamingTree.h" + +class WxNamingViewerFrame: + public wxFrame +{ +public: + WxNamingViewerFrame( + const wxString& title, + const wxPoint& pos, + const wxSize& size, + CORBA::ORB_ptr pOrb); + virtual ~WxNamingViewerFrame(); + + void OnQuit( wxCommandEvent& event); + void OnAbout( wxCommandEvent& event); + void onSelectNS( wxCommandEvent& event); + +private: + CORBA::ORB_ptr pOrb; + CosNaming::NamingContext_var rootContext; + WxNamingTree* tree; + wxTextCtrl* serverText; + wxString server; + class WxSelectNSDialog* selectNS; + void resolve(); + void setDefaultNS(); + + void onMenuCopy( wxCommandEvent& event); + void onUpdateUICopy( wxUpdateUIEvent& event); + + DECLARE_EVENT_TABLE() +}; + +#endif |