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 // $Id: FWGUIValidatingTextEntry.h,v 1.9 2011/07/20 20:17:54 amraktad Exp $
20 //
21 
22 // system include files
23 #include <vector>
24 #include <string>
25 #ifndef __CINT__
26 #include <boost/shared_ptr.hpp>
27 #endif
28 // user include files
29 #include "TGTextEntry.h"
30 
31 // forward declarations
32 class FWValidatorBase;
33 class TGComboBoxPopup;
34 class TGListBox;
35 
36 class FWGUIValidatingTextEntry : public TGTextEntry {
37 
38 public:
39  FWGUIValidatingTextEntry(const TGWindow *parent = 0, const char *text = 0, Int_t id = -1);
40 
41  virtual ~FWGUIValidatingTextEntry();
42 
43  // ---------- const member functions ---------------------
44 
45  // ---------- static member functions --------------------
46 
47  // ---------- member functions ---------------------------
49  void showOptions();
50  void hideOptions();
51 
52  TGListBox* getListBox() const { return m_list; }
54 
55  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
56 
57  void keyPressedInPopup(TGFrame*, UInt_t keysym, UInt_t mask);
58 
60 
61 private:
62  FWGUIValidatingTextEntry(const FWGUIValidatingTextEntry&); // stop default
63 
64  const FWGUIValidatingTextEntry& operator=(const FWGUIValidatingTextEntry&); // stop default
65  void insertTextOption(const std::string&);
66 
67  // ---------- member data --------------------------------
68  TGComboBoxPopup* m_popup;
69  TGListBox* m_list;
71 
73 #ifndef __CINT__
74  std::vector<std::pair<boost::shared_ptr<std::string>, std::string> > m_options;
75 #endif
76 };
77 
78 
79 #endif
list parent
Definition: dbtoconf.py:74
std::vector< std::pair< boost::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
unsigned int UInt_t
Definition: FUTypes.h:12
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
x
Definition: VDTMath.h:216
void keyPressedInPopup(TGFrame *, UInt_t keysym, UInt_t mask)