CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWGUIValidatingTextEntry.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWGUIValidatingTextEntry_h
2 #define Fireworks_Core_FWGUIValidatingTextEntry_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWGUIValidatingTextEntry
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Aug 22 18:13:29 EDT 2008
19 //
20 
21 // system include files
22 #include <vector>
23 #include <string>
24 #ifndef __CINT__
25 #include <memory>
26 #endif
27 // user include files
28 #include "TGTextEntry.h"
29 
30 // forward declarations
31 class FWValidatorBase;
32 class TGComboBoxPopup;
33 class TGListBox;
34 
35 class FWGUIValidatingTextEntry : public TGTextEntry {
36 
37 public:
38  FWGUIValidatingTextEntry(const TGWindow *parent = 0, const char *text = 0, Int_t id = -1);
39 
40  virtual ~FWGUIValidatingTextEntry();
41 
42  // ---------- const member functions ---------------------
43 
44  // ---------- static member functions --------------------
45 
46  // ---------- member functions ---------------------------
48  void showOptions();
49  void hideOptions();
50 
51  TGListBox* getListBox() const { return m_list; }
52  void setMaxListBoxHeight(UInt_t x) { m_listHeight = x; }
53 
54  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
55 
56  void keyPressedInPopup(TGFrame*, UInt_t keysym, UInt_t mask);
57 
59 
60 private:
61  FWGUIValidatingTextEntry(const FWGUIValidatingTextEntry&); // stop default
62 
63  const FWGUIValidatingTextEntry& operator=(const FWGUIValidatingTextEntry&); // stop default
64  void insertTextOption(const std::string&);
65 
66  // ---------- member data --------------------------------
67  TGComboBoxPopup* m_popup;
68  TGListBox* m_list;
70 
71  UInt_t m_listHeight;
72 #ifndef __CINT__
73  std::vector<std::pair<std::shared_ptr<std::string>, std::string> > m_options;
74 #endif
75 };
76 
77 
78 #endif
std::vector< std::pair< std::shared_ptr< std::string >, std::string > > m_options
void insertTextOption(const std::string &)
FWGUIValidatingTextEntry(const TGWindow *parent=0, const char *text=0, Int_t id=-1)
const FWGUIValidatingTextEntry & operator=(const FWGUIValidatingTextEntry &)
void setValidator(FWValidatorBase *)
ClassDef(FWGUIValidatingTextEntry, 0)
tuple text
Definition: runonSM.py:42
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
void keyPressedInPopup(TGFrame *, UInt_t keysym, UInt_t mask)