Free Electron
StringEntryController.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __dataui_StringEntryController_h__
8 #define __dataui_StringEntryController_h__
9 
10 #include <dataui/dataui.pmh>
11 namespace fe
12 {
13 namespace ext
14 {
15 
16 /** string entry controller
17  @copydoc StringEntryController_info
18  */
19 class FE_DL_EXPORT StringEntryController :
20  public Initialize<StringEntryController>,
21  virtual public Config,
22  virtual public HandlerI,
23  virtual public Reactor,
24  virtual public Mask
25 {
26  public:
28 virtual ~StringEntryController(void);
29 
30  void initialize(void);
31 
32 virtual void handleBind(sp<SignalerI> spSignalerI, sp<Layout> spLayout);
33 virtual void handle( Record &r_sig);
34 
35  enum
36  {
37  e_base = 0, // 0000 0000
38  e_in = 16, // 0001 0000
39  e_sel = 32, // 0010 0000
40  e_reserved = 64, // 0100 0000
41  e_set = 128, // 1000 0000
42 
43  e_type = 15, // 0000 1111
44  e_state = 240, // 1111 0000
45 
46  e_basic = 0 // 0000 0000
47 
48  };
49 
50  private:
51  void fireSignal(Record &a_record);
52  sp<SignalerI> m_spSignaler;
53  AsStringEntry m_asStringEntry;
54  AsWindata m_asWindata;
55  AsSignal m_asSignal;
56  AsCallback m_asCallback;
57  AsSelection m_asSel;
58  bool m_selecting;
59  WindowEvent::Mask m_start;
60  WindowEvent::Mask m_end;
61  WindowEvent::Mask m_drag;
62 };
63 
64 } /* namespace ext */
65 } /* namespace fe */
66 
67 #endif /* __dataui_StringEntryController_h__ */
68 
Convienience base class for specification and use of path accessors.
Definition: Config.h:19
window data
Definition: datatoolAS.h:38
string entry
Definition: datauiAS.h:133
possible attributes of a top level signal
Definition: datatoolAS.h:16
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Reference to an instance of a Layout.
Definition: RecordSB.h:35
string entry controller
Definition: StringEntryController.h:19
Callback signal wrapper.
Definition: windowAS.h:299
screen space selection
Definition: windowAS.h:36