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.6 2010/11/10 20:07:06 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  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
52 
53  void keyPressedInPopup(TGFrame*, UInt_t keysym, UInt_t mask);
54 
56 
57 private:
58  FWGUIValidatingTextEntry(const FWGUIValidatingTextEntry&); // stop default
59 
60  const FWGUIValidatingTextEntry& operator=(const FWGUIValidatingTextEntry&); // stop default
61  void insertTextOption(const std::string&);
62 
63  // ---------- member data --------------------------------
64  TGComboBoxPopup* m_popup;
65  TGListBox* m_list;
66 
68 #ifndef __CINT__
69  std::vector<std::pair<boost::shared_ptr<std::string>, std::string> > m_options;
70 #endif
71 };
72 
73 
74 #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)
void keyPressedInPopup(TGFrame *, UInt_t keysym, UInt_t mask)