DockComponentsFactory.cpp
Go to the documentation of this file.
1 //============================================================================
6 //============================================================================
7 
8 //============================================================================
9 // INCLUDES
10 //============================================================================
11 #include "DockComponentsFactory.h"
12 
13 #include <memory>
14 
15 #include "DockWidgetTab.h"
16 #include "DockAreaTabBar.h"
17 #include "DockAreaTitleBar.h"
18 #include "DockWidget.h"
19 #include "DockAreaWidget.h"
20 
21 namespace ads
22 {
23 static std::unique_ptr<CDockComponentsFactory> DefaultFactory(new CDockComponentsFactory());
24 
25 
26 //============================================================================
28 {
29  return new CDockWidgetTab(DockWidget);
30 }
31 
32 
33 //============================================================================
35 {
36  return new CDockAreaTabBar(DockArea);
37 }
38 
39 
40 //============================================================================
42 {
43  return new CDockAreaTitleBar(DockArea);
44 }
45 
46 
47 //============================================================================
49 {
50  return DefaultFactory.get();
51 }
52 
53 
54 //============================================================================
56 {
57  DefaultFactory.reset(Factory);
58 }
59 
60 
61 //============================================================================
63 {
65 }
66 } // namespace ads
67 
68 //---------------------------------------------------------------------------
69 // EOF DockComponentsFactory.cpp
Declaration of CDockWidgetTab class.
static const CDockComponentsFactory * factory()
Declaration of DockComponentsFactory.
Declaration of CDockAreaTabBar class.
static std::unique_ptr< CDockComponentsFactory > DefaultFactory(new CDockComponentsFactory())
virtual CDockAreaTitleBar * createDockAreaTitleBar(CDockAreaWidget *DockArea) const
virtual CDockAreaTabBar * createDockAreaTabBar(CDockAreaWidget *DockArea) const
virtual CDockWidgetTab * createDockWidgetTab(CDockWidget *DockWidget) const
Declaration of CDockAreaWidget class.
Declaration of CDockWidget class.
Declaration of CDockAreaTitleBar class.
static void setFactory(CDockComponentsFactory *Factory)


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:47:34