OpenLexocad  27.1
SelectionCB.h
Go to the documentation of this file.
1 // //
3 // LEXOCAD API //
4 // //
5 // ©2005-2016 Cadwork Informatik. All rights reserved. //
6 // //
7 // ONLY INCLUDE OTHER INTERFACES! //
8 // Lexocad provides API Classes for public use and //
9 // Implementation Classes for private use. //
10 // //
11 // - Do ONLY include and use the LEXOCAD API in this header. //
12 // - Do not change existing interfaces. //
13 // - Document your code! //
14 // //
15 // - All types from Base, Core, Geom, Topo are allowed here. //
16 // - In the Gui modules the use of Qt types is allowed. //
17 // //
19 
20 #pragma once
21 
22 
23 #include <OpenLxUI/UICallback.h>
24 #include <OpenLxUI/UIElement.h>
25 
26 #include <memory>
27 #include <vector>
28 
29 
30 namespace OpenLxUI
31 {
38 class LX_OPENLXUI_EXPORT SelectionCB : public OpenLxUI::UICallback
39 {
40 public:
41  SelectionCB();
42  virtual ~SelectionCB();
43 
44  virtual void test();
45  // Is calling back when one or more UIElement get selected.
46  virtual void onSelected(const std::vector<std::shared_ptr<OpenLxUI::UIElement>>&);
47  // Is calling back when one or more UIElement get deselected.
48  virtual void onDeselected(const std::vector<std::shared_ptr<OpenLxUI::UIElement>>&);
49  // Is calling back when the selection is cleared.
50  virtual void onClearedSelection();
51 
52 private:
53 };
54 } // namespace OpenLxUI
Definition: SelectionCB.h:38
Definition: UICallback.h:17
Definition: ActiveEdge.h:25