00001 // -*- C++ -*- 00002 #ifndef Fireworks_Core_CmsShowSearchFiles_h 00003 #define Fireworks_Core_CmsShowSearchFiles_h 00004 // 00005 // Package: Core 00006 // Class : CmsShowSearchFiles 00007 // 00016 // 00017 // Original Author: 00018 // Created: Fri Jun 27 11:23:31 EDT 2008 00019 // $Id: CmsShowSearchFiles.h,v 1.5 2010/11/11 19:45:49 amraktad Exp $ 00020 // 00021 00022 // system include files 00023 #include "GuiTypes.h" 00024 #include "TGFrame.h" 00025 #include <string> 00026 #include <vector> 00027 00028 // forward declarations 00029 00030 class FWHtml; 00031 class TGComboBox; 00032 class TGTextButton; 00033 class TGPopupMenu; 00034 class TGTextEntry; 00035 00036 class CmsShowSearchFiles : public TGTransientFrame { 00037 00038 public: 00039 00040 CmsShowSearchFiles (const char *filename, 00041 const char* windowname, const TGWindow* p = 0, 00042 UInt_t w = 1, UInt_t h = 1); 00043 virtual ~CmsShowSearchFiles(); 00044 00046 std::string chooseFileFromURL(); 00047 00048 //NOTE: Do not call any of the following, they are only public because 'signals' are attached to them 00049 void showPrefixes(); 00050 void prefixChoosen(Int_t); 00051 void fileEntryChanged(const char*); 00052 void updateBrowser(); 00053 void openClicked(); 00054 00055 void hyperlinkClicked(const char*); 00056 00057 ClassDef(CmsShowSearchFiles, 0); 00058 00059 private: 00060 void sendToWebBrowser(const char* iWebFile); 00061 TGTextButton* m_choosePrefix; 00062 TGPopupMenu* m_prefixMenu; 00063 TGTextEntry* m_file; 00064 FWHtml *m_webFile; 00065 std::vector<std::string> m_prefixes; 00066 std::vector<bool> m_prefixComplete; 00067 TGTextButton* m_openButton; 00068 bool m_openCalled; 00069 }; 00070 00071 00072 #endif