Free Electron
DrawButtons.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_DrawButtons_h__
8 #define __dataui_DrawButtons_h__
9 
10 #include <dataui/dataui.pmh>
11 
12 #include "viewer/DrawView.h"
13 namespace fe
14 {
15 namespace ext
16 {
17 
18 /** draw buttons
19 
20  @copydoc DrawButtons_info
21  */
22 class FE_DL_EXPORT DrawButtons :
23  public Initialize<DrawButtons>,
24  virtual public HandlerI
25 {
26  public:
27  DrawButtons(void);
28 virtual ~DrawButtons(void);
29 
30  void initialize(void);
31 
32 virtual void handleBind( sp<SignalerI> spSignalerI,
33  sp<Layout> l_sig);
34 virtual void handle( Record &record);
35 
36  private:
37  void drawBox(sp<DrawI> spDraw,
38  Real x1,Real y1,Real x2,Real y2,Real z,int state);
39 
40  sp<DrawMode> m_spNarrow;
41  sp<DrawMode> m_spWide;
42 
43  AsRectButton m_asRectButton;
44  DrawView m_drawview;
45 
46  Color m_color[6];
47 };
48 
49 } /* namespace ext */
50 } /* namespace fe */
51 
52 #endif /* __dataui_DrawButtons_h__ */
53 
54 
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Rectangular UI button.
Definition: datauiAS.h:84
Special vector for color (RGBA)
Definition: Color.h:21
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
draw buttons
Definition: DrawButtons.h:22
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Helper class for draw operators (handlers)
Definition: DrawView.h:22