Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:00

0001 // -*- C++ -*-
0002 #ifndef Fireworks_Core_CmsShowSearchFiles_h
0003 #define Fireworks_Core_CmsShowSearchFiles_h
0004 //
0005 // Package:     Core
0006 // Class  :     CmsShowSearchFiles
0007 //
0008 /**\class CmsShowSearchFiles CmsShowSearchFiles.h Fireworks/Core/interface/CmsShowSearchFiles.h
0009 
0010    Description: <one line class summary>
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:
0018 //         Created:  Fri Jun 27 11:23:31 EDT 2008
0019 //
0020 
0021 // system include files
0022 #include "GuiTypes.h"
0023 #include "TGFrame.h"
0024 #include <string>
0025 #include <vector>
0026 
0027 // forward declarations
0028 
0029 class FWHtml;
0030 class TGComboBox;
0031 class TGTextButton;
0032 class TGPopupMenu;
0033 class TGTextEntry;
0034 
0035 class CmsShowSearchFiles : public TGTransientFrame {
0036 public:
0037   CmsShowSearchFiles(
0038       const char* filename, const char* windowname, const TGWindow* p = nullptr, UInt_t w = 1, UInt_t h = 1);
0039   ~CmsShowSearchFiles() override;
0040 
0041   ///This opens the dialog window and returns once the user has choosen, returns an empty string if canceled
0042   std::string chooseFileFromURL();
0043 
0044   //NOTE: Do not call any of the following, they are only public because 'signals' are attached to them
0045   void showPrefixes();
0046   void prefixChoosen(Int_t);
0047   void fileEntryChanged(const char*);
0048   void updateBrowser();
0049   void openClicked();
0050 
0051   void hyperlinkClicked(const char*);
0052 
0053   ClassDefOverride(CmsShowSearchFiles, 0);
0054 
0055 private:
0056   void sendToWebBrowser(std::string& iWebFile);
0057   void readInfo();
0058   void readError();
0059 
0060   TGTextButton* m_choosePrefix;
0061   TGPopupMenu* m_prefixMenu;
0062   TGTextEntry* m_file;
0063   FWHtml* m_webFile;
0064   std::vector<std::string> m_prefixes;
0065   std::vector<bool> m_prefixComplete;
0066   TGTextButton* m_openButton;
0067   bool m_openCalled;
0068 };
0069 
0070 #endif