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