CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // $Id: CmsShowSearchFiles.h,v 1.6 2012/03/02 03:18:25 amraktad Exp $
20 //
21 
22 // system include files
23 #include "GuiTypes.h"
24 #include "TGFrame.h"
25 #include <string>
26 #include <vector>
27 
28 // forward declarations
29 
30 class FWHtml;
31 class TGComboBox;
32 class TGTextButton;
33 class TGPopupMenu;
34 class TGTextEntry;
35 
36 class CmsShowSearchFiles : public TGTransientFrame {
37 
38 public:
39 
40  CmsShowSearchFiles (const char *filename,
41  const char* windowname, const TGWindow* p = 0,
42  UInt_t w = 1, UInt_t h = 1);
43  virtual ~CmsShowSearchFiles();
44 
46  std::string chooseFileFromURL();
47 
48  //NOTE: Do not call any of the following, they are only public because 'signals' are attached to them
49  void showPrefixes();
50  void prefixChoosen(Int_t);
51  void fileEntryChanged(const char*);
52  void updateBrowser();
53  void openClicked();
54 
55  void hyperlinkClicked(const char*);
56 
58 
59 private:
60  void sendToWebBrowser(std::string& iWebFile);
61  void readInfo();
62  void readError();
63 
64  TGTextButton* m_choosePrefix;
65  TGPopupMenu* m_prefixMenu;
66  TGTextEntry* m_file;
68  std::vector<std::string> m_prefixes;
69  std::vector<bool> m_prefixComplete;
70  TGTextButton* m_openButton;
72 };
73 
74 
75 #endif
std::vector< bool > m_prefixComplete
ClassDef(CmsShowSearchFiles, 0)
TGTextButton * m_choosePrefix
void fileEntryChanged(const char *)
TGPopupMenu * m_prefixMenu
TGTextButton * m_openButton
std::vector< std::string > m_prefixes
unsigned int UInt_t
Definition: FUTypes.h:12
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
void sendToWebBrowser(std::string &iWebFile)
void hyperlinkClicked(const char *)
tuple filename
Definition: lut2db_cfg.py:20
std::string chooseFileFromURL()
This opens the dialog window and returns once the user has choosen, returns an empty string if cancel...
CmsShowSearchFiles(const char *filename, const char *windowname, const TGWindow *p=0, UInt_t w=1, UInt_t h=1)
T w() const