MyGUI 3.2.0

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

- File List
- Globals

MyGUI_BackwardCompatibility.cpp
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 #include "MyGUI_Precompiled.h"
23 #include "MyGUI_BackwardCompatibility.h"
24 #include "MyGUI_Button.h"
25 #include "MyGUI_ComboBox.h"
26 #include "MyGUI_EditBox.h"
27 #include "MyGUI_ItemBox.h"
28 #include "MyGUI_ListBox.h"
29 #include "MyGUI_MenuControl.h"
30 #include "MyGUI_MenuItem.h"
31 #include "MyGUI_MultiListBox.h"
32 #include "MyGUI_ProgressBar.h"
33 #include "MyGUI_ScrollView.h"
34 #include "MyGUI_TabControl.h"
35 #include "MyGUI_Widget.h"
36 #include "MyGUI_Window.h"
37 #include "MyGUI_TabItem.h"
38 #include "MyGUI_Canvas.h"
39 #include "MyGUI_LayoutManager.h"
40 #include "MyGUI_FontManager.h"
41 #include "MyGUI_ResourceManager.h"
42 #include "MyGUI_Gui.h"
43 #include "MyGUI_PointerManager.h"
44 #include "MyGUI_InputManager.h"
45 #include "MyGUI_RenderManager.h"
46 #include "MyGUI_LanguageManager.h"
47 #include "MyGUI_LayoutManager.h"
48 #include "MyGUI_PluginManager.h"
49 #include "MyGUI_SkinManager.h"
50 #include "MyGUI_WidgetManager.h"
51 #include "MyGUI_FactoryManager.h"
52 #include "MyGUI_DeprecatedWidgets.h"
53
54 namespace MyGUI
55 {
56
57 #ifndef MYGUI_DONT_USE_OBSOLETE
58
59 void MemberObsolete<Button>::setButtonPressed(bool _value)
60 {
61 static_cast<Button*>(this)->setStateSelected(_value);
62 }
63 bool MemberObsolete<Button>::getButtonPressed()
64 {
65 return static_cast<Button*>(this)->getStateSelected();
66 }
67 void MemberObsolete<Button>::setStateCheck(bool _value)
68 {
69 static_cast<Button*>(this)->setStateSelected(_value);
70 }
71 bool MemberObsolete<Button>::getStateCheck()
72 {
73 return static_cast<Button*>(this)->getStateSelected();
74 }
75 ImageBox* MemberObsolete<Button>::getStaticImage()
76 {
77 return static_cast<Button*>(this)->_getImageBox();
78 }
79 void MemberObsolete<Button>::setImageIndex(size_t _index)
80 {
81 if (static_cast<Button*>(this)->_getImageBox())
82 static_cast<Button*>(this)->_getImageBox()->setImageIndex(_index);
83 }
84 size_t MemberObsolete<Button>::getImageIndex()
85 {
86 if (static_cast<Button*>(this)->_getImageBox())
87 return static_cast<Button*>(this)->_getImageBox()->getImageIndex();
88 return ITEM_NONE;
89 }
90
91
92 size_t MemberObsolete<ComboBox>::getItemIndexSelected()
93 {
94 return static_cast<ComboBox*>(this)->getIndexSelected();
95 }
96 void MemberObsolete<ComboBox>::setItemSelectedAt(size_t _index)
97 {
98 static_cast<ComboBox*>(this)->setIndexSelected(_index);
99 }
100 void MemberObsolete<ComboBox>::clearItemSelected()
101 {
102 static_cast<ComboBox*>(this)->clearIndexSelected();
103 }
104
105 void MemberObsolete<ComboBox>::insertItem(size_t _index, const UString& _name)
106 {
107 static_cast<ComboBox*>(this)->insertItemAt(_index, _name);
108 }
109 void MemberObsolete<ComboBox>::setItem(size_t _index, const UString& _item)
110 {
111 static_cast<ComboBox*>(this)->setItemNameAt(_index, _item);
112 }
113 const UString& MemberObsolete<ComboBox>::getItem(size_t _index)
114 {
115 return static_cast<ComboBox*>(this)->getItemNameAt(_index);
116 }
117 void MemberObsolete<ComboBox>::deleteItem(size_t _index)
118 {
119 static_cast<ComboBox*>(this)->removeItemAt(_index);
120 }
121 void MemberObsolete<ComboBox>::deleteAllItems()
122 {
123 static_cast<ComboBox*>(this)->removeAllItems();
124 }
125 size_t MemberObsolete<ComboBox>::getItemSelect()
126 {
127 return static_cast<ComboBox*>(this)->getIndexSelected();
128 }
129 void MemberObsolete<ComboBox>::resetItemSelect()
130 {
131 static_cast<ComboBox*>(this)->clearIndexSelected();
132 }
133 void MemberObsolete<ComboBox>::setItemSelect(size_t _index)
134 {
135 static_cast<ComboBox*>(this)->setIndexSelected(_index);
136 }
137
138 void MemberObsolete<ComboBox>::setMaxListHeight(int _value)
139 {
140 static_cast<ComboBox*>(this)->setMaxListLength(_value);
141 }
142 int MemberObsolete<ComboBox>::getMaxListHeight()
143 {
144 return static_cast<ComboBox*>(this)->getMaxListLength();
145 }
146
147
148 void MemberObsolete<EditBox>::showVScroll(bool _visible)
149 {
150 static_cast<EditBox*>(this)->setVisibleVScroll(_visible);
151 }
152 bool MemberObsolete<EditBox>::isShowVScroll()
153 {
154 return static_cast<EditBox*>(this)->isVisibleVScroll();
155 }
156 void MemberObsolete<EditBox>::showHScroll(bool _visible)
157 {
158 static_cast<EditBox*>(this)->setVisibleHScroll(_visible);
159 }
160 bool MemberObsolete<EditBox>::isShowHScroll()
161 {
162 return static_cast<EditBox*>(this)->isVisibleHScroll();
163 }
164
165 void MemberObsolete<EditBox>::setTextColour(size_t _start, size_t _count, const Colour& _colour)
166 {
167 static_cast<EditBox*>(this)->setTextIntervalColour(_start, _count, _colour);
168 }
169 void MemberObsolete<EditBox>::getTextSelect(size_t& _start, size_t& _end)
170 {
171 _start = static_cast<EditBox*>(this)->getTextSelectionStart();
172 _end = static_cast<EditBox*>(this)->getTextSelectionEnd();
173 }
174 UString MemberObsolete<EditBox>::getText(size_t _start, size_t _count)
175 {
176 return static_cast<EditBox*>(this)->getTextInterval(_start, _count);
177 }
178 void MemberObsolete<EditBox>::setTextSelect(size_t _start, size_t _end)
179 {
180 static_cast<EditBox*>(this)->setTextSelection(_start, _end);
181 }
182 void MemberObsolete<EditBox>::deleteTextSelect()
183 {
184 static_cast<EditBox*>(this)->deleteTextSelection();
185 }
186 UString MemberObsolete<EditBox>::getSelectedText()
187 {
188 return static_cast<EditBox*>(this)->getTextSelection();
189 }
190 bool MemberObsolete<EditBox>::isTextSelect()
191 {
192 return static_cast<EditBox*>(this)->isTextSelection();
193 }
194 void MemberObsolete<EditBox>::setTextSelectColour(const Colour& _colour)
195 {
196 static_cast<EditBox*>(this)->setTextSelectionColour(_colour);
197 }
198
199
200 size_t MemberObsolete<ItemBox>::getItemIndexSelected()
201 {
202 return static_cast<ItemBox*>(this)->getIndexSelected();
203 }
204 void MemberObsolete<ItemBox>::setItemSelectedAt(size_t _index)
205 {
206 static_cast<ItemBox*>(this)->setIndexSelected(_index);
207 }
208 void MemberObsolete<ItemBox>::clearItemSelected()
209 {
210 static_cast<ItemBox*>(this)->clearIndexSelected();
211 }
212
213 void MemberObsolete<ItemBox>::insertItem(size_t _index, Any _data)
214 {
215 static_cast<ItemBox*>(this)->insertItemAt(_index, _data);
216 }
217 void MemberObsolete<ItemBox>::setItemData(size_t _index, Any _data)
218 {
219 static_cast<ItemBox*>(this)->setItemDataAt(_index, _data);
220 }
221 void MemberObsolete<ItemBox>::deleteItem(size_t _index)
222 {
223 static_cast<ItemBox*>(this)->removeItemAt(_index);
224 }
225 void MemberObsolete<ItemBox>::deleteAllItems()
226 {
227 static_cast<ItemBox*>(this)->removeAllItems();
228 }
229 size_t MemberObsolete<ItemBox>::getItemSelect()
230 {
231 return static_cast<ItemBox*>(this)->getIndexSelected();
232 }
233 void MemberObsolete<ItemBox>::resetItemSelect()
234 {
235 static_cast<ItemBox*>(this)->clearIndexSelected();
236 }
237 void MemberObsolete<ItemBox>::setItemSelect(size_t _index)
238 {
239 static_cast<ItemBox*>(this)->setIndexSelected(_index);
240 }
241
242 Widget* MemberObsolete<ItemBox>::getWidgetDrop()
243 {
244 return static_cast<ItemBox*>(this)->getWidgetDrag();
245 }
246 void MemberObsolete<ItemBox>::resetDrop()
247 {
248 static_cast<ItemBox*>(this)->resetDrag();
249 }
250
251 void MemberObsolete<ItemBox>::setItemBoxAlignVert(bool _value)
252 {
253 static_cast<ItemBox*>(this)->setVerticalAlignment(_value);
254 }
255 bool MemberObsolete<ItemBox>::getItemBoxAlignVert()
256 {
257 return static_cast<ItemBox*>(this)->getVerticalAlignment();
258 }
259
260
261 size_t MemberObsolete<ListBox>::getItemIndexSelected()
262 {
263 return static_cast<ListBox*>(this)->getIndexSelected();
264 }
265 void MemberObsolete<ListBox>::setItemSelectedAt(size_t _index)
266 {
267 static_cast<ListBox*>(this)->setIndexSelected(_index);
268 }
269 void MemberObsolete<ListBox>::clearItemSelected()
270 {
271 static_cast<ListBox*>(this)->clearIndexSelected();
272 }
273
274 void MemberObsolete<ListBox>::insertItem(size_t _index, const UString& _item)
275 {
276 static_cast<ListBox*>(this)->insertItemAt(_index, _item);
277 }
278 void MemberObsolete<ListBox>::setItem(size_t _index, const UString& _item)
279 {
280 static_cast<ListBox*>(this)->setItemNameAt(_index, _item);
281 }
282 const UString& MemberObsolete<ListBox>::getItem(size_t _index)
283 {
284 return static_cast<ListBox*>(this)->getItemNameAt(_index);
285 }
286 void MemberObsolete<ListBox>::deleteItem(size_t _index)
287 {
288 static_cast<ListBox*>(this)->removeItemAt(_index);
289 }
290 void MemberObsolete<ListBox>::deleteAllItems()
291 {
292 static_cast<ListBox*>(this)->removeAllItems();
293 }
294 size_t MemberObsolete<ListBox>::findItem(const UString& _item)
295 {
296 return static_cast<ListBox*>(this)->findItemIndexWith(_item);
297 }
298 size_t MemberObsolete<ListBox>::getItemSelect()
299 {
300 return static_cast<ListBox*>(this)->getIndexSelected();
301 }
302 void MemberObsolete<ListBox>::resetItemSelect()
303 {
304 static_cast<ListBox*>(this)->clearIndexSelected();
305 }
306 void MemberObsolete<ListBox>::setItemSelect(size_t _index)
307 {
308 static_cast<ListBox*>(this)->setIndexSelected(_index);
309 }
310 void MemberObsolete<ListBox>::beginToIndex(size_t _index)
311 {
312 static_cast<ListBox*>(this)->beginToItemAt(_index);
313 }
314 void MemberObsolete<ListBox>::beginToStart()
315 {
316 static_cast<ListBox*>(this)->beginToItemFirst();
317 }
318 void MemberObsolete<ListBox>::beginToEnd()
319 {
320 static_cast<ListBox*>(this)->beginToItemLast();
321 }
322 void MemberObsolete<ListBox>::beginToSelect()
323 {
324 static_cast<ListBox*>(this)->beginToItemSelected();
325 }
326 bool MemberObsolete<ListBox>::isItemVisible(size_t _index, bool _fill)
327 {
328 return static_cast<ListBox*>(this)->isItemVisibleAt(_index, _fill);
329 }
330 bool MemberObsolete<ListBox>::isItemSelectVisible(bool _fill)
331 {
332 return static_cast<ListBox*>(this)->isItemSelectedVisible(_fill);
333 }
334
335
336 void MemberObsolete<MenuControl>::showMenu()
337 {
338 static_cast<MenuControl*>(this)->setVisible(true);
339 }
340 void MemberObsolete<MenuControl>::hideMenu()
341 {
342 static_cast<MenuControl*>(this)->setVisible(false);
343 }
344 bool MemberObsolete<MenuControl>::isShowMenu()
345 {
346 return static_cast<MenuControl*>(this)->getVisible();
347 }
348
349 void MemberObsolete<MenuControl>::showItemChildAt(size_t _index)
350 {
351 static_cast<MenuControl*>(this)->setItemChildVisibleAt(_index, true);
352 }
353 void MemberObsolete<MenuControl>::showItemChild(MenuItem* _item)
354 {
355 static_cast<MenuControl*>(this)->setItemChildVisible(_item, true);
356 }
357 void MemberObsolete<MenuControl>::hideItemChildAt(size_t _index)
358 {
359 static_cast<MenuControl*>(this)->setItemChildVisibleAt(_index, false);
360 }
361 void MemberObsolete<MenuControl>::hideItemChild(MenuItem* _item)
362 {
363 static_cast<MenuControl*>(this)->setItemChildVisible(_item, false);
364 }
365
366 void MemberObsolete<MenuControl>::setAlignVert(bool _value)
367 {
368 static_cast<MenuControl*>(this)->setVerticalAlignment(_value);
369 }
370 bool MemberObsolete<MenuControl>::getAlignVert()
371 {
372 return static_cast<MenuControl*>(this)->getVerticalAlignment();
373 }
374
375 void MemberObsolete<MenuItem>::showItemChild()
376 {
377 static_cast<MenuItem*>(this)->setItemChildVisible(true);
378 }
379 void MemberObsolete<MenuItem>::hideItemChild()
380 {
381 static_cast<MenuItem*>(this)->setItemChildVisible(false);
382 }
383
384
385 size_t MemberObsolete<MultiListBox>::getItemIndexSelected()
386 {
387 return static_cast<MultiListBox*>(this)->getIndexSelected();
388 }
389 void MemberObsolete<MultiListBox>::setItemSelectedAt(size_t _index)
390 {
391 static_cast<MultiListBox*>(this)->setIndexSelected(_index);
392 }
393 void MemberObsolete<MultiListBox>::clearItemSelected()
394 {
395 static_cast<MultiListBox*>(this)->clearIndexSelected();
396 }
397
398 size_t MemberObsolete<MultiListBox>::findItem(size_t _column, const UString& _name)
399 {
400 return static_cast<MultiListBox*>(this)->findSubItemWith(_column, _name);
401 }
402 const UString& MemberObsolete<MultiListBox>::getSubItem(size_t _column, size_t _index)
403 {
404 return static_cast<MultiListBox*>(this)->getSubItemNameAt(_column, _index);
405 }
406 void MemberObsolete<MultiListBox>::setSubItem(size_t _column, size_t _index, const UString& _name)
407 {
408 static_cast<MultiListBox*>(this)->setSubItemNameAt(_column, _index, _name);
409 }
410 void MemberObsolete<MultiListBox>::deleteColumn(size_t _column)
411 {
412 static_cast<MultiListBox*>(this)->removeColumnAt(_column);
413 }
414 void MemberObsolete<MultiListBox>::deleteAllColumns()
415 {
416 static_cast<MultiListBox*>(this)->removeAllColumns();
417 }
418 int MemberObsolete<MultiListBox>::getColumnWidth(size_t _column)
419 {
420 return static_cast<MultiListBox*>(this)->getColumnWidthAt(_column);
421 }
422 const UString& MemberObsolete<MultiListBox>::getColumnName(size_t _column)
423 {
424 return static_cast<MultiListBox*>(this)->getColumnNameAt(_column);
425 }
426 void MemberObsolete<MultiListBox>::setColumnWidth(size_t _column, int _width)
427 {
428 static_cast<MultiListBox*>(this)->setColumnWidthAt(_column, _width);
429 }
430 void MemberObsolete<MultiListBox>::addColumn(int _width, const UString& _name)
431 {
432 static_cast<MultiListBox*>(this)->addColumn(_name, _width);
433 }
434 void MemberObsolete<MultiListBox>::setColumnName(size_t _column, const UString& _name)
435 {
436 static_cast<MultiListBox*>(this)->setColumnNameAt(_column, _name);
437 }
438 void MemberObsolete<MultiListBox>::insertColumn(size_t _column, int _width, const UString& _name)
439 {
440 static_cast<MultiListBox*>(this)->insertColumnAt(_column, _name, _width);
441 }
442 size_t MemberObsolete<MultiListBox>::getItemSelect()
443 {
444 return static_cast<MultiListBox*>(this)->getIndexSelected();
445 }
446 void MemberObsolete<MultiListBox>::resetItemSelect()
447 {
448 static_cast<MultiListBox*>(this)->clearIndexSelected();
449 }
450 void MemberObsolete<MultiListBox>::setItemSelect(size_t _index)
451 {
452 static_cast<MultiListBox*>(this)->setIndexSelected(_index);
453 }
454 void MemberObsolete<MultiListBox>::insertItem(size_t _index, const UString& _name)
455 {
456 static_cast<MultiListBox*>(this)->insertItemAt(_index, _name);
457 }
458 void MemberObsolete<MultiListBox>::setItem(size_t _index, const UString& _name)
459 {
460 static_cast<MultiListBox*>(this)->setItemNameAt(_index, _name);
461 }
462 const UString& MemberObsolete<MultiListBox>::getItem(size_t _index)
463 {
464 return static_cast<MultiListBox*>(this)->getItemNameAt(_index);
465 }
466 void MemberObsolete<MultiListBox>::deleteItem(size_t _index)
467 {
468 static_cast<MultiListBox*>(this)->removeItemAt(_index);
469 }
470 void MemberObsolete<MultiListBox>::deleteAllItems()
471 {
472 static_cast<MultiListBox*>(this)->removeAllItems();
473 }
474
475
476 void MemberObsolete<ProgressBar>::setProgressStartPoint(Align _value)
477 {
478 if (_value == Align::Right)
479 static_cast<ProgressBar*>(this)->setFlowDirection(FlowDirection::RightToLeft);
480 else if (_value == Align::Top)
481 static_cast<ProgressBar*>(this)->setFlowDirection(FlowDirection::TopToBottom);
482 else if (_value == Align::Bottom)
483 static_cast<ProgressBar*>(this)->setFlowDirection(FlowDirection::BottomToTop);
484 else
485 static_cast<ProgressBar*>(this)->setFlowDirection(FlowDirection::LeftToRight);
486 }
487
488 Align MemberObsolete<ProgressBar>::getProgressStartPoint()
489 {
490 if (static_cast<ProgressBar*>(this)->getFlowDirection() == FlowDirection::RightToLeft)
491 return Align::Right;
492 else if (static_cast<ProgressBar*>(this)->getFlowDirection() == FlowDirection::TopToBottom)
493 return Align::Top;
494 else if (static_cast<ProgressBar*>(this)->getFlowDirection() == FlowDirection::BottomToTop)
495 return Align::Bottom;
496
497 return Align::Left;
498 }
499
500
501 void MemberObsolete<ScrollView>::showVScroll(bool _visible)
502 {
503 static_cast<ScrollView*>(this)->setVisibleVScroll(_visible);
504 }
505 bool MemberObsolete<ScrollView>::isShowVScroll()
506 {
507 return static_cast<ScrollView*>(this)->isVisibleVScroll();
508 }
509 void MemberObsolete<ScrollView>::showHScroll(bool _visible)
510 {
511 static_cast<ScrollView*>(this)->setVisibleHScroll(_visible);
512 }
513 bool MemberObsolete<ScrollView>::isShowHScroll()
514 {
515 return static_cast<ScrollView*>(this)->isVisibleHScroll();
516 }
517
518
519 int MemberObsolete<TabControl>::getSheetButtonWidthIndex(size_t _index)
520 {
521 return static_cast<TabControl*>(this)->getButtonWidthAt(_index);
522 }
523 int MemberObsolete<TabControl>::getSheetButtonWidth(TabItem* _sheet)
524 {
525 return static_cast<TabControl*>(this)->getButtonWidth(_sheet);
526 }
527 void MemberObsolete<TabControl>::setSheetButtonWidthIndex(size_t _index, int _width)
528 {
529 static_cast<TabControl*>(this)->setButtonWidthAt(_index, _width);
530 }
531 void MemberObsolete<TabControl>::setSheetButtonWidth(TabItem* _sheet, int _width)
532 {
533 static_cast<TabControl*>(this)->setButtonWidth(_sheet, _width);
534 }
535 void MemberObsolete<TabControl>::showBarButton(size_t _index)
536 {
537 static_cast<TabControl*>(this)->beginToItemAt(_index);
538 }
539 void MemberObsolete<TabControl>::showBarSelectButton()
540 {
541 static_cast<TabControl*>(this)->beginToItemSelected();
542 }
543 size_t MemberObsolete<TabControl>::getSheetCount()
544 {
545 return static_cast<TabControl*>(this)->getItemCount();
546 }
547 const UString& MemberObsolete<TabControl>::getSheetName(TabItem* _sheet)
548 {
549 return static_cast<TabControl*>(this)->getItemName(_sheet);
550 }
551 const UString& MemberObsolete<TabControl>::getSheetNameIndex(size_t _index)
552 {
553 return static_cast<TabControl*>(this)->getItemNameAt(_index);
554 }
555 TabItem* MemberObsolete<TabControl>::getSheet(size_t _index)
556 {
557 return static_cast<TabControl*>(this)->getItemAt(_index);
558 }
559 void MemberObsolete<TabControl>::setSheetNameIndex(size_t _index, const UString& _name, int _width)
560 {
561 static_cast<TabControl*>(this)->setItemNameAt(_index, _name);
562 }
563 void MemberObsolete<TabControl>::setSheetName(TabItem* _sheet, const UString& _name, int _width)
564 {
565 static_cast<TabControl*>(this)->setItemName(_sheet, _name);
566 }
567 TabItem* MemberObsolete<TabControl>::addSheet(const UString& _name, int _width)
568 {
569 return static_cast<TabControl*>(this)->addItem(_name, _width);
570 }
571 TabItem* MemberObsolete<TabControl>::insertSheet(size_t _index, const UString& _name, int _width)
572 {
573 return static_cast<TabControl*>(this)->insertItemAt(_index, _name);
574 }
575 void MemberObsolete<TabControl>::removeSheetIndex(size_t _index)
576 {
577 static_cast<TabControl*>(this)->removeItemAt(_index);
578 }
579 void MemberObsolete<TabControl>::removeSheet(TabItem* _sheet)
580 {
581 static_cast<TabControl*>(this)->removeItem(_sheet);
582 }
583 void MemberObsolete<TabControl>::selectSheetIndex(size_t _index, bool _smooth)
584 {
585 static_cast<TabControl*>(this)->setIndexSelected(_index);
586 }
587 void MemberObsolete<TabControl>::selectSheet(TabItem* _sheet, bool _smooth)
588 {
589 static_cast<TabControl*>(this)->setItemSelected(_sheet);
590 }
591 size_t MemberObsolete<TabControl>::getSelectSheetIndex()
592 {
593 return static_cast<TabControl*>(this)->getIndexSelected();
594 }
595
596 size_t MemberObsolete<TabControl>::getItemIndexSelected()
597 {
598 return static_cast<TabControl*>(this)->getIndexSelected();
599 }
600 void MemberObsolete<TabControl>::setItemSelectedAt(size_t _index)
601 {
602 static_cast<TabControl*>(this)->setIndexSelected(_index);
603 }
604
605
606 bool MemberObsolete<Widget>::isEnabled()
607 {
608 return static_cast<Widget*>(this)->getEnabled();
609 }
610 bool MemberObsolete<Widget>::isInheritsAlpha()
611 {
612 return static_cast<Widget*>(this)->getInheritsAlpha();
613 }
614 bool MemberObsolete<Widget>::isNeedKeyFocus()
615 {
616 return static_cast<Widget*>(this)->getNeedKeyFocus();
617 }
618 bool MemberObsolete<Widget>::isNeedMouseFocus()
619 {
620 return static_cast<Widget*>(this)->getNeedMouseFocus();
621 }
622 bool MemberObsolete<Widget>::isInheritsPick()
623 {
624 return static_cast<Widget*>(this)->getInheritsPick();
625 }
626 bool MemberObsolete<Widget>::isVisible()
627 {
628 return static_cast<Widget*>(this)->getVisible();
629 }
630
631
632 void MemberObsolete<Window>::showSmooth(bool _reset)
633 {
634 static_cast<Window*>(this)->setVisibleSmooth(true);
635 }
636 void MemberObsolete<Window>::hideSmooth()
637 {
638 static_cast<Window*>(this)->setVisibleSmooth(false);
639 }
640 void MemberObsolete<Window>::setMinMax(const IntRect& _minmax)
641 {
642 static_cast<Window*>(this)->setMinSize(_minmax.left, _minmax.top);
643 static_cast<Window*>(this)->setMaxSize(_minmax.right, _minmax.bottom);
644 }
645 void MemberObsolete<Window>::setMinMax(int _min_w, int _min_h, int _max_w, int _max_h)
646 {
647 static_cast<Window*>(this)->setMinSize(_min_w, _min_h);
648 static_cast<Window*>(this)->setMaxSize(_max_w, _max_h);
649 }
650 IntRect MemberObsolete<Window>::getMinMax()
651 {
652 return IntRect(static_cast<Window*>(this)->getMinSize().width, static_cast<Window*>(this)->getMinSize().height, static_cast<Window*>(this)->getMaxSize().width, static_cast<Window*>(this)->getMaxSize().height);
653 }
654
655 bool MemberObsolete<FontManager>::load(const std::string& _file)
656 {
657 return ResourceManager::getInstance().load(_file);
658 }
659
660 void MemberObsolete<Gui>::destroyWidgetsVector(VectorWidgetPtr& _widgets)
661 {
662 static_cast<Gui*>(this)->destroyWidgets(_widgets);
663 }
664
665 bool MemberObsolete<Gui>::injectMouseMove( int _absx, int _absy, int _absz)
666 {
667 return InputManager::getInstance().injectMouseMove(_absx, _absy, _absz);
668 }
669 bool MemberObsolete<Gui>::injectMousePress( int _absx, int _absy, MouseButton _id )
670 {
671 return InputManager::getInstance().injectMousePress(_absx, _absy, _id);
672 }
673 bool MemberObsolete<Gui>::injectMouseRelease( int _absx, int _absy, MouseButton _id )
674 {
675 return InputManager::getInstance().injectMouseRelease(_absx, _absy, _id);
676 }
677 bool MemberObsolete<Gui>::injectKeyPress(KeyCode _key, Char _text)
678 {
679 return InputManager::getInstance().injectKeyPress(_key, _text);
680 }
681 bool MemberObsolete<Gui>::injectKeyRelease(KeyCode _key)
682 {
683 return InputManager::getInstance().injectKeyRelease(_key);
684 }
685
686 void MemberObsolete<Gui>::hidePointer()
687 {
688 PointerManager::getInstance().setVisible(false);
689 }
690 void MemberObsolete<Gui>::showPointer()
691 {
692 PointerManager::getInstance().setVisible(true);
693 }
694 bool MemberObsolete<Gui>::isShowPointer()
695 {
696 return PointerManager::getInstance().isVisible();
697 }
698
699 bool MemberObsolete<Gui>::load(const std::string& _file)
700 {
701 return ResourceManager::getInstance().load(_file);
702 }
703
704 const IntSize& MemberObsolete<Gui>::getViewSize()
705 {
706 return RenderManager::getInstance().getViewSize();
707 }
708 int MemberObsolete<Gui>::getViewWidth()
709 {
710 return RenderManager::getInstance().getViewSize().width;
711 }
712 int MemberObsolete<Gui>::getViewHeight()
713 {
714 return RenderManager::getInstance().getViewSize().height;
715 }
716
717 void MemberObsolete<Gui>::setVisiblePointer(bool _value)
718 {
719 PointerManager::getInstance().setVisible(_value);
720 }
721 bool MemberObsolete<Gui>::isVisiblePointer()
722 {
723 return PointerManager::getInstance().isVisible();
724 }
725
726 void MemberObsolete<Gui>::_injectFrameEntered(float _time)
727 {
728 Gui::getInstance().frameEvent(_time);
729 }
730
731 void MemberObsolete<Gui>::_resizeWindow(const IntSize& _size)
732 {
733 LayerManager::getInstance().resizeView(_size);
734 }
735
736 const IntPoint& MemberObsolete<InputManager>::getLastLeftPressed() const
737 {
738 return InputManager::getInstance().getLastPressedPosition(MouseButton::Left);
739 }
740
741 const IntPoint& MemberObsolete<InputManager>::getLastRightPressed() const
742 {
743 return InputManager::getInstance().getLastPressedPosition(MouseButton::Right);
744 }
745
746 bool MemberObsolete<LanguageManager>::load(const std::string& _file)
747 {
748 return ResourceManager::getInstance().load(_file);
749 }
750
751 bool MemberObsolete<LayerManager>::load(const std::string& _file)
752 {
753 return ResourceManager::getInstance().load(_file);
754 }
755
756 VectorWidgetPtr MemberObsolete<LayoutManager>::load(const std::string& _file)
757 {
758 return static_cast<LayoutManager*>(this)->loadLayout(_file);
759 }
760
761 bool MemberObsolete<PluginManager>::load(const std::string& _file)
762 {
763 return ResourceManager::getInstance().load(_file);
764 }
765
766 void MemberObsolete<PointerManager>::setDeafultPointer(const std::string& _value)
767 {
768 static_cast<PointerManager*>(this)->setDefaultPointer(_value);
769 }
770 void MemberObsolete<PointerManager>::show()
771 {
772 static_cast<PointerManager*>(this)->setVisible(true);
773 }
774 void MemberObsolete<PointerManager>::hide()
775 {
776 static_cast<PointerManager*>(this)->setVisible(false);
777 }
778 bool MemberObsolete<PointerManager>::isShow()
779 {
780 return static_cast<PointerManager*>(this)->isVisible();
781 }
782 bool MemberObsolete<PointerManager>::load(const std::string& _file)
783 {
784 return ResourceManager::getInstance().load(_file);
785 }
786
787 size_t MemberObsolete<ResourceManager>::getResourceCount()
788 {
789 return static_cast<ResourceManager*>(this)->getCount();
790 }
791 IResourcePtr MemberObsolete<ResourceManager>::getResource(const std::string& _name, bool _throw)
792 {
793 return static_cast<ResourceManager*>(this)->getByName(_name, _throw);
794 }
795
796 ResourceSkin* MemberObsolete<SkinManager>::getSkin(const std::string& _name)
797 {
798 return static_cast<SkinManager*>(this)->getByName(_name);
799 }
800 bool MemberObsolete<SkinManager>::load(const std::string& _file)
801 {
802 return ResourceManager::getInstance().load(_file);
803 }
804
805
806 void MemberObsolete<WidgetManager>::destroyWidgetsVector(VectorWidgetPtr& _widgets)
807 {
808 static_cast<WidgetManager*>(this)->destroyWidgets(_widgets);
809 }
810 Widget* MemberObsolete<WidgetManager>::findWidgetT(const std::string& _name, bool _throw)
811 {
812 return Gui::getInstance().findWidgetT(_name, _throw);
813 }
814 Widget* MemberObsolete<WidgetManager>::findWidgetT(const std::string& _name, const std::string& _prefix, bool _throw)
815 {
816 return Gui::getInstance().findWidgetT(_name, _prefix, _throw);
817 }
818 void MemberObsolete<WidgetManager>::parse(Widget* _widget, const std::string& _key, const std::string& _value)
819 {
820 _widget->setProperty(_key, _value);
821 }
822
823
824 #endif // MYGUI_DONT_USE_OBSOLETE
825
826 #ifndef MYGUI_DONT_USE_OBSOLETE
827
828 std::string convertAlignToDirection(const std::string& _value)
829 {
830 Align align = utility::parseValue<Align>(_value);
831 if (align == Align::Right)
832 return FlowDirection(FlowDirection::RightToLeft).print();
833 else if (align == Align::Top)
834 return FlowDirection(FlowDirection::TopToBottom).print();
835 else if (align == Align::Bottom)
836 return FlowDirection(FlowDirection::BottomToTop).print();
837 return FlowDirection(FlowDirection::LeftToRight).print();
838 }
839
840 std::string convertRectToCoord(const std::string& _value)
841 {
842 IntRect rect = IntRect::parse(_value);
843 IntCoord coord(rect.left, rect.top, rect.width(), rect.height());
844 return coord.print();
845 }
846
847 typedef std::set<std::string> SetString;
848 static MapString mPropertyRename;
849 static SetString mPropertyIgnore;
850 static MapString mSkinRename;
851
852 #endif // MYGUI_DONT_USE_OBSOLETE
853
854 bool BackwardCompatibility::isIgnoreProperty(const std::string& _key)
855 {
856 #ifndef MYGUI_DONT_USE_OBSOLETE
857 if (mPropertyIgnore.find(_key) != mPropertyIgnore.end())
858 return true;
859 #endif // MYGUI_DONT_USE_OBSOLETE
860 return false;
861 }
862
863 bool BackwardCompatibility::checkProperty(Widget* _owner, std::string& _key, std::string& _value)
864 {
865 #ifndef MYGUI_DONT_USE_OBSOLETE
866 if (mPropertyIgnore.find(_key) != mPropertyIgnore.end())
867 return false;
868
869 MapString::iterator item = mPropertyRename.find(_key);
870 if (item != mPropertyRename.end())
871 {
872 MYGUI_LOG(Warning, (*item).first << " is deprecated, use " << (*item).second << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
873 _key = (*item).second;
874 }
875 else if (_key == "Progress_StartPoint")
876 {
877 MYGUI_LOG(Warning, "Progress_StartPoint is deprecated, use Progress_FlowDirection" << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
878 _key = "Progress_FlowDirection";
879 _value = convertAlignToDirection(_value);
880 }
881 else if (_key == "ComboBox_AddItem")
882 {
883 MYGUI_LOG(Warning, "ComboBox_AddItem is deprecated" << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
884 ComboBox* widget = _owner->castType<ComboBox>(false);
885 if (widget != nullptr)
886 widget->addItem(_value);
887 return false;
888 }
889 else if (_key == "List_AddItem")
890 {
891 MYGUI_LOG(Warning, "List_AddItem is deprecated" << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
892 ListBox* widget = _owner->castType<ListBox>(false);
893 if (widget != nullptr)
894 widget->addItem(_value);
895 return false;
896 }
897 else if (_key == "Tab_AddSheet")
898 {
899 MYGUI_LOG(Warning, "Tab_AddSheet is deprecated" << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
900 TabControl* widget = _owner->castType<TabControl>(false);
901 if (widget != nullptr)
902 widget->addItem(_value);
903 return false;
904 }
905 else if (_key == "Tab_AddItem")
906 {
907 MYGUI_LOG(Warning, "Tab_AddItem is deprecated" << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
908 TabControl* widget = _owner->castType<TabControl>(false);
909 if (widget != nullptr)
910 widget->addItem(_value);
911 return false;
912 }
913 else if (_key == "Window_MinMax")
914 {
915 MYGUI_LOG(Warning, "Window_MinMax is deprecated, use Window_MinSize or Window_MaxSize" << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
916 Window* widget = _owner->castType<Window>(false);
917 if (widget != nullptr)
918 {
919 IntRect rect = IntRect::parse(_value);
920 widget->setMinSize(rect.left, rect.top);
921 widget->setMaxSize(rect.right, rect.bottom);
922 }
923 return false;
924 }
925 else if (_key == "ImageRect")
926 {
927 MYGUI_LOG(Warning, "ImageRect is deprecated, use ImageCoord" << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
928 _key = "ImageCoord";
929 _value = convertRectToCoord(_value);
930 }
931 else if (_key == "StartPoint")
932 {
933 MYGUI_LOG(Warning, "StartPoint is deprecated, use FlowDirection" << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
934 _key = "FlowDirection";
935 _value = convertAlignToDirection(_value);
936 }
937
938 #endif // MYGUI_DONT_USE_OBSOLETE
939 return true;
940 }
941
942 void BackwardCompatibility::initialise()
943 {
944 #ifndef MYGUI_DONT_USE_OBSOLETE
945 mPropertyRename["Widget_Caption"] = "Caption";
946 mPropertyRename["Button_Pressed"] = "StateSelected";
947 mPropertyRename["ButtonPressed"] = "StateSelected";
948 mPropertyRename["StateCheck"] = "StateSelected";
949 mPropertyRename["Edit_ShowVScroll"] = "VisibleVScroll";
950 mPropertyRename["Edit_ShowHScroll"] = "VisibleHScroll";
951 mPropertyRename["ScrollView_VScroll"] = "VisibleVScroll";
952 mPropertyRename["ScrollView_HScroll"] = "VisibleHScroll";
953 mPropertyRename["Progress_Position"] = "RangePosition";
954 mPropertyRename["Scroll_Position"] = "RangePosition";
955 mPropertyRename["Tab_SelectSheet"] = "SelectItem";
956 mPropertyRename["Image_Texture"] = "ImageTexture";
957 mPropertyRename["Image_Coord"] = "ImageRegion";
958 mPropertyRename["Image_Tile"] = "ImageTile";
959 mPropertyRename["Image_Index"] = "ImageIndex";
960 mPropertyRename["Image_Resource"] = "ImageResource";
961 mPropertyRename["Image_Group"] = "ImageGroup";
962 mPropertyRename["Image_Name"] = "ImageName";
963 mPropertyRename["MenuItem_Id"] = "MenuItemId";
964 mPropertyRename["MenuItem_Type"] = "MenuItemType";
965 mPropertyRename["Combo_MaxLength"] = "MaxListLength";
966 mPropertyRename["AlignText"] = "TextAlign";
967 mPropertyRename["ToStick"] = "Snap";
968 mPropertyRename["ListSmoothShow"] = "SmoothShow";
969 mPropertyRename["HeightList"] = "MaxListLength";
970 mPropertyRename["AlignVert"] = "VerticalAlignment";
971
972 mPropertyIgnore.insert("DragLayer");
973 mPropertyIgnore.insert("SkinLine");
974 mPropertyIgnore.insert("HeightLine");
975 mPropertyIgnore.insert("SkinLine");
976 mPropertyIgnore.insert("HeightLine");
977 mPropertyIgnore.insert("SeparatorHeight");
978 mPropertyIgnore.insert("SeparatorSkin");
979 mPropertyIgnore.insert("SubmenuImageSize");
980 mPropertyIgnore.insert("SubMenuSkin");
981 mPropertyIgnore.insert("SubMenuLayer");
982 mPropertyIgnore.insert("DistanceButton");
983 mPropertyIgnore.insert("ButtonSkin");
984 mPropertyIgnore.insert("ButtonType");
985 mPropertyIgnore.insert("ButtonSize");
986 mPropertyIgnore.insert("ButtonOffset");
987 mPropertyIgnore.insert("DefaultLayer");
988 mPropertyIgnore.insert("FadeSkin");
989 mPropertyIgnore.insert("FadeLayer");
990 mPropertyIgnore.insert("SkinButton");
991 mPropertyIgnore.insert("HeightButton");
992 mPropertyIgnore.insert("SkinList");
993 mPropertyIgnore.insert("SkinButtonEmpty");
994 mPropertyIgnore.insert("WidthSeparator");
995 mPropertyIgnore.insert("SkinSeparator");
996 mPropertyIgnore.insert("TrackSkin");
997 mPropertyIgnore.insert("TrackWidth");
998 mPropertyIgnore.insert("TrackMin");
999 mPropertyIgnore.insert("TrackStep");
1000 mPropertyIgnore.insert("TrackFill");
1001 mPropertyIgnore.insert("OffsetBar");
1002 mPropertyIgnore.insert("ButtonSkin");
1003 mPropertyIgnore.insert("EmptyBarSkin");
1004 mPropertyIgnore.insert("TrackRangeMargins");
1005 mPropertyIgnore.insert("MinTrackSize");
1006 mPropertyIgnore.insert("MainMove");
1007 mPropertyIgnore.insert("LevelOffset");
1008 mPropertyIgnore.insert("State");
1009
1010 mSkinRename["StaticImage"] = "ImageBox";
1011 mSkinRename["StaticText"] = "TextBox";
1012 mSkinRename["HScroll"] = "ScrollBarH";
1013 mSkinRename["VScroll"] = "ScrollBarV";
1014 mSkinRename["ItemBoxH"] = "ItemBox";
1015 mSkinRename["ItemBoxV"] = "ItemBox";
1016 mSkinRename["VSlider"] = "SliderV";
1017 mSkinRename["HSlider"] = "SliderH";
1018 mSkinRename["Progress"] = "ProgressBar";
1019 mSkinRename["ProgressFill"] = "ProgressBarFill";
1020 mSkinRename["List"] = "ListBox";
1021 mSkinRename["MultiList"] = "MultiListBox";
1022 mSkinRename["Edit"] = "EditBox";
1023 mSkinRename["EditStretch"] = "EditBoxStretch";
1024 mSkinRename["EditEmpty"] = "EditBoxEmpty";
1025 mSkinRename["RadioBox"] = "RadioButton";
1026 mSkinRename["Tab"] = "TabControl";
1027 mSkinRename["WordWrap"] = "WordWrapEmpty";
1028 mSkinRename["WordWrapSimple"] = "WordWrapEmpty";
1029 mSkinRename["ButtonSmall"] = "Button";
1030 mSkinRename["ButtonImageText"] = "ButtonImage";
1031
1032 mSkinRename["TileClient"] = "ClientTileSkin";
1033 mSkinRename["DefaultClient"] = "ClientDefaultSkin";
1034 mSkinRename["Panel"] = "PanelSkin";
1035 mSkinRename["PanelSmall"] = "PanelSkin";
1036 mSkinRename["Separator1"] = "SepUpVSkin";
1037 mSkinRename["Separator2"] = "SepDownVSkin";
1038 mSkinRename["Separator3"] = "SepUpHSkin";
1039 mSkinRename["Separator4"] = "SepDownHSkin";
1040 mSkinRename["MarkerWhite"] = "WhiteSkin";
1041 mSkinRename["ButtonLeft"] = "ButtonLeftSkin";
1042 mSkinRename["ButtonRight"] = "ButtonRightSkin";
1043 mSkinRename["ButtonUp"] = "ButtonUpSkin";
1044 mSkinRename["ButtonDown"] = "ButtonDownSkin";
1045 mSkinRename["ButtonV"] = "ButtonAcceptSkin";
1046 mSkinRename["ButtonX"] = "ButtonCloseSkin";
1047 mSkinRename["ButtonMinusPlus"] = "ButtonExpandSkin";
1048 #endif // MYGUI_DONT_USE_OBSOLETE
1049 }
1050
1051 std::string BackwardCompatibility::getPropertyRename(const std::string& _propertyName)
1052 {
1053 #ifndef MYGUI_DONT_USE_OBSOLETE
1054 MapString::const_iterator item = mPropertyRename.find(_propertyName);
1055 if (item != mPropertyRename.end())
1056 return (*item).second;
1057 #endif // MYGUI_DONT_USE_OBSOLETE
1058 return _propertyName;
1059 }
1060
1061 std::string BackwardCompatibility::getFactoryRename(const std::string& _categoryName, const std::string& _factoryName)
1062 {
1063 #ifndef MYGUI_DONT_USE_OBSOLETE
1064 if (_categoryName == "Widget")
1065 {
1066 if (_factoryName == "HScroll")
1067 {
1068 MYGUI_LOG(Warning, "HScroll factory is deprecated, use " << ScrollBar::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1069 }
1070 else if (_factoryName == "VScroll")
1071 {
1072 MYGUI_LOG(Warning, "VScroll factory is deprecated, use " << ScrollBar::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1073 }
1074 else if (_factoryName == "RenderBox")
1075 {
1076 MYGUI_LOG(Warning, "RenderBox factory is deprecated, use " << Canvas::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1077 }
1078 else if (_factoryName == "Sheet")
1079 {
1080 MYGUI_LOG(Warning, "Sheet factory is deprecated, use " << TabItem::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1081 }
1082 else if (_factoryName == "StaticImage")
1083 {
1084 MYGUI_LOG(Warning, "StaticImage factory is deprecated, use " << ImageBox::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1085 }
1086 else if (_factoryName == "StaticText")
1087 {
1088 MYGUI_LOG(Warning, "StaticText factory is deprecated, use " << TextBox::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1089 }
1090 else if (_factoryName == "Progress")
1091 {
1092 MYGUI_LOG(Warning, "Progress factory is deprecated, use " << ProgressBar::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1093 }
1094 else if (_factoryName == "List")
1095 {
1096 MYGUI_LOG(Warning, "List factory is deprecated, use " << ListBox::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1097 }
1098 else if (_factoryName == "Edit")
1099 {
1100 MYGUI_LOG(Warning, "Edit factory is deprecated, use " << EditBox::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1101 }
1102 else if (_factoryName == "Tab")
1103 {
1104 MYGUI_LOG(Warning, "Tab factory is deprecated, use " << TabControl::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1105 }
1106 else if (_factoryName == "MultiList")
1107 {
1108 MYGUI_LOG(Warning, "MultiList factory is deprecated, use " << MultiListBox::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1109 }
1110 else if (_factoryName == "MenuCtrl")
1111 {
1112 MYGUI_LOG(Warning, "MenuCtrl factory is deprecated, use " << MenuControl::getClassTypeName() << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1113 }
1114 }
1115 #endif // MYGUI_DONT_USE_OBSOLETE
1116 return _factoryName;
1117 }
1118
1119 std::string BackwardCompatibility::getSkinRename(const std::string& _skinName)
1120 {
1121 #ifndef MYGUI_DONT_USE_OBSOLETE
1122 MapString::iterator item = mSkinRename.find(_skinName);
1123 if (item != mSkinRename.end())
1124 {
1125 MYGUI_LOG(Warning, (*item).first << " skin is deprecated, use " << (*item).second << " [" << LayoutManager::getInstance().getCurrentLayout() << "]");
1126 return (*item).second;
1127 }
1128 #endif // MYGUI_DONT_USE_OBSOLETE
1129 return _skinName;
1130 }
1131
1132 void BackwardCompatibility::shutdown()
1133 {
1134 #ifndef MYGUI_DONT_USE_OBSOLETE
1135 mPropertyRename.clear();
1136 #endif // MYGUI_DONT_USE_OBSOLETE
1137 }
1138
1139 void BackwardCompatibility::registerWidgetTypes()
1140 {
1141 #ifndef MYGUI_DONT_USE_OBSOLETE
1142 FactoryManager& factory = FactoryManager::getInstance();
1143 factory.registerFactory<HScroll>("Widget");
1144 factory.registerFactory<VScroll>("Widget");
1145 factory.registerFactory<Canvas>("Widget", "RenderBox");
1146 factory.registerFactory<TabItem>("Widget", "Sheet");
1147 factory.registerFactory<ImageBox>("Widget", "StaticImage");
1148 factory.registerFactory<TextBox>("Widget", "StaticText");
1149 factory.registerFactory<ProgressBar>("Widget", "Progress");
1150 factory.registerFactory<ListBox>("Widget", "List");
1151 factory.registerFactory<EditBox>("Widget", "Edit");
1152 factory.registerFactory<TabControl>("Widget", "Tab");
1153 factory.registerFactory<MultiListBox>("Widget", "MultiList");
1154 factory.registerFactory<MenuControl>("Widget", "MenuCtrl");
1155 #endif // MYGUI_DONT_USE_OBSOLETE
1156 }
1157
1158 } // namespace MyGUI
MyGUI::types::TCoord
Definition: MyGUI_TCoord.h:35
MyGUI::PointerManager
Definition: MyGUI_PointerManager.h:35
MyGUI::ProgressBar::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_ProgressBar.h:37
MyGUI::Widget
Definition: MyGUI_Widget.h:41
MyGUI::FlowDirection::BottomToTop
Definition: MyGUI_FlowDirection.h:38
MyGUI::types::TCoord::print
std::string print() const
Definition: MyGUI_TCoord.h:215
MyGUI::ComboBox
Definition: MyGUI_ComboBox.h:40
MyGUI::IntRect
types::TRect< int > IntRect
Definition: MyGUI_Types.h:47
MyGUI::ScrollBar::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_ScrollBar.h:37
MyGUI_FactoryManager.h
MyGUI::TabItem
Definition: MyGUI_TabItem.h:32
MyGUI_Canvas.h
MyGUI::ResourceSkin
Definition: MyGUI_ResourceSkin.h:36
MyGUI::ImageBox
Definition: MyGUI_ImageBox.h:33
MyGUI_ItemBox.h
MyGUI::types::TPoint< int >
MyGUI::LayoutManager
Definition: MyGUI_LayoutManager.h:37
MyGUI::Align::Bottom
Definition: MyGUI_Align.h:47
MyGUI_TabControl.h
MyGUI::ImageBox::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_ImageBox.h:36
MyGUI::types::TRect::top
T top
Definition: MyGUI_TRect.h:36
MyGUI::types::TRect::height
T height() const
Definition: MyGUI_TRect.h:126
MyGUI_Precompiled.h
MyGUI::KeyCode
Definition: MyGUI_KeyCode.h:30
MyGUI::InputManager::getLastPressedPosition
const IntPoint & getLastPressedPosition(MouseButton _id) const
Definition: MyGUI_InputManager.cpp:645
MyGUI::mPropertyIgnore
static SetString mPropertyIgnore
Definition: MyGUI_BackwardCompatibility.cpp:849
MyGUI::ItemBox
Definition: MyGUI_ItemBox.h:41
MyGUI::types::TSize< int >
MyGUI::Singleton< ResourceManager >::getInstance
static ResourceManager & getInstance()
Definition: MyGUI_Singleton.h:53
MyGUI_WidgetManager.h
MyGUI::FlowDirection::LeftToRight
Definition: MyGUI_FlowDirection.h:35
MyGUI::TextBox::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_TextBox.h:34
MyGUI::HScroll
Definition: MyGUI_DeprecatedWidgets.h:57
MyGUI::InputManager::injectMouseMove
bool injectMouseMove(int _absx, int _absy, int _absz)
Definition: MyGUI_InputManager.cpp:94
MyGUI::Any
Definition: MyGUI_Any.h:81
MyGUI::ITEM_NONE
const size_t ITEM_NONE
Definition: MyGUI_Macros.h:32
MyGUI::FlowDirection::TopToBottom
Definition: MyGUI_FlowDirection.h:37
MyGUI::WidgetManager
Definition: MyGUI_WidgetManager.h:35
MyGUI::Gui::findWidgetT
Widget * findWidgetT(const std::string &_name, bool _throw=true)
Definition: MyGUI_Gui.cpp:207
MyGUI::InputManager::injectMousePress
bool injectMousePress(int _absx, int _absy, MouseButton _id)
Definition: MyGUI_InputManager.cpp:228
MyGUI::PointerManager::setVisible
void setVisible(bool _visible)
Definition: MyGUI_PointerManager.cpp:206
MyGUI_ListBox.h
MyGUI::Gui::frameEvent
void frameEvent(float _time)
Definition: MyGUI_Gui.cpp:345
MyGUI::Window::setMinSize
void setMinSize(const IntSize &_value)
Definition: MyGUI_Window.cpp:447
MyGUI::ListBox
Definition: MyGUI_ListBox.h:37
MyGUI_Button.h
MyGUI::BackwardCompatibility::initialise
static void initialise()
Definition: MyGUI_BackwardCompatibility.cpp:942
MyGUI::RenderManager::getViewSize
virtual const IntSize & getViewSize() const =0
MyGUI::MouseButton::Right
Definition: MyGUI_MouseButton.h:37
MyGUI::FlowDirection::RightToLeft
Definition: MyGUI_FlowDirection.h:36
MyGUI::MemberObsolete< Button >::setImageIndex
void setImageIndex(size_t _value)
Definition: MyGUI_BackwardCompatibility.cpp:79
MyGUI::mSkinRename
static MapString mSkinRename
Definition: MyGUI_BackwardCompatibility.cpp:850
MyGUI_LanguageManager.h
MyGUI::TabControl::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_TabControl.h:47
MyGUI_MultiListBox.h
MyGUI::Align::Top
Definition: MyGUI_Align.h:46
MyGUI_ProgressBar.h
MyGUI::types::TRect< int >::parse
static TRect< int > parse(const std::string &_value)
Definition: MyGUI_TRect.h:178
MyGUI::MouseButton
Definition: MyGUI_MouseButton.h:30
MyGUI::Button
Definition: MyGUI_Button.h:31
MyGUI::BackwardCompatibility::getSkinRename
static std::string getSkinRename(const std::string &_skinName)
Definition: MyGUI_BackwardCompatibility.cpp:1119
MyGUI::TabItem::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_TabItem.h:35
MyGUI::FactoryManager
Definition: MyGUI_FactoryManager.h:33
MyGUI_FontManager.h
MyGUI::convertRectToCoord
std::string convertRectToCoord(const std::string &_value)
Definition: MyGUI_BackwardCompatibility.cpp:840
MYGUI_LOG
#define MYGUI_LOG(level, text)
Definition: MyGUI_Diagnostic.h:38
MyGUI::types::TRect::left
T left
Definition: MyGUI_TRect.h:35
MyGUI::EditBox
Definition: MyGUI_EditBox.h:37
MyGUI::LayerManager::resizeView
void resizeView(const IntSize &_viewSize)
Definition: MyGUI_LayerManager.cpp:246
MyGUI::BackwardCompatibility::checkProperty
static bool checkProperty(Widget *_owner, std::string &_key, std::string &_value)
Definition: MyGUI_BackwardCompatibility.cpp:863
MyGUI::mPropertyRename
static MapString mPropertyRename
Definition: MyGUI_BackwardCompatibility.cpp:848
MyGUI_LayoutManager.h
MyGUI_RenderManager.h
MyGUI::FlowDirection
Definition: MyGUI_FlowDirection.h:31
MyGUI::InputManager::injectKeyRelease
bool injectKeyRelease(KeyCode _key)
Definition: MyGUI_InputManager.cpp:372
MyGUI::types::TRect< int >
MyGUI::ProgressBar
Definition: MyGUI_ProgressBar.h:33
MyGUI::types::TSize::width
T width
Definition: MyGUI_TSize.h:35
MyGUI::ResourceManager::load
bool load(const std::string &_file)
Definition: MyGUI_ResourceManager.cpp:77
MyGUI::ScrollView
Definition: MyGUI_ScrollView.h:32
MyGUI::VectorWidgetPtr
std::vector< Widget * > VectorWidgetPtr
Definition: MyGUI_WidgetDefines.h:33
MyGUI_ScrollView.h
MyGUI::Char
unsigned int Char
Definition: MyGUI_Types.h:66
MyGUI::MapString
std::map< std::string, std::string > MapString
Definition: MyGUI_Types.h:53
MyGUI::BackwardCompatibility::getFactoryRename
static std::string getFactoryRename(const std::string &_categoryName, const std::string &_factoryName)
Definition: MyGUI_BackwardCompatibility.cpp:1061
MyGUI_BackwardCompatibility.h
MyGUI::Align::Left
Definition: MyGUI_Align.h:42
MyGUI::Align::Right
Definition: MyGUI_Align.h:43
MyGUI_InputManager.h
MyGUI::ResourceManager
Definition: MyGUI_ResourceManager.h:36
MyGUI::PointerManager::isVisible
bool isVisible() const
Definition: MyGUI_PointerManager.cpp:361
MyGUI::EditBox::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_EditBox.h:42
MyGUI::IObject::castType
Type * castType(bool _throw=true)
Definition: MyGUI_IObject.h:33
MyGUI::TabControl::addItem
TabItem * addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
Definition: MyGUI_TabControl.cpp:666
MyGUI_ResourceManager.h
MyGUI_PluginManager.h
MyGUI::MouseButton::Left
Definition: MyGUI_MouseButton.h:36
MyGUI::BackwardCompatibility::isIgnoreProperty
static bool isIgnoreProperty(const std::string &_key)
Definition: MyGUI_BackwardCompatibility.cpp:854
MyGUI_ComboBox.h
MyGUI::FactoryManager::registerFactory
void registerFactory(const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate)
Definition: MyGUI_FactoryManager.cpp:55
MyGUI::Canvas::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_Canvas.h:40
MyGUI_TabItem.h
MyGUI::BackwardCompatibility::shutdown
static void shutdown()
Definition: MyGUI_BackwardCompatibility.cpp:1132
MyGUI_Widget.h
MyGUI::BackwardCompatibility::registerWidgetTypes
static void registerWidgetTypes()
Definition: MyGUI_BackwardCompatibility.cpp:1139
MyGUI::types::TRect::width
T width() const
Definition: MyGUI_TRect.h:121
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::TextBox
Definition: MyGUI_TextBox.h:31
MyGUI::Canvas
Definition: MyGUI_Canvas.h:36
MyGUI::MemberObsolete
Definition: MyGUI_DeprecatedTypes.h:28
MyGUI::InputManager::injectMouseRelease
bool injectMouseRelease(int _absx, int _absy, MouseButton _id)
Definition: MyGUI_InputManager.cpp:300
MyGUI::SkinManager
Definition: MyGUI_SkinManager.h:36
MyGUI_DeprecatedWidgets.h
MyGUI_Gui.h
MyGUI::Window::setMaxSize
void setMaxSize(const IntSize &_value)
Definition: MyGUI_Window.cpp:458
MyGUI::Align
Definition: MyGUI_Align.h:34
MyGUI::Window
Definition: MyGUI_Window.h:39
MyGUI::Colour
Definition: MyGUI_Colour.h:31
MyGUI::LayoutManager::getCurrentLayout
const std::string & getCurrentLayout() const
Definition: MyGUI_LayoutManager.cpp:118
MyGUI::ListBox::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_ListBox.h:42
MyGUI_Window.h
MyGUI::IResource
Definition: MyGUI_IResource.h:38
MyGUI::ComboBox::addItem
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
Definition: MyGUI_ComboBox.cpp:476
MyGUI::types::TSize::height
T height
Definition: MyGUI_TSize.h:36
MyGUI_EditBox.h
MyGUI::SetString
std::set< std::string > SetString
Definition: MyGUI_BackwardCompatibility.cpp:847
MyGUI::TabControl
Definition: MyGUI_TabControl.h:38
MyGUI::types::TRect::right
T right
Definition: MyGUI_TRect.h:37
MyGUI::InputManager::injectKeyPress
bool injectKeyPress(KeyCode _key, Char _text=0)
Definition: MyGUI_InputManager.cpp:353
MyGUI::types::TRect::bottom
T bottom
Definition: MyGUI_TRect.h:38
MyGUI::BackwardCompatibility::getPropertyRename
static std::string getPropertyRename(const std::string &_propertyName)
Definition: MyGUI_BackwardCompatibility.cpp:1051
MyGUI::ListBox::addItem
void addItem(const UString &_name, Any _data=Any::Null)
Add an item to the end of a array.
Definition: MyGUI_ListBox.cpp:959
MyGUI_PointerManager.h
MyGUI::FlowDirection::print
std::string print() const
Definition: MyGUI_FlowDirection.h:95
MyGUI_SkinManager.h
MyGUI::MultiListBox::getClassTypeName
static const std::string & getClassTypeName()
Definition: MyGUI_MultiListBox.h:50
MyGUI::Widget::setProperty
void setProperty(const std::string &_key, const std::string &_value)
Definition: MyGUI_Widget.cpp:1073
MyGUI::VScroll
Definition: MyGUI_DeprecatedWidgets.h:36
MyGUI::Gui
Definition: MyGUI_Gui.h:38
MyGUI::MemberObsolete< Button >::getImageIndex
size_t getImageIndex()
Definition: MyGUI_BackwardCompatibility.cpp:84
MyGUI::convertAlignToDirection
std::string convertAlignToDirection(const std::string &_value)
Definition: MyGUI_BackwardCompatibility.cpp:828