MyGUI: MyGUI_BackwardCompatibility.h Source File

MyGUI 3.4.2

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

- File List
- Globals

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