File indexing completed on 2024-04-06 12:11:30
0001
0002 #ifndef Fireworks_Core_CmsShowSearchFiles_h
0003 #define Fireworks_Core_CmsShowSearchFiles_h
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include "GuiTypes.h"
0023 #include "TGFrame.h"
0024 #include <string>
0025 #include <vector>
0026
0027
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
0042 std::string chooseFileFromURL();
0043
0044
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