1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#ifndef Fireworks_Core_FWGUIValidatingTextEntry_h
#define Fireworks_Core_FWGUIValidatingTextEntry_h
// -*- C++ -*-
//
// Package: Core
// Class : FWGUIValidatingTextEntry
//
/**\class FWGUIValidatingTextEntry FWGUIValidatingTextEntry.h Fireworks/Core/interface/FWGUIValidatingTextEntry.h
Description: <one line class summary>
Usage:
<usage>
*/
//
// Original Author: Chris Jones
// Created: Fri Aug 22 18:13:29 EDT 2008
//
// system include files
#include <vector>
#include <string>
#ifndef __CINT__
#include <memory>
#endif
// user include files
#include "TGTextEntry.h"
// forward declarations
class FWValidatorBase;
class TGComboBoxPopup;
class TGListBox;
class FWGUIValidatingTextEntry : public TGTextEntry {
public:
FWGUIValidatingTextEntry(const TGWindow* parent = nullptr, const char* text = nullptr, Int_t id = -1);
~FWGUIValidatingTextEntry() override;
// ---------- const member functions ---------------------
// ---------- static member functions --------------------
// ---------- member functions ---------------------------
void setValidator(FWValidatorBase*);
void showOptions();
void hideOptions();
TGListBox* getListBox() const { return m_list; }
void setMaxListBoxHeight(UInt_t x) { m_listHeight = x; }
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) override;
void keyPressedInPopup(TGFrame*, UInt_t keysym, UInt_t mask);
ClassDefOverride(FWGUIValidatingTextEntry, 0);
private:
FWGUIValidatingTextEntry(const FWGUIValidatingTextEntry&); // stop default
const FWGUIValidatingTextEntry& operator=(const FWGUIValidatingTextEntry&); // stop default
void insertTextOption(const std::string&);
// ---------- member data --------------------------------
TGComboBoxPopup* m_popup;
TGListBox* m_list;
FWValidatorBase* m_validator;
UInt_t m_listHeight;
#ifndef __CINT__
std::vector<std::pair<std::shared_ptr<std::string>, std::string> > m_options;
#endif
};
#endif
|