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
ads::CDockComponentsFactory::setFactory
static void setFactory(CDockComponentsFactory *Factory)
Definition: DockComponentsFactory.cpp:55
ads::CDockComponentsFactory::resetDefaultFactory
static void resetDefaultFactory()
Definition: DockComponentsFactory.cpp:62
ads::CDockComponentsFactory
Definition: DockComponentsFactory.h:35
ads::CDockComponentsFactory::factory
static const CDockComponentsFactory * factory()
Definition: DockComponentsFactory.cpp:48
ads::CDockAreaTitleBar
Definition: DockAreaTitleBar.h:50
DockWidget.h
Declaration of CDockWidget class.
DockAreaTabBar.h
Declaration of CDockAreaTabBar class.
ads::CDockComponentsFactory::createDockAreaTitleBar
virtual CDockAreaTitleBar * createDockAreaTitleBar(CDockAreaWidget *DockArea) const
Definition: DockComponentsFactory.cpp:41
ads::CDockAreaWidget
Definition: DockAreaWidget.h:55
ads::CDockComponentsFactory::createDockAreaTabBar
virtual CDockAreaTabBar * createDockAreaTabBar(CDockAreaWidget *DockArea) const
Definition: DockComponentsFactory.cpp:34
ads
Definition: ads_globals.h:69
DockWidget
Definition: plot_docker.h:16
DockComponentsFactory.h
Declaration of DockComponentsFactory.
DockAreaTitleBar.h
Declaration of CDockAreaTitleBar class.
ads::CDockAreaTabBar
Definition: DockAreaTabBar.h:53
ads::CDockWidget
Definition: DockWidget.h:54
DockAreaWidget.h
Declaration of CDockAreaWidget class.
ads::CDockComponentsFactory::createDockWidgetTab
virtual CDockWidgetTab * createDockWidgetTab(CDockWidget *DockWidget) const
Definition: DockComponentsFactory.cpp:27
DockWidgetTab.h
Declaration of CDockWidgetTab class.
ads::DefaultFactory
static std::unique_ptr< CDockComponentsFactory > DefaultFactory(new CDockComponentsFactory())
ads::CDockWidgetTab
Definition: DockWidgetTab.h:50


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:22