Free Electron
ImguiHandlerCatalog.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 __imgui_ImguiHandlerCatalog_h__
8 #define __imgui_ImguiHandlerCatalog_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Imgui Handler for generic Catalog
17 
18  @ingroup imgui
19 *//***************************************************************************/
20 class FE_DL_EXPORT ImguiHandlerCatalog:
21  public ImguiHandler,
22  public Initialize<ImguiHandlerCatalog>
23 {
24  public:
25  ImguiHandlerCatalog(void);
26 virtual ~ImguiHandlerCatalog(void);
27 
28  void initialize(void);
29 
30 virtual void updateGUI(void)
31  {
32  update(m_spCatalog,"Catalog");
33 
34 // ImGui::ShowDemoWindow();
35  }
36 
37 virtual void drawOverlay(void);
38 
39  void bind(sp<Catalog> a_spCatalog) { m_spCatalog=a_spCatalog; }
40 
41  protected:
42 
43  void update(sp<Catalog> a_spCatalog,String a_label);
44 
45  private:
46 
47  void updateCatalog(sp<Catalog> a_spCatalog,String a_label);
48 
49  sp<Catalog> m_spCatalog;
50  sp<Oscilloscope> m_spOscilloscope;
51 
52  I32 m_valueOffset;
53  I32 m_typeOffset;
54  I32 m_scopeOffset;
55  String m_selectedKey;
56  String m_selectedProperty;
57  String m_lastSelectedKey;
58  String m_lastSelectedProperty;
59 
60  BWORD m_drawn;
61 };
62 
63 } /* namespace ext */
64 } /* namespace fe */
65 
66 #endif /* __imgui_ImguiHandlerCatalog_h__ */
Imgui Handler for generic Catalog.
Definition: ImguiHandlerCatalog.h:20
kernel
Definition: namespace.dox:3
Dear Imgui draw and event handler.
Definition: ImguiHandler.h:20
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Automatically reference-counted string container.
Definition: String.h:128
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53