MyGUI  3.2.0
MyGUI_BackwardCompatibility.h
Go to the documentation of this file.
00001 
00006 /*
00007     This file is part of MyGUI.
00008 
00009     MyGUI is free software: you can redistribute it and/or modify
00010     it under the terms of the GNU Lesser General Public License as published by
00011     the Free Software Foundation, either version 3 of the License, or
00012     (at your option) any later version.
00013 
00014     MyGUI is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017     GNU Lesser General Public License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public License
00020     along with MyGUI.  If not, see <http://www.gnu.org/licenses/>.
00021 */
00022 #ifndef __MYGUI_BACKWARD_COMPATIBILITY_H__
00023 #define __MYGUI_BACKWARD_COMPATIBILITY_H__
00024 
00025 #include "MyGUI_Prerequest.h"
00026 #include "MyGUI_Colour.h"
00027 #include "MyGUI_ResourceSkin.h"
00028 #include "MyGUI_Any.h"
00029 #include "MyGUI_MouseButton.h"
00030 #include "MyGUI_KeyCode.h"
00031 #include "MyGUI_Macros.h"
00032 #include "MyGUI_WidgetDefines.h"
00033 #include "MyGUI_IResource.h"
00034 #include <map>
00035 #include <set>
00036 
00037 namespace MyGUI
00038 {
00039 
00040 #ifndef MYGUI_DONT_USE_OBSOLETE
00041 
00042     template <>
00043     class MYGUI_EXPORT MemberObsolete<Button>
00044     {
00045     public:
00046         MYGUI_OBSOLETE(" is deprecated, use : void Button::setStateSelected(bool _value)")
00047         void setButtonPressed(bool _value);
00048         MYGUI_OBSOLETE(" is deprecated, use : bool Button::getStateSelected()")
00049         bool getButtonPressed();
00050         MYGUI_OBSOLETE(" is deprecated, use : void Button::setStateSelected(bool _value)")
00051         void setStateCheck(bool _value);
00052         MYGUI_OBSOLETE(" is deprecated, use : bool Button::getStateSelected()")
00053         bool getStateCheck();
00054         MYGUI_OBSOLETE(" is deprecated")
00055         ImageBox* getStaticImage();
00056         MYGUI_OBSOLETE(" is deprecated, use : void Button::setImageName(const std::string& _name)")
00057         void setImageIndex(size_t _value);
00058         MYGUI_OBSOLETE(" is deprecated")
00059         size_t getImageIndex();
00060     };
00061 
00062     template <>
00063     class MYGUI_EXPORT MemberObsolete<ComboBox>
00064     {
00065     public:
00066         MYGUI_OBSOLETE(" is deprecated, use : size_t ComboBox::getIndexSelected()")
00067         size_t getItemIndexSelected();
00068         MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setIndexSelected(size_t _index)")
00069         void setItemSelectedAt(size_t _index);
00070         MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::clearIndexSelected()")
00071         void clearItemSelected();
00072 
00073         MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::insertItemAt(size_t _index, const UString& _name)")
00074         void insertItem(size_t _index, const UString& _name);
00075         MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setItemNameAt(size_t _index, const UString& _name)")
00076         void setItem(size_t _index, const UString& _item);
00077         MYGUI_OBSOLETE(" is deprecated, use : const UString& ComboBox::getItemNameAt(size_t _index)")
00078         const UString& getItem(size_t _index);
00079         MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::removeItemAt(size_t _index)")
00080         void deleteItem(size_t _index);
00081         MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::removeAllItems()")
00082         void deleteAllItems();
00083         MYGUI_OBSOLETE(" is deprecated, use : size_t ComboBox::getIndexSelected()")
00084         size_t getItemSelect();
00085         MYGUI_OBSOLETE(" is deprecated, use : void void ComboBox::clearIndexSelected()")
00086         void resetItemSelect();
00087         MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setIndexSelected(size_t _index)")
00088         void setItemSelect(size_t _index);
00089 
00090         MYGUI_OBSOLETE(" is deprecated, use : void ComboBox::setMaxListLength(int _value)")
00091         void setMaxListHeight(int _value);
00092         MYGUI_OBSOLETE(" is deprecated, use : int ComboBox::getMaxListLength()")
00093         int getMaxListHeight();
00094     };
00095 
00096     template <>
00097     class MYGUI_EXPORT MemberObsolete<EditBox>
00098     {
00099     public:
00100         MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setVisibleVScroll(bool _visible)")
00101         void showVScroll(bool _visible);
00102         MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isVisibleVScroll()")
00103         bool isShowVScroll();
00104         MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setVisibleHScroll(bool _visible)")
00105         void showHScroll(bool _visible);
00106         MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isVisibleHScroll()")
00107         bool isShowHScroll();
00108 
00109         MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextIntervalColour(size_t _start, size_t _count, const Colour& _colour)")
00110         void setTextColour(size_t _start, size_t _count, const Colour& _colour);
00111         MYGUI_OBSOLETE(" is deprecated, use : size_t EditBox::getTextSelectionStart() , size_t getTextSelectionEnd()")
00112         void getTextSelect(size_t& _start, size_t& _end);
00113         MYGUI_OBSOLETE(" is deprecated, use : UString EditBox::getTextInterval(size_t _start, size_t _count)")
00114         UString getText(size_t _start, size_t _count);
00115         MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextSelection(size_t _start, size_t _end)")
00116         void setTextSelect(size_t _start, size_t _end);
00117         MYGUI_OBSOLETE(" is deprecated, use : void EditBox::deleteTextSelection()")
00118         void deleteTextSelect();
00119         MYGUI_OBSOLETE(" is deprecated, use : UString EditBox::getTextSelection()")
00120         UString getSelectedText();
00121         MYGUI_OBSOLETE(" is deprecated, use : bool EditBox::isTextSelection()")
00122         bool isTextSelect();
00123         MYGUI_OBSOLETE(" is deprecated, use : void EditBox::setTextSelectionColour(const Colour& _colour)")
00124         void setTextSelectColour(const Colour& _colour);
00125     };
00126 
00127     template <>
00128     class MYGUI_EXPORT MemberObsolete<ItemBox>
00129     {
00130     public:
00131         MYGUI_OBSOLETE(" is deprecated, use : size_t ItemBox::getItemIndexSelected()")
00132         size_t getItemIndexSelected();
00133         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setIndexSelected(size_t _index)")
00134         void setItemSelectedAt(size_t _index);
00135         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::clearIndexSelected()")
00136         void clearItemSelected();
00137 
00138         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::insertItemAt(size_t _index, Any _data)")
00139         void insertItem(size_t _index, Any _data = Any::Null);
00140         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setItemDataAt(size_t _index, Any _data)")
00141         void setItemData(size_t _index, Any _data);
00142         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::removeItemAt(size_t _index)")
00143         void deleteItem(size_t _index);
00144         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::removeAllItems()")
00145         void deleteAllItems();
00146         MYGUI_OBSOLETE(" is deprecated, use : size_t ItemBox::getIndexSelected()")
00147         size_t getItemSelect();
00148         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::clearIndexSelected()")
00149         void resetItemSelect();
00150         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setIndexSelected(size_t _index)")
00151         void setItemSelect(size_t _index);
00152 
00153         MYGUI_OBSOLETE(" is deprecated, use : Widget* ItemBox::getWidgetDrag()")
00154         Widget* getWidgetDrop();
00155         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::resetDrag()")
00156         void resetDrop();
00157 
00158         MYGUI_OBSOLETE(" is deprecated, use : void ItemBox::setVerticalAlignment(bool _value)")
00159         void setItemBoxAlignVert(bool _value);
00160         MYGUI_OBSOLETE(" is deprecated, use : bool ItemBox::getVerticalAlignment() const")
00161         bool getItemBoxAlignVert();
00162     };
00163 
00164     template <>
00165     class MYGUI_EXPORT MemberObsolete<ListBox>
00166     {
00167     public:
00168         MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::getIndexSelected()")
00169         size_t getItemIndexSelected();
00170         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setIndexSelected(size_t _index)")
00171         void setItemSelectedAt(size_t _index);
00172         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::clearIndexSelected()")
00173         void clearItemSelected();
00174 
00175         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::insertItemAt(size_t _index, const UString& _name)")
00176         void insertItem(size_t _index, const UString& _item);
00177         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setItemNameAt(size_t _index, const UString& _name)")
00178         void setItem(size_t _index, const UString& _item);
00179         MYGUI_OBSOLETE(" is deprecated, use : const UString& ListBox::getItemNameAt(size_t _index)")
00180         const UString& getItem(size_t _index);
00181         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::removeItemAt(size_t _index)")
00182         void deleteItem(size_t _index);
00183         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::removeAllItems()")
00184         void deleteAllItems();
00185         MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::findItemIndexWith(const UString& _name)")
00186         size_t findItem(const UString& _item);
00187         MYGUI_OBSOLETE(" is deprecated, use : size_t ListBox::getIndexSelected()")
00188         size_t getItemSelect();
00189         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::clearIndexSelected()")
00190         void resetItemSelect();
00191         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::setIndexSelected(size_t _index)")
00192         void setItemSelect(size_t _index);
00193         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemAt(size_t _index)")
00194         void beginToIndex(size_t _index);
00195         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemFirst()")
00196         void beginToStart();
00197         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemLast()")
00198         void beginToEnd();
00199         MYGUI_OBSOLETE(" is deprecated, use : void ListBox::beginToItemSelected()")
00200         void beginToSelect();
00201         MYGUI_OBSOLETE(" is deprecated, use : bool ListBox::isItemVisibleAt(size_t _index, bool _fill)")
00202         bool isItemVisible(size_t _index, bool _fill = true);
00203         MYGUI_OBSOLETE(" is deprecated, use : bool ListBox::isItemSelectedVisible(bool _fill)")
00204         bool isItemSelectVisible(bool _fill = true);
00205     };
00206 
00207     template <>
00208     class MYGUI_EXPORT MemberObsolete<MenuControl>
00209     {
00210     public:
00211         MYGUI_OBSOLETE(" is deprecated, use : void Widget::setVisible(bool _value)")
00212         void showMenu();
00213         MYGUI_OBSOLETE(" is deprecated, use : void Widget::setVisible(bool _value)")
00214         void hideMenu();
00215         MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getVisible()")
00216         bool isShowMenu();
00217 
00218         MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisibleAt(size_t _index, bool _visible)")
00219         void showItemChildAt(size_t _index);
00220         MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(MenuItem* _item, bool _visible)")
00221         void showItemChild(MenuItem* _item);
00222         MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisibleAt(size_t _index, bool _visible)")
00223         void hideItemChildAt(size_t _index);
00224         MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(MenuItem* _item, bool _visible)")
00225         void hideItemChild(MenuItem* _item);
00226 
00227         MYGUI_OBSOLETE(" is deprecated, use : void MenuControl::setVerticalAlignment(bool _value)")
00228         void setAlignVert(bool _value);
00229         MYGUI_OBSOLETE(" is deprecated, use : bool MenuControl::getVerticalAlignment() const")
00230         bool getAlignVert();
00231     };
00232 
00233     template <>
00234     class MYGUI_EXPORT MemberObsolete<MenuItem>
00235     {
00236     public:
00237         MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(bool _visible)")
00238         void showItemChild();
00239         MYGUI_OBSOLETE(" is deprecated, use : void setItemChildVisible(bool _visible)")
00240         void hideItemChild();
00241     };
00242 
00243     template <>
00244     class MYGUI_EXPORT MemberObsolete<MultiListBox>
00245     {
00246     public:
00247         MYGUI_OBSOLETE(" is deprecated, use : size_t MultiListBox::getIndexSelected()")
00248         size_t getItemIndexSelected();
00249         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setIndexSelected(size_t _index)")
00250         void setItemSelectedAt(size_t _index);
00251         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::clearIndexSelected()")
00252         void clearItemSelected();
00253 
00254         MYGUI_OBSOLETE(" is deprecated, use : size_t MultiListBox::findSubItemWith(size_t _column, const UString& _name)")
00255         size_t findItem(size_t _column, const UString& _name);
00256         MYGUI_OBSOLETE(" is deprecated, use : const UString& MultiListBox::getSubItemNameAt(size_t _column, size_t _index)")
00257         const UString& getSubItem(size_t _column, size_t _index);
00258         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setSubItemNameAt(size_t _column, size_t _index, const UString& _name)")
00259         void setSubItem(size_t _column, size_t _index, const UString& _name);
00260         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeColumnAt(size_t _column)")
00261         void deleteColumn(size_t _column);
00262         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeAllColumns()")
00263         void deleteAllColumns();
00264         MYGUI_OBSOLETE(" is deprecated, use : int MultiListBox::getColumnWidthAt(size_t _column)")
00265         int getColumnWidth(size_t _column);
00266         MYGUI_OBSOLETE(" is deprecated, use : const UString& MultiListBox::getColumnNameAt(size_t _column)")
00267         const UString& getColumnName(size_t _column);
00268         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setColumnWidthAt(size_t _column, int _width)")
00269         void setColumnWidth(size_t _column, int _width);
00270         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::addColumn(const UString& _name, int _width, Any _data)")
00271         void addColumn(int _width, const UString& _name);
00272         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setColumnNameAt(size_t _column, const UString& _name)")
00273         void setColumnName(size_t _column, const UString& _name);
00274         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::insertColumnAt(size_t _column, const UString& _name, int _width, Any _data)")
00275         void insertColumn(size_t _column, int _width, const UString& _name);
00276         MYGUI_OBSOLETE(" is deprecated, use : size_t MultiListBox::getIndexSelected()")
00277         size_t getItemSelect();
00278         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::clearIndexSelected()")
00279         void resetItemSelect();
00280         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setIndexSelected(size_t _index)")
00281         void setItemSelect(size_t _index);
00282         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::insertItemAt(size_t _index, const UString& _name, Any _data)")
00283         void insertItem(size_t _index, const UString& _name);
00284         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::setItemNameAt(size_t _index, const UString& _name)")
00285         void setItem(size_t _index, const UString& _name);
00286         MYGUI_OBSOLETE(" is deprecated, use : const UString& MultiListBox::getItemNameAt(size_t _index)")
00287         const UString& getItem(size_t _index);
00288         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeItemAt(size_t _index)")
00289         void deleteItem(size_t _index);
00290         MYGUI_OBSOLETE(" is deprecated, use : void MultiListBox::removeAllItems()")
00291         void deleteAllItems();
00292     };
00293 
00294     template <>
00295     class MYGUI_EXPORT MemberObsolete<ProgressBar>
00296     {
00297     public:
00298         MYGUI_OBSOLETE(" is deprecated, use : void ProgressBar::setFlowDirection(FlowDirection _value)")
00299         void setProgressStartPoint(Align _value);
00300         MYGUI_OBSOLETE(" is deprecated, use : FlowDirection ProgressBar::getFlowDirection()")
00301         Align getProgressStartPoint();
00302     };
00303 
00304     template <>
00305     class MYGUI_EXPORT MemberObsolete<ScrollView>
00306     {
00307     public:
00308         MYGUI_OBSOLETE(" is deprecated, use : void ScrollView::setVisibleVScroll(bool _visible)")
00309         void showVScroll(bool _visible);
00310         MYGUI_OBSOLETE(" is deprecated, use : bool ScrollView::isVisibleVScroll()")
00311         bool isShowVScroll();
00312         MYGUI_OBSOLETE(" is deprecated, use : void ScrollView::setVisibleHScroll(bool _visible)")
00313         void showHScroll(bool _visible);
00314         MYGUI_OBSOLETE(" is deprecated, use : bool ScrollView::isVisibleHScroll()")
00315         bool isShowHScroll();
00316     };
00317 
00318     template <>
00319     class MYGUI_EXPORT MemberObsolete<TabControl>
00320     {
00321     public:
00322         MYGUI_OBSOLETE(" is deprecated, use : int TabControl::getButtonWidthAt(size_t _index)")
00323         int getSheetButtonWidthIndex(size_t _index);
00324         MYGUI_OBSOLETE(" is deprecated, use : int TabControl::getButtonWidth(TabItem* _item)")
00325         int getSheetButtonWidth(TabItem* _sheet);
00326         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setButtonWidthAt(size_t _index, int _width)")
00327         void setSheetButtonWidthIndex(size_t _index, int _width = DEFAULT);
00328         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setButtonWidth(TabItem* _item, int _width)")
00329         void setSheetButtonWidth(TabItem* _sheet, int _width = DEFAULT);
00330         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::beginToItemAt(size_t _index)")
00331         void showBarButton(size_t _index);
00332         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::beginToItemSelected()")
00333         void showBarSelectButton();
00334         MYGUI_OBSOLETE(" is deprecated, use : size_t TabControl::getItemCount()")
00335         size_t getSheetCount();
00336         MYGUI_OBSOLETE(" is deprecated, use : const UString& TabControl::getItemName(TabItem* _item)")
00337         const UString& getSheetName(TabItem* _sheet);
00338         MYGUI_OBSOLETE(" is deprecated, use : const UString& TabControl::getItemNameAt(size_t _index)")
00339         const UString& getSheetNameIndex(size_t _index);
00340         MYGUI_OBSOLETE(" is deprecated, use : TabItem* TabControl::getItemAt(size_t _index)")
00341         TabItem* getSheet(size_t _index);
00342         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemNameAt(size_t _index, const UString& _name)")
00343         void setSheetNameIndex(size_t _index, const UString& _name, int _width = DEFAULT);
00344         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemName(TabItem* _item, const UString& _name)")
00345         void setSheetName(TabItem* _sheet, const UString& _name, int _width = DEFAULT);
00346         MYGUI_OBSOLETE(" is deprecated, use : TabItem* TabControl::addItem(const UString& _name, Any _data)")
00347         TabItem* addSheet(const UString& _name, int _width = DEFAULT);
00348         MYGUI_OBSOLETE(" is deprecated, use : TabItem* TabControl::insertItemAt(size_t _index, const UString& _name, Any _data)")
00349         TabItem* insertSheet(size_t _index, const UString& _name, int _width = DEFAULT);
00350         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::removeItemAt(size_t _index)")
00351         void removeSheetIndex(size_t _index);
00352         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::removeItem(TabItem* _item)")
00353         void removeSheet(TabItem* _sheet);
00354         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setIndexSelected(size_t _index)")
00355         void selectSheetIndex(size_t _index, bool _smooth = true);
00356         MYGUI_OBSOLETE(" is deprecated, use : void TabControl::setItemSelected(TabItem* _item)")
00357         void selectSheet(TabItem* _sheet, bool _smooth = true);
00358         MYGUI_OBSOLETE(" is deprecated, use : size_t TabControl::getIndexSelected()")
00359         size_t getSelectSheetIndex();
00360 
00361         MYGUI_OBSOLETE(" is deprecated, use : size_t Widget::getIndexSelected()")
00362         size_t getItemIndexSelected();
00363         MYGUI_OBSOLETE(" is deprecated, use : void Widget::setIndexSelected(size_t _index)")
00364         void setItemSelectedAt(size_t _index);
00365     };
00366 
00367     template <>
00368     class MYGUI_EXPORT MemberObsolete<Widget>
00369     {
00370     public:
00371         MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getEnabled() const")
00372         bool isEnabled();
00373         MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getInheritsAlpha() const")
00374         bool isInheritsAlpha();
00375         MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getNeedKeyFocus() const")
00376         bool isNeedKeyFocus();
00377         MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getNeedMouseFocus() const")
00378         bool isNeedMouseFocus();
00379         MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getInheritsPick() const")
00380         bool isInheritsPick();
00381         MYGUI_OBSOLETE(" is deprecated, use : bool Widget::getVisible() const")
00382         bool isVisible();
00383     };
00384 
00385     template <>
00386     class MYGUI_EXPORT MemberObsolete<Window>
00387     {
00388     public:
00389         MYGUI_OBSOLETE(" is deprecated, use : void Widget::setCoord(const IntCoord& _coord)")
00390         void setPosition(const IntCoord& _coord);
00391         MYGUI_OBSOLETE(" is deprecated, use : void Widget::setCoord(int _left, int _top, int _width, int _height)")
00392         void setPosition(int _left, int _top, int _width, int _height);
00393 
00394         MYGUI_OBSOLETE(" is deprecated, use : void setVisibleSmooth(bool _visible)")
00395         void showSmooth(bool _reset = false);
00396         MYGUI_OBSOLETE(" is deprecated, use : void setVisibleSmooth(bool _visible)")
00397         void hideSmooth();
00398         MYGUI_OBSOLETE(" is deprecated, use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
00399         void setMinMax(const IntRect& _minmax);
00400         MYGUI_OBSOLETE(" is deprecated, use : void setMinSize(const IntSize& _min) , void setMaxSize(const IntSize& _min)")
00401         void setMinMax(int _min_w, int _min_h, int _max_w, int _max_h);
00402         MYGUI_OBSOLETE(" is deprecated, use : IntSize getMinSize() , IntSize getMaxSize()")
00403         IntRect getMinMax();
00404     };
00405 
00406     template <>
00407     class MYGUI_EXPORT MemberObsolete<FontManager>
00408     {
00409     public:
00410         MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
00411         bool load(const std::string& _file);
00412     };
00413 
00414     template <>
00415     class MYGUI_EXPORT MemberObsolete<Gui>
00416     {
00417     public:
00418         MYGUI_OBSOLETE(" is deprecated, use : void Gui::destroyWidgets(VectorWidgetPtr &_widgets)")
00419         void destroyWidgetsVector(VectorWidgetPtr& _widgets);
00420 
00421         MYGUI_OBSOLETE(" is deprecated, use : void Gui::setVisiblePointer(bool _value)")
00422         void hidePointer();
00423         MYGUI_OBSOLETE(" is deprecated, use : void Gui::setVisiblePointer(bool _value)")
00424         void showPointer();
00425         MYGUI_OBSOLETE(" is deprecated, use : bool Gui::isVisiblePointer()")
00426         bool isShowPointer();
00427         MYGUI_OBSOLETE("called be renderer, do not call it manually")
00428         void injectFrameEntered(float _time) { }
00429 
00430         MYGUI_OBSOLETE(" is deprecated, use : void Gui::getViewSize().width")
00431         int getViewWidth();
00432         MYGUI_OBSOLETE(" is deprecated, use : void Gui::getViewSize().height")
00433         int getViewHeight();
00434 
00435         MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectMouseMove(int _absx, int _absy, int _absz)")
00436         bool injectMouseMove(int _absx, int _absy, int _absz);
00437         MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectMousePress(int _absx, int _absy, MouseButton _id)")
00438         bool injectMousePress(int _absx, int _absy, MouseButton _id);
00439         MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectMouseRelease(int _absx, int _absy, MouseButton _id)")
00440         bool injectMouseRelease(int _absx, int _absy, MouseButton _id);
00441         MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectKeyPress(KeyCode _key, Char _text = 0)")
00442         bool injectKeyPress(KeyCode _key, Char _text = 0);
00443         MYGUI_OBSOLETE(" is deprecated, use : bool InputManager::injectKeyRelease(KeyCode _key)")
00444         bool injectKeyRelease(KeyCode _key);
00445 
00446         MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(_value)")
00447         void setVisiblePointer(bool _value);
00448         MYGUI_OBSOLETE(" is deprecated, use : bool PointerManager::isVisible()")
00449         bool isVisiblePointer();
00450 
00451         MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
00452         bool load(const std::string& _file);
00453 
00454         MYGUI_OBSOLETE(" is deprecated, use : const IntSize& RenderManager::getViewSize() const")
00455         const IntSize& getViewSize();
00456 
00457         MYGUI_OBSOLETE(" is deprecated, use : RenderManager::onFrameEvent(float _time)")
00458         void _injectFrameEntered(float _time);
00459         MYGUI_OBSOLETE(" is deprecated, use : RenderManager::onResizeView(const IntSize& _size)")
00460         void _resizeWindow(const IntSize& _size);
00461     };
00462 
00463     template <>
00464     class MYGUI_EXPORT MemberObsolete<InputManager>
00465     {
00466     public:
00467         MYGUI_OBSOLETE(" is deprecated, use : const IntPoint& getLastPressedPosition(MouseButton _id) with _id MouseButton::Left")
00468         const IntPoint& getLastLeftPressed() const;
00469         MYGUI_OBSOLETE(" is deprecated, use : const IntPoint& getLastPressedPosition(MouseButton _id) with _id MouseButton::Right")
00470         const IntPoint& getLastRightPressed() const;
00471     };
00472 
00473     template <>
00474     class MYGUI_EXPORT MemberObsolete<LanguageManager>
00475     {
00476     public:
00477         MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
00478         bool load(const std::string& _file);
00479     };
00480 
00481     template <>
00482     class MYGUI_EXPORT MemberObsolete<LayerManager>
00483     {
00484     public:
00485         MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
00486         bool load(const std::string& _file);
00487     };
00488 
00489     template <>
00490     class MYGUI_EXPORT MemberObsolete<LayoutManager>
00491     {
00492     public:
00493         MYGUI_OBSOLETE(" is deprecated, use : VectorWidgetPtr& LayoutManager::loadLayout(const std::string& _file, const std::string& _prefix, Widget* _parent)")
00494         VectorWidgetPtr load(const std::string& _file);
00495     };
00496 
00497     template <>
00498     class MYGUI_EXPORT MemberObsolete<PluginManager>
00499     {
00500     public:
00501         MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
00502         bool load(const std::string& _file);
00503     };
00504 
00505     template <>
00506     class MYGUI_EXPORT MemberObsolete<PointerManager>
00507     {
00508     public:
00509         MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setDefaultPointer(const std::string& _value)")
00510         void setDeafultPointer(const std::string& _value);
00511         MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(bool _visible)")
00512         void show();
00513         MYGUI_OBSOLETE(" is deprecated, use : void PointerManager::setVisible(bool _visible)")
00514         void hide();
00515         MYGUI_OBSOLETE(" is deprecated, use : bool PointerManager::isVisible()")
00516         bool isShow();
00517         MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
00518         bool load(const std::string& _file);
00519     };
00520 
00521     template <>
00522     class MYGUI_EXPORT MemberObsolete<ResourceManager>
00523     {
00524     public:
00525         MYGUI_OBSOLETE(" is deprecated, use : size_t ResourceManager::getCount()")
00526         size_t getResourceCount();
00527         MYGUI_OBSOLETE(" is deprecated, use : IResourcePtr ResourceManager::getByName(const std::string& _name, bool _throw)")
00528         IResourcePtr getResource(const std::string& _name, bool _throw = true);
00529     };
00530 
00531     template <>
00532     class MYGUI_EXPORT MemberObsolete<SkinManager>
00533     {
00534     public:
00535         MYGUI_OBSOLETE(" is deprecated, use : ResourceSkin* SkinManager::getByName(const std::string& _name)")
00536         ResourceSkin* getSkin(const std::string& _name);
00537         MYGUI_OBSOLETE(" is deprecated, use : bool ResourceManager::load(const std::string& _file)")
00538         bool load(const std::string& _file);
00539     };
00540 
00541     template <>
00542     class MYGUI_EXPORT MemberObsolete<WidgetManager>
00543     {
00544     public:
00545         MYGUI_OBSOLETE(" is deprecated, use : void WidgetManager::destroyWidgets(VectorWidgetPtr &_widgets)")
00546         void destroyWidgetsVector(VectorWidgetPtr& _widgets);
00547         MYGUI_OBSOLETE(" is deprecated")
00548         Widget* findWidgetT(const std::string& _name, bool _throw = true);
00549         MYGUI_OBSOLETE(" is deprecated")
00550         Widget* findWidgetT(const std::string& _name, const std::string& _prefix, bool _throw = true);
00551         MYGUI_OBSOLETE(" is deprecated, use : void Widget::setProperty(const std::string &_key, const std::string &_value)")
00552         void parse(Widget* _widget, const std::string& _key, const std::string& _value);
00553     };
00554 
00555 #endif // MYGUI_DONT_USE_OBSOLETE
00556 
00557     class MYGUI_EXPORT BackwardCompatibility
00558     {
00559     public:
00560         static bool checkProperty(Widget* _owner, std::string& _key, std::string& _value);
00561         static void initialise();
00562         static void shutdown();
00563         static bool isIgnoreProperty(const std::string& _key);
00564         static std::string getPropertyRename(const std::string& _propertyName);
00565         static std::string getFactoryRename(const std::string& _categoryName, const std::string& _factoryName);
00566         static std::string getSkinRename(const std::string& _skinName);
00567         static void registerWidgetTypes();
00568     };
00569 
00570 } // namespace MyGUI
00571 
00572 #endif // __MYGUI_BACKWARD_COMPATIBILITY_H__