CMS 3D CMS Logo

CmsShowSearchFiles.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_CmsShowSearchFiles_h
3 #define Fireworks_Core_CmsShowSearchFiles_h
4 //
5 // Package: Core
6 // Class : CmsShowSearchFiles
7 //
16 //
17 // Original Author:
18 // Created: Fri Jun 27 11:23:31 EDT 2008
19 //
20 
21 // system include files
22 #include "GuiTypes.h"
23 #include "TGFrame.h"
24 #include <string>
25 #include <vector>
26 
27 // forward declarations
28 
29 class FWHtml;
30 class TGComboBox;
31 class TGTextButton;
32 class TGPopupMenu;
33 class TGTextEntry;
34 
35 class CmsShowSearchFiles : public TGTransientFrame {
36 public:
38  const char* filename, const char* windowname, const TGWindow* p = nullptr, UInt_t w = 1, UInt_t h = 1);
39  ~CmsShowSearchFiles() override;
40 
43 
44  //NOTE: Do not call any of the following, they are only public because 'signals' are attached to them
45  void showPrefixes();
46  void prefixChoosen(Int_t);
47  void fileEntryChanged(const char*);
48  void updateBrowser();
49  void openClicked();
50 
51  void hyperlinkClicked(const char*);
52 
54 
55 private:
56  void sendToWebBrowser(std::string& iWebFile);
57  void readInfo();
58  void readError();
59 
60  TGTextButton* m_choosePrefix;
61  TGPopupMenu* m_prefixMenu;
62  TGTextEntry* m_file;
64  std::vector<std::string> m_prefixes;
65  std::vector<bool> m_prefixComplete;
66  TGTextButton* m_openButton;
68 };
69 
70 #endif
CmsShowSearchFiles::CmsShowSearchFiles
CmsShowSearchFiles(const char *filename, const char *windowname, const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1)
Definition: CmsShowSearchFiles.cc:51
CmsShowSearchFiles::hyperlinkClicked
void hyperlinkClicked(const char *)
Definition: CmsShowSearchFiles.cc:147
FWHtml
Definition: CmsShowSearchFiles.cc:23
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
CmsShowSearchFiles::sendToWebBrowser
void sendToWebBrowser(std::string &iWebFile)
Definition: CmsShowSearchFiles.cc:232
CmsShowSearchFiles::openClicked
void openClicked()
Definition: CmsShowSearchFiles.cc:164
CmsShowSearchFiles::prefixChoosen
void prefixChoosen(Int_t)
Definition: CmsShowSearchFiles.cc:105
CmsShowSearchFiles::readInfo
void readInfo()
Definition: CmsShowSearchFiles.cc:286
CmsShowSearchFiles
Definition: CmsShowSearchFiles.h:35
w
const double w
Definition: UKUtility.cc:23
corrVsCorr.filename
filename
Definition: corrVsCorr.py:123
h
CmsShowSearchFiles::m_prefixes
std::vector< std::string > m_prefixes
Definition: CmsShowSearchFiles.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CmsShowSearchFiles::fileEntryChanged
void fileEntryChanged(const char *)
Definition: CmsShowSearchFiles.cc:124
CmsShowSearchFiles::readError
void readError()
Definition: CmsShowSearchFiles.cc:269
CmsShowSearchFiles::chooseFileFromURL
std::string chooseFileFromURL()
This opens the dialog window and returns once the user has choosen, returns an empty string if cancel...
Definition: CmsShowSearchFiles.cc:318
CmsShowSearchFiles::m_choosePrefix
TGTextButton * m_choosePrefix
Definition: CmsShowSearchFiles.h:60
CmsShowSearchFiles::m_prefixComplete
std::vector< bool > m_prefixComplete
Definition: CmsShowSearchFiles.h:65
CmsShowSearchFiles::m_prefixMenu
TGPopupMenu * m_prefixMenu
Definition: CmsShowSearchFiles.h:61
CmsShowSearchFiles::m_file
TGTextEntry * m_file
Definition: CmsShowSearchFiles.h:62
CmsShowSearchFiles::ClassDefOverride
ClassDefOverride(CmsShowSearchFiles, 0)
CmsShowSearchFiles::m_openCalled
bool m_openCalled
Definition: CmsShowSearchFiles.h:67
CmsShowSearchFiles::m_webFile
FWHtml * m_webFile
Definition: CmsShowSearchFiles.h:63
CmsShowSearchFiles::updateBrowser
void updateBrowser()
Definition: CmsShowSearchFiles.cc:140
CmsShowSearchFiles::m_openButton
TGTextButton * m_openButton
Definition: CmsShowSearchFiles.h:66
CmsShowSearchFiles::~CmsShowSearchFiles
~CmsShowSearchFiles() override
Definition: CmsShowSearchFiles.cc:101
CmsShowSearchFiles::showPrefixes
void showPrefixes()
Definition: CmsShowSearchFiles.cc:171