MyGUI 3.2.0

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

MyGUI_BackwardCompatibility.h
Go to the documentation of this file.
1
6 /*
7 This file is part of MyGUI.
8
9 MyGUI is free software: you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 MyGUI is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
21 */
22 #ifndef __MYGUI_BACKWARD_COMPATIBILITY_H__
23 #define __MYGUI_BACKWARD_COMPATIBILITY_H__
24
25 #include "MyGUI_Prerequest.h"
26 #include "MyGUI_Colour.h"
27 #include "MyGUI_ResourceSkin.h"
28 #include "MyGUI_Any.h"
29 #include "MyGUI_MouseButton.h"
30 #include "MyGUI_KeyCode.h"
31 #include "MyGUI_Macros.h"
32 #include "MyGUI_WidgetDefines.h"
33 #include "MyGUI_IResource.h"
34 #include <map>
35 #include <set>
36
37 namespace MyGUI
38 {
39
40 #ifndef MYGUI_DONT_USE_OBSOLETE
41
42 template <>
43 class MYGUI_EXPORT MemberObsolete<Button>
44 {
45 public:
46 MYGUI_OBSOLETE(" is deprecated, use : void Button::setStateSelected(bool _value)")
47 void setButtonPressed(bool _value);
48 MYGUI_OBSOLETE(" is deprecated, use : bool Button::getStateSelected()")
49 bool getButtonPressed();
50 MYGUI_OBSOLETE(" is deprecated, use : void Button::setStateSelected(bool _value)")
51 void setStateCheck(bool _value);
52 MYGUI_OBSOLETE(" is deprecated, use : bool Button::getStateSelected()")
53 bool getStateCheck();
54 MYGUI_OBSOLETE(" is deprecated")
55 ImageBox* getStaticImage();
56 MYGUI_OBSOLETE(" is deprecated, use : void Button::setImageName(const std::string& _name)")
57 void setImageIndex(size_t _value);
58 MYGUI_OBSOLETE(" is deprecated")
59 size_t getImageIndex();
60 };
61
62 template <>
63 class MYGUI_EXPORT MemberObsolete<ComboBox>
64 {
65 public:
66 MYGUI_OBSOLETE(" is deprecated, use : size_t ComboBox::getIndexSelected()")
67 size_t getItemIndexSelected();
68 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setIndexSelected(size_t _index)")
69 void setItemSelectedAt(size_t _index);
70 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::clearIndexSelected()")
71 void clearItemSelected();
72
73 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::insertItemAt(size_t _index, const UString& _name)")
74 void insertItem(size_t _index, const UString& _name);
75 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setItemNameAt(size_t _index, const UString& _name)")
76 void setItem(size_t _index, const UString& _item);
77 MYGUI_OBSOLETE(" is deprecated, use : const UString& ComboBox::getItemNameAt(size_t _index)")
78 const UString& getItem(size_t _index);
79 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::removeItemAt(size_t _index)")
80 void deleteItem(size_t _index);
81 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::removeAllItems()")
82 void deleteAllItems();
83 MYGUI_OBSOLETE(" is deprecated, use : size_t ComboBox::getIndexSelected()")
84 size_t getItemSelect();
85 MYGUI_OBSOLETE(" is deprecated, use : void void ComboBox::clearIndexSelected()")
86 void resetItemSelect();
87 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setIndexSelected(size_t _index)")
88 void setItemSelect(size_t _index);
89
90 MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setMaxListLength(int _value)")
91 void setMaxListHeight(int _value);
92 MYGUI_OBSOLETE(" is deprecated, use : int ComboBox::getMaxListLength()")
93 int getMaxListHeight();
94 };
95
96 template <>
97 class MYGUI_EXPORT MemberObsolete<EditBox>
98 {
99 public:
100 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setVisibleVScroll(bool _visible)")
101 void showVScroll(bool _visible);
102 MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isVisibleVScroll()")
103 bool isShowVScroll();
104 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setVisibleHScroll(bool _visible)")
105 void showHScroll(bool _visible);
106 MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isVisibleHScroll()")
107 bool isShowHScroll();
108
109 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextIntervalColour(size_t _start, size_t _count, const Colour& _colour)")
110 void setTextColour(size_t _start, size_t _count, const Colour& _colour);
111 MYGUI_OBSOLETE(" is deprecated, use : size_t EditBox::getTextSelectionStart() , size_t getTextSelectionEnd()")
112 void getTextSelect(size_t& _start, size_t& _end);
113 MYGUI_OBSOLETE(" is deprecated, use : UString EditBox::getTextInterval(size_t _start, size_t _count)")
114 UString getText(size_t _start, size_t _count);
115 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextSelection(size_t _start, size_t _end)")
116 void setTextSelect(size_t _start, size_t _end);
117 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::deleteTextSelection()")
118 void deleteTextSelect();
119 MYGUI_OBSOLETE(" is deprecated, use : UString EditBox::getTextSelection()")
120 UString getSelectedText();
121 MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isTextSelection()")
122 bool isTextSelect();
123 MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextSelectionColour(const Colour& _colour)")
124 void setTextSelectColour(const Colour& _colour);
125 };
126
127 template <>
128 class MYGUI_EXPORT MemberObsolete<ItemBox>
129 {
130 public:
131 MYGUI_OBSOLETE(" is deprecated, use : size_t ItemBox::getItemIndexSelected()")
132 size_t getItemIndexSelected();
133 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setIndexSelected(size_t _index)")
134 void setItemSelectedAt(size_t _index);
135 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::clearIndexSelected()")
136 void clearItemSelected();
137
138 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::insertItemAt(size_t _index, Any _data)")
139 void insertItem(size_t _index, Any _data = Any::Null);
140 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setItemDataAt(size_t _index, Any _data)")
141 void setItemData(size_t _index, Any _data);
142 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::removeItemAt(size_t _index)")
143 void deleteItem(size_t _index);
144 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::removeAllItems()")
145 void deleteAllItems();
146 MYGUI_OBSOLETE(" is deprecated, use : size_t ItemBox::getIndexSelected()")
147 size_t getItemSelect();
148 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::clearIndexSelected()")
149 void resetItemSelect();
150 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setIndexSelected(size_t _index)")
151 void setItemSelect(size_t _index);
152
153 MYGUI_OBSOLETE(" is deprecated, use : Widget* ItemBox::getWidgetDrag()")
154 Widget* getWidgetDrop();
155 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::resetDrag()")
156 void resetDrop();
157
158 MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setVerticalAlignment(bool _value)")
159 void setItemBoxAlignVert(bool _value);
160 MYGUI_OBSOLETE(" is deprecated, use : bool ItemBox::getVerticalAlignment() const")
161 bool getItemBoxAlignVert();
162 };
163
164 template <>
165 class MYGUI_EXPORT MemberObsolete<ListBox>
166 {
167 public:
168 MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::getIndexSelected()")
169 size_t getItemIndexSelected();
170 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setIndexSelected(size_t _index)")
171 void setItemSelectedAt(size_t _index);
172 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::clearIndexSelected()")
173 void clearItemSelected();
174
175 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::insertItemAt(size_t _index, const UString& _name)")
176 void insertItem(size_t _index, const UString& _item);
177 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setItemNameAt(size_t _index, const UString& _name)")
178 void setItem(size_t _index, const UString& _item);
179 MYGUI_OBSOLETE(" is deprecated, use : const UString& ListBox::getItemNameAt(size_t _index)")
180 const UString& getItem(size_t _index);
181 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::removeItemAt(size_t _index)")
182 void deleteItem(size_t _index);
183 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::removeAllItems()")
184 void deleteAllItems();
185 MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::findItemIndexWith(const UString& _name)")
186 size_t findItem(const UString& _item);
187 MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::getIndexSelected()")
188 size_t getItemSelect();
189 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::clearIndexSelected()")
190 void resetItemSelect();
191 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setIndexSelected(size_t _index)")
192 void setItemSelect(size_t _index);
193 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemAt(size_t _index)")
194 void beginToIndex(size_t _index);
195 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemFirst()")
196 void beginToStart();
197 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemLast()")
198 void beginToEnd();
199 MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemSelected()")
200 void beginToSelect();
201 MYGUI_OBSOLETE(" is deprecated, use : bool ListBox::isItemVisibleAt(size_t _index, bool _fill)")
202 bool isItemVisible(size_t _index, bool _fill = true);
203 MYGUI_OBSOLETE(" is deprecated, use : bool ListBox::isItemSelectedVisible(bool _fill)")
204 bool isItemSelectVisible(bool _fill = true);
205 };
206
207 template <>
208 class MYGUI_EXPORT MemberObsolete<MenuControl>
209 {
210 public:
211 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setVisible(bool _value)")
212 void showMenu();
213 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setVisible(bool _value)")
214 void hideMenu();
215 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getVisible()")
216 bool isShowMenu();
217
218 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisibleAt(size_t _index, bool _visible)")
219 void showItemChildAt(size_t _index);
220 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(MenuItem* _item, bool _visible)")
221 void showItemChild(MenuItem* _item);
222 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisibleAt(size_t _index, bool _visible)")
223 void hideItemChildAt(size_t _index);
224 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(MenuItem* _item, bool _visible)")
225 void hideItemChild(MenuItem* _item);
226
227 MYGUI_OBSOLETE(" is deprecated, use : void MenuControl::setVerticalAlignment(bool _value)")
228 void setAlignVert(bool _value);
229 MYGUI_OBSOLETE(" is deprecated, use : bool MenuControl::getVerticalAlignment() const")
230 bool getAlignVert();
231 };
232
233 template <>
234 class MYGUI_EXPORT MemberObsolete<MenuItem>
235 {
236 public:
237 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(bool _visible)")
238 void showItemChild();
239 MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(bool _visible)")
240 void hideItemChild();
241 };
242
243 template <>
244 class MYGUI_EXPORT MemberObsolete<MultiListBox>
245 {
246 public:
247 MYGUI_OBSOLETE(" is deprecated, use : size_t MultiListBox::getIndexSelected()")
248 size_t getItemIndexSelected();
249 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setIndexSelected(size_t _index)")
250 void setItemSelectedAt(size_t _index);
251 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::clearIndexSelected()")
252 void clearItemSelected();
253
254 MYGUI_OBSOLETE(" is deprecated, use : size_t MultiListBox::findSubItemWith(size_t _column, const UString& _name)")
255 size_t findItem(size_t _column, const UString& _name);
256 MYGUI_OBSOLETE(" is deprecated, use : const UString& MultiListBox::getSubItemNameAt(size_t _column, size_t _index)")
257 const UString& getSubItem(size_t _column, size_t _index);
258 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setSubItemNameAt(size_t _column, size_t _index, const UString& _name)")
259 void setSubItem(size_t _column, size_t _index, const UString& _name);
260 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeColumnAt(size_t _column)")
261 void deleteColumn(size_t _column);
262 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeAllColumns()")
263 void deleteAllColumns();
264 MYGUI_OBSOLETE(" is deprecated, use : int MultiListBox::getColumnWidthAt(size_t _column)")
265 int getColumnWidth(size_t _column);
266 MYGUI_OBSOLETE(" is deprecated, use : const UString& MultiListBox::getColumnNameAt(size_t _column)")
267 const UString& getColumnName(size_t _column);
268 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setColumnWidthAt(size_t _column, int _width)")
269 void setColumnWidth(size_t _column, int _width);
270 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::addColumn(const UString& _name, int _width, Any _data)")
271 void addColumn(int _width, const UString& _name);
272 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setColumnNameAt(size_t _column, const UString& _name)")
273 void setColumnName(size_t _column, const UString& _name);
274 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::insertColumnAt(size_t _column, const UString& _name, int _width, Any _data)")
275 void insertColumn(size_t _column, int _width, const UString& _name);
276 MYGUI_OBSOLETE(" is deprecated, use : size_t MultiListBox::getIndexSelected()")
277 size_t getItemSelect();
278 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::clearIndexSelected()")
279 void resetItemSelect();
280 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setIndexSelected(size_t _index)")
281 void setItemSelect(size_t _index);
282 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::insertItemAt(size_t _index, const UString& _name, Any _data)")
283 void insertItem(size_t _index, const UString& _name);
284 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setItemNameAt(size_t _index, const UString& _name)")
285 void setItem(size_t _index, const UString& _name);
286 MYGUI_OBSOLETE(" is deprecated, use : const UString& MultiListBox::getItemNameAt(size_t _index)")
287 const UString& getItem(size_t _index);
288 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeItemAt(size_t _index)")
289 void deleteItem(size_t _index);
290 MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeAllItems()")
291 void deleteAllItems();
292 };
293
294 template <>
295 class MYGUI_EXPORT MemberObsolete<ProgressBar>
296 {
297 public:
298 MYGUI_OBSOLETE(" is deprecated, use : void ProgressBar::setFlowDirection(FlowDirection _value)")
299 void setProgressStartPoint(Align _value);
300 MYGUI_OBSOLETE(" is deprecated, use : FlowDirection ProgressBar::getFlowDirection()")
301 Align getProgressStartPoint();
302 };
303
304 template <>
305 class MYGUI_EXPORT MemberObsolete<ScrollView>
306 {
307 public:
308 MYGUI_OBSOLETE(" is deprecated, use : void ScrollView::setVisibleVScroll(bool _visible)")
309 void showVScroll(bool _visible);
310 MYGUI_OBSOLETE(" is deprecated, use : bool ScrollView::isVisibleVScroll()")
311 bool isShowVScroll();
312 MYGUI_OBSOLETE(" is deprecated, use : void ScrollView::setVisibleHScroll(bool _visible)")
313 void showHScroll(bool _visible);
314 MYGUI_OBSOLETE(" is deprecated, use : bool ScrollView::isVisibleHScroll()")
315 bool isShowHScroll();
316 };
317
318 template <>
319 class MYGUI_EXPORT MemberObsolete<TabControl>
320 {
321 public:
322 MYGUI_OBSOLETE(" is deprecated, use : int TabControl::getButtonWidthAt(size_t _index)")
323 int getSheetButtonWidthIndex(size_t _index);
324 MYGUI_OBSOLETE(" is deprecated, use : int TabControl::getButtonWidth(TabItem* _item)")
325 int getSheetButtonWidth(TabItem* _sheet);
326 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setButtonWidthAt(size_t _index, int _width)")
327 void setSheetButtonWidthIndex(size_t _index, int _width = DEFAULT);
328 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setButtonWidth(TabItem* _item, int _width)")
329 void setSheetButtonWidth(TabItem* _sheet, int _width = DEFAULT);
330 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::beginToItemAt(size_t _index)")
331 void showBarButton(size_t _index);
332 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::beginToItemSelected()")
333 void showBarSelectButton();
334 MYGUI_OBSOLETE(" is deprecated, use : size_t TabControl::getItemCount()")
335 size_t getSheetCount();
336 MYGUI_OBSOLETE(" is deprecated, use : const UString& TabControl::getItemName(TabItem* _item)")
337 const UString& getSheetName(TabItem* _sheet);
338 MYGUI_OBSOLETE(" is deprecated, use : const UString& TabControl::getItemNameAt(size_t _index)")
339 const UString& getSheetNameIndex(size_t _index);
340 MYGUI_OBSOLETE(" is deprecated, use : TabItem* TabControl::getItemAt(size_t _index)")
341 TabItem* getSheet(size_t _index);
342 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemNameAt(size_t _index, const UString& _name)")
343 void setSheetNameIndex(size_t _index, const UString& _name, int _width = DEFAULT);
344 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemName(TabItem* _item, const UString& _name)")
345 void setSheetName(TabItem* _sheet, const UString& _name, int _width = DEFAULT);
346 MYGUI_OBSOLETE(" is deprecated, use : TabItem* TabControl::addItem(const UString& _name, Any _data)")
347 TabItem* addSheet(const UString& _name, int _width = DEFAULT);
348 MYGUI_OBSOLETE(" is deprecated, use : TabItem* TabControl::insertItemAt(size_t _index, const UString& _name, Any _data)")
349 TabItem* insertSheet(size_t _index, const UString& _name, int _width = DEFAULT);
350 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::removeItemAt(size_t _index)")
351 void removeSheetIndex(size_t _index);
352 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::removeItem(TabItem* _item)")
353 void removeSheet(TabItem* _sheet);
354 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setIndexSelected(size_t _index)")
355 void selectSheetIndex(size_t _index, bool _smooth = true);
356 MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemSelected(TabItem* _item)")
357 void selectSheet(TabItem* _sheet, bool _smooth = true);
358 MYGUI_OBSOLETE(" is deprecated, use : size_t TabControl::getIndexSelected()")
359 size_t getSelectSheetIndex();
360
361 MYGUI_OBSOLETE(" is deprecated, use : size_t Widget::getIndexSelected()")
362 size_t getItemIndexSelected();
363 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setIndexSelected(size_t _index)")
364 void setItemSelectedAt(size_t _index);
365 };
366
367 template <>
368 class MYGUI_EXPORT MemberObsolete<Widget>
369 {
370 public:
371 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getEnabled() const")
372 bool isEnabled();
373 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getInheritsAlpha() const")
374 bool isInheritsAlpha();
375 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getNeedKeyFocus() const")
376 bool isNeedKeyFocus();
377 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getNeedMouseFocus() const")
378 bool isNeedMouseFocus();
379 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getInheritsPick() const")
380 bool isInheritsPick();
381 MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getVisible() const")
382 bool isVisible();
383 };
384
385 template <>
386 class MYGUI_EXPORT MemberObsolete<Window>
387 {
388 public:
389 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setCoord(const IntCoord& _coord)")
390 void setPosition(const IntCoord& _coord);
391 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setCoord(int _left, int _top, int _width, int _height)")
392 void setPosition(int _left, int _top, int _width, int _height);
393
394 MYGUI_OBSOLETE(" is deprecated, use : void setVisibleSmooth(bool _visible)")
395 void showSmooth(bool _reset = false);
396 MYGUI_OBSOLETE(" is deprecated, use : void setVisibleSmooth(bool _visible)")
397 void hideSmooth();
398 MYGUI_OBSOLETE(" is deprecated, use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
399 void setMinMax(const IntRect& _minmax);
400 MYGUI_OBSOLETE(" is deprecated, use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
401 void setMinMax(int _min_w, int _min_h, int _max_w, int _max_h);
402 MYGUI_OBSOLETE(" is deprecated, use : IntSize getMinSize() , IntSize getMaxSize()")
403 IntRect getMinMax();
404 };
405
406 template <>
407 class MYGUI_EXPORT MemberObsolete<FontManager>
408 {
409 public:
410 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
411 bool load(const std::string& _file);
412 };
413
414 template <>
415 class MYGUI_EXPORT MemberObsolete<Gui>
416 {
417 public:
418 MYGUI_OBSOLETE(" is deprecated, use : void Gui::destroyWidgets(VectorWidgetPtr &_widgets)")
419 void destroyWidgetsVector(VectorWidgetPtr& _widgets);
420
421 MYGUI_OBSOLETE(" is deprecated, use : void Gui::setVisiblePointer(bool _value)")
422 void hidePointer();
423 MYGUI_OBSOLETE(" is deprecated, use : void Gui::setVisiblePointer(bool _value)")
424 void showPointer();
425 MYGUI_OBSOLETE(" is deprecated, use : bool Gui::isVisiblePointer()")
426 bool isShowPointer();
427 MYGUI_OBSOLETE("called be renderer, do not call it manually")
428 void injectFrameEntered(float _time) { }
429
430 MYGUI_OBSOLETE(" is deprecated, use : void Gui::getViewSize().width")
431 int getViewWidth();
432 MYGUI_OBSOLETE(" is deprecated, use : void Gui::getViewSize().height")
433 int getViewHeight();
434
435 MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectMouseMove(int _absx, int _absy, int _absz)")
436 bool injectMouseMove(int _absx, int _absy, int _absz);
437 MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectMousePress(int _absx, int _absy, MouseButton _id)")
438 bool injectMousePress(int _absx, int _absy, MouseButton _id);
439 MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectMouseRelease(int _absx, int _absy, MouseButton _id)")
440 bool injectMouseRelease(int _absx, int _absy, MouseButton _id);
441 MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectKeyPress(KeyCode _key, Char _text = 0)")
442 bool injectKeyPress(KeyCode _key, Char _text = 0);
443 MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectKeyRelease(KeyCode _key)")
444 bool injectKeyRelease(KeyCode _key);
445
446 MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(_value)")
447 void setVisiblePointer(bool _value);
448 MYGUI_OBSOLETE(" is deprecated, use : bool PointerManager::isVisible()")
449 bool isVisiblePointer();
450
451 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
452 bool load(const std::string& _file);
453
454 MYGUI_OBSOLETE(" is deprecated, use : const IntSize& RenderManager::getViewSize() const")
455 const IntSize& getViewSize();
456
457 MYGUI_OBSOLETE(" is deprecated, use : RenderManager::onFrameEvent(float _time)")
458 void _injectFrameEntered(float _time);
459 MYGUI_OBSOLETE(" is deprecated, use : RenderManager::onResizeView(const IntSize& _size)")
460 void _resizeWindow(const IntSize& _size);
461 };
462
463 template <>
464 class MYGUI_EXPORT MemberObsolete<InputManager>
465 {
466 public:
467 MYGUI_OBSOLETE(" is deprecated, use : const IntPoint& getLastPressedPosition(MouseButton _id) with _id MouseButton::Left")
468 const IntPoint& getLastLeftPressed() const;
469 MYGUI_OBSOLETE(" is deprecated, use : const IntPoint& getLastPressedPosition(MouseButton _id) with _id MouseButton::Right")
470 const IntPoint& getLastRightPressed() const;
471 };
472
473 template <>
474 class MYGUI_EXPORT MemberObsolete<LanguageManager>
475 {
476 public:
477 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
478 bool load(const std::string& _file);
479 };
480
481 template <>
482 class MYGUI_EXPORT MemberObsolete<LayerManager>
483 {
484 public:
485 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
486 bool load(const std::string& _file);
487 };
488
489 template <>
490 class MYGUI_EXPORT MemberObsolete<LayoutManager>
491 {
492 public:
493 MYGUI_OBSOLETE(" is deprecated, use : VectorWidgetPtr& LayoutManager::loadLayout(const std::string& _file, const std::string& _prefix, Widget* _parent)")
494 VectorWidgetPtr load(const std::string& _file);
495 };
496
497 template <>
498 class MYGUI_EXPORT MemberObsolete<PluginManager>
499 {
500 public:
501 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
502 bool load(const std::string& _file);
503 };
504
505 template <>
506 class MYGUI_EXPORT MemberObsolete<PointerManager>
507 {
508 public:
509 MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setDefaultPointer(const std::string& _value)")
510 void setDeafultPointer(const std::string& _value);
511 MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(bool _visible)")
512 void show();
513 MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(bool _visible)")
514 void hide();
515 MYGUI_OBSOLETE(" is deprecated, use : bool PointerManager::isVisible()")
516 bool isShow();
517 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
518 bool load(const std::string& _file);
519 };
520
521 template <>
522 class MYGUI_EXPORT MemberObsolete<ResourceManager>
523 {
524 public:
525 MYGUI_OBSOLETE(" is deprecated, use : size_t ResourceManager::getCount()")
526 size_t getResourceCount();
527 MYGUI_OBSOLETE(" is deprecated, use : IResourcePtr ResourceManager::getByName(const std::string& _name, bool _throw)")
528 IResourcePtr getResource(const std::string& _name, bool _throw = true);
529 };
530
531 template <>
532 class MYGUI_EXPORT MemberObsolete<SkinManager>
533 {
534 public:
535 MYGUI_OBSOLETE(" is deprecated, use : ResourceSkin* SkinManager::getByName(const std::string& _name)")
536 ResourceSkin* getSkin(const std::string& _name);
537 MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
538 bool load(const std::string& _file);
539 };
540
541 template <>
542 class MYGUI_EXPORT MemberObsolete<WidgetManager>
543 {
544 public:
545 MYGUI_OBSOLETE(" is deprecated, use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)")
546 void destroyWidgetsVector(VectorWidgetPtr& _widgets);
547 MYGUI_OBSOLETE(" is deprecated")
548 Widget* findWidgetT(const std::string& _name, bool _throw = true);
549 MYGUI_OBSOLETE(" is deprecated")
550 Widget* findWidgetT(const std::string& _name, const std::string& _prefix, bool _throw = true);
551 MYGUI_OBSOLETE(" is deprecated, use : void Widget::setProperty(const std::string &_key, const std::string &_value)")
552 void parse(Widget* _widget, const std::string& _key, const std::string& _value);
553 };
554
555 #endif // MYGUI_DONT_USE_OBSOLETE
556
557 class MYGUI_EXPORT BackwardCompatibility
558 {
559 public:
560 static bool checkProperty(Widget* _owner, std::string& _key, std::string& _value);
561 static void initialise();
562 static void shutdown();
563 static bool isIgnoreProperty(const std::string& _key);
564 static std::string getPropertyRename(const std::string& _propertyName);
565 static std::string getFactoryRename(const std::string& _categoryName, const std::string& _factoryName);
566 static std::string getSkinRename(const std::string& _skinName);
567 static void registerWidgetTypes();
568 };
569
570 } // namespace MyGUI
571
572 #endif // __MYGUI_BACKWARD_COMPATIBILITY_H__
MyGUI::types::TCoord< int >
MyGUI::PointerManager
Definition: MyGUI_PointerManager.h:35
MyGUI::Widget
Definition: MyGUI_Widget.h:41
MyGUI::ComboBox
Definition: MyGUI_ComboBox.h:40
MyGUI::TabItem
Definition: MyGUI_TabItem.h:32
MyGUI_MouseButton.h
MyGUI::ResourceSkin
Definition: MyGUI_ResourceSkin.h:36
MyGUI::ImageBox
Definition: MyGUI_ImageBox.h:33
MyGUI::types::TPoint< int >
MyGUI::LayoutManager
Definition: MyGUI_LayoutManager.h:37
MyGUI_Prerequest.h
MyGUI::KeyCode
Definition: MyGUI_KeyCode.h:30
MyGUI::ItemBox
Definition: MyGUI_ItemBox.h:41
MyGUI::types::TSize< int >
MyGUI::LayerManager
Definition: MyGUI_LayerManager.h:37
MyGUI::InputManager
Definition: MyGUI_InputManager.h:42
MyGUI::LanguageManager
Definition: MyGUI_LanguageManager.h:35
MyGUI_Macros.h
MyGUI::Any
Definition: MyGUI_Any.h:81
MyGUI::WidgetManager
Definition: MyGUI_WidgetManager.h:35
MyGUI_WidgetDefines.h
MyGUI::BackwardCompatibility
Definition: MyGUI_BackwardCompatibility.h:557
MyGUI::ListBox
Definition: MyGUI_ListBox.h:37
MyGUI::PluginManager
Plugin manager. Load/unload and register plugins.
Definition: MyGUI_PluginManager.h:39
MyGUI::MouseButton
Definition: MyGUI_MouseButton.h:30
MyGUI::Button
Definition: MyGUI_Button.h:31
MyGUI::EditBox
Definition: MyGUI_EditBox.h:37
MyGUI::DEFAULT
const int DEFAULT
Definition: MyGUI_Macros.h:33
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:120
MyGUI::types::TRect< int >
MyGUI::ProgressBar
Definition: MyGUI_ProgressBar.h:33
MyGUI::ScrollView
Definition: MyGUI_ScrollView.h:32
MyGUI::VectorWidgetPtr
std::vector< Widget * > VectorWidgetPtr
Definition: MyGUI_WidgetDefines.h:33
MyGUI::Char
unsigned int Char
Definition: MyGUI_Types.h:66
MyGUI_ResourceSkin.h
MyGUI::ResourceManager
Definition: MyGUI_ResourceManager.h:36
MyGUI_Any.h
MyGUI_IResource.h
MyGUI_Colour.h
MyGUI::MultiListBox
Definition: MyGUI_MultiListBox.h:44
MyGUI::UString
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
Definition: MyGUI_UString.h:169
MyGUI::MemberObsolete
Definition: MyGUI_DeprecatedTypes.h:28
MyGUI::SkinManager
Definition: MyGUI_SkinManager.h:36
MyGUI::Align
Definition: MyGUI_Align.h:34
MyGUI::Window
Definition: MyGUI_Window.h:39
MyGUI::Colour
Definition: MyGUI_Colour.h:31
MyGUI::IResource
Definition: MyGUI_IResource.h:38
MyGUI_KeyCode.h
MyGUI::TabControl
Definition: MyGUI_TabControl.h:38
MyGUI::RenderManager
Definition: MyGUI_RenderManager.h:35
MYGUI_OBSOLETE
#define MYGUI_OBSOLETE(text)
Definition: MyGUI_Diagnostic.h:111
MyGUI::Any::Null
static AnyEmpty Null
Definition: MyGUI_Any.h:85
MyGUI::Gui
Definition: MyGUI_Gui.h:38
MyGUI::FontManager
Definition: MyGUI_FontManager.h:36