/*========================================================================= Program: bbtk Module: $RCSfile: bbtkWxGUIPackageBrowser.h,v $ Language: C++ Date: $Date: 2008/04/18 12:59:16 $ Version: $Revision: 1.3 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*//** * \brief Short description in one line * * Long description which * can span multiple lines */ /** * \file * \brief */ /** * \class bbtk:: * \brief */ #ifdef _USE_WXWIDGETS_ #ifndef __bbtkWxGUIPackageBrowser_h__ #define __bbtkWxGUIPackageBrowser_h__ #include "bbtkWx.h" #include "bbtkInterpreter.h" class wxTreeMultiCtrl; namespace bbtk { //================================================================ class WxGUIPackageBrowser; //================================================================ //================================================================ /// Abstract class which defines the callbacks invoked by WxGUIPackageBrowser class BBTK_EXPORT WxGUIPackageBrowserUser { public: WxGUIPackageBrowserUser() {} ~WxGUIPackageBrowserUser() {} /// Callback invoked when the 'run' button is pressed virtual void WxGUIPackageBrowserRun() {} }; //================================================================ //================================================================ class WxGUIPackageBrowserBlackBox : public wxPanel { public: WxGUIPackageBrowserBlackBox(wxWindow* parent, WxGUIPackageBrowser* browser, BlackBoxDescriptor::Pointer descr); ~WxGUIPackageBrowserBlackBox(); private: WxGUIPackageBrowser* mBrowser; BlackBoxDescriptor::Pointer mDescriptor; } ; //================================================================ //================================================================ /// A package browser panel class BBTK_EXPORT WxGUIPackageBrowser : public wxPanel { public: WxGUIPackageBrowser( wxWindow *parent, WxGUIPackageBrowserUser* user = 0 ); ~WxGUIPackageBrowser(); void IncludeAll(); void BuildFromFactory(Factory::Pointer f); private: WxGUIPackageBrowserUser* mUser; Interpreter::Pointer mInterpreter; wxTreeMultiCtrl* mTree; }; //================================================================ //================================================================ /// Browser in a frame class BBTK_EXPORT WxGUIPackageBrowserWindow : public wxFrame //, public WxGUICommandUser { public: WxGUIPackageBrowserWindow( wxWindow *parent, wxString title, wxSize size); ~WxGUIPackageBrowserWindow(); // void Open(const std::string& filename) { mBrowser->Open(filename); } // void WxGUICommandEnter(const std::string& s); private : WxGUIPackageBrowser* mBrowser; }; //================================================================ } // namespace bbtk #endif // __bbtkWxGUIPackageBrowser_h__ #endif //_USE_WXWIDGETS_