TDME2  1.9.200
PopUps.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 
5 #include <tdme/tdme.h>
8 
9 using std::unique_ptr;
10 
23 
24 /**
25  * Pop ups controller accessor class
26  * @author andreas
27  */
29 {
30 private:
31  unique_ptr<InfoDialogScreenController> infoDialogScreenController;
32  unique_ptr<InputDialogScreenController> inputDialogScreenController;
33  unique_ptr<FileDialogScreenController> fileDialogScreenController;
34  unique_ptr<ProgressBarScreenController> progressBarScreenController;
35  unique_ptr<ColorPickerScreenController> colorPickerScreenController;
36  unique_ptr<ContextMenuScreenController> contextMenuScreenController;
37  unique_ptr<AboutDialogScreenController> aboutDialogScreenController;
38  unique_ptr<FindReplaceDialogScreenController> findReplaceDialogScreenController;
39  unique_ptr<ImportDialogScreenController> importDialogScreenController;
40  unique_ptr<SelectorDialogScreenController> selectorDialogScreenController;
41  unique_ptr<TooltipScreenController> tooltipScreenController;
42  unique_ptr<DraggingScreenController> draggingScreenController;
43 
44 public:
45  // forbid class copy
47 
48  /**
49  * Public constructor
50  */
51  PopUps();
52 
53  /**
54  * Destructor
55  */
56  ~PopUps();
57 
58  /**
59  * @return file dialog screen controller
60  */
62  return fileDialogScreenController.get();
63  }
64 
65  /**
66  * @return input dialog screen controller
67  */
69  return inputDialogScreenController.get();
70  }
71 
72  /**
73  * @return info dialog screen controller
74  */
76  return infoDialogScreenController.get();
77  }
78 
79  /**
80  * @return progress bar screen controller
81  */
83  return progressBarScreenController.get();
84  }
85 
86  /**
87  * @return color picker screen controller
88  */
90  return colorPickerScreenController.get();
91  }
92 
93  /**
94  * @return context menu screen controller
95  */
97  return contextMenuScreenController.get();
98  }
99 
100  /**
101  * @return about dialog screen controller
102  */
104  return aboutDialogScreenController.get();
105  }
106 
107  /**
108  * @return find replace dialog screen controller
109  */
112  }
113 
114  /**
115  * @return import dialog screen controller
116  */
118  return importDialogScreenController.get();
119  }
120 
121  /**
122  * @return selector dialog screen controller
123  */
125  return selectorDialogScreenController.get();
126  }
127 
128  /**
129  * @return tooltip screen controller
130  */
132  return tooltipScreenController.get();
133  }
134 
135  /**
136  * @return dragging screen controller
137  */
139  return draggingScreenController.get();
140  }
141 
142  /**
143  * Init
144  */
145  void initialize();
146 
147  /**
148  * Dispose
149  */
150  void dispose();
151 
152 };
Pop ups controller accessor class.
Definition: PopUps.h:29
unique_ptr< AboutDialogScreenController > aboutDialogScreenController
Definition: PopUps.h:37
DraggingScreenController * getDraggingScreenController()
Definition: PopUps.h:138
AboutDialogScreenController * getAboutDialogScreenController()
Definition: PopUps.h:103
SelectorDialogScreenController * getSelectorDialogScreenController()
Definition: PopUps.h:124
unique_ptr< FindReplaceDialogScreenController > findReplaceDialogScreenController
Definition: PopUps.h:38
ImportDialogScreenController * getImportDialogScreenController()
Definition: PopUps.h:117
InputDialogScreenController * getInputDialogScreenController()
Definition: PopUps.h:68
unique_ptr< SelectorDialogScreenController > selectorDialogScreenController
Definition: PopUps.h:40
FindReplaceDialogScreenController * getFindReplaceDialogScreenController()
Definition: PopUps.h:110
unique_ptr< ContextMenuScreenController > contextMenuScreenController
Definition: PopUps.h:36
ColorPickerScreenController * getColorPickerScreenController()
Definition: PopUps.h:89
unique_ptr< InputDialogScreenController > inputDialogScreenController
Definition: PopUps.h:32
unique_ptr< TooltipScreenController > tooltipScreenController
Definition: PopUps.h:41
PopUps()
Public constructor.
Definition: PopUps.cpp:42
FileDialogScreenController * getFileDialogScreenController()
Definition: PopUps.h:61
unique_ptr< DraggingScreenController > draggingScreenController
Definition: PopUps.h:42
TooltipScreenController * getTooltipScreenController()
Definition: PopUps.h:131
ProgressBarScreenController * getProgressBarScreenController()
Definition: PopUps.h:82
unique_ptr< ImportDialogScreenController > importDialogScreenController
Definition: PopUps.h:39
ContextMenuScreenController * getContextMenuScreenController()
Definition: PopUps.h:96
unique_ptr< FileDialogScreenController > fileDialogScreenController
Definition: PopUps.h:33
unique_ptr< ColorPickerScreenController > colorPickerScreenController
Definition: PopUps.h:35
unique_ptr< InfoDialogScreenController > infoDialogScreenController
Definition: PopUps.h:31
InfoDialogScreenController * getInfoDialogScreenController()
Definition: PopUps.h:75
unique_ptr< ProgressBarScreenController > progressBarScreenController
Definition: PopUps.h:34
#define FORBID_CLASS_COPY(CLASS)
Definition: tdme.h:6