2013-07-22 20:47:32 +08:00
|
|
|
/****************************************************************************
|
|
|
|
Copyright (c) 2013 cocos2d-x.org
|
|
|
|
|
|
|
|
http://www.cocos2d-x.org
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in
|
|
|
|
all copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
THE SOFTWARE.
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/** Add deprecated global functions and variables here
|
|
|
|
*/
|
|
|
|
|
2013-07-24 16:53:14 +08:00
|
|
|
#ifndef COCOS2D_CCDEPRECATED_EXT_H__
|
|
|
|
#define COCOS2D_CCDEPRECATED_EXT_H__
|
2013-07-22 20:47:32 +08:00
|
|
|
|
|
|
|
NS_CC_EXT_BEGIN
|
|
|
|
|
2013-07-24 16:53:14 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef TableView CCTableView;
|
2013-07-24 18:00:40 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef TableViewCell CCTableViewCell;
|
2013-07-24 16:53:14 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef TableViewDelegate CCTableViewDelegate;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef TableViewDataSource CCTableViewDataSource;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef TableView CCTableView;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ScrollView CCScrollView;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ScrollViewDelegate CCScrollViewDelegate;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ScrollView CCScrollView;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef SortableObject CCSortableObject;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ArrayForObjectSorting CCArrayForObjectSorting;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef TableViewCell CCTableViewCell;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef EditBox CCEditBox;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef EditBoxDelegate CCEditBoxDelegate;
|
2013-07-22 20:47:32 +08:00
|
|
|
|
2013-07-24 16:53:14 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Color3bObject CCColor3bObject;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlUtils CCControlUtils;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Scale9Sprite CCScale9Sprite;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlSwitchSprite CCControlSwitchSprite;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlHuePicker CCControlHuePicker;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Invocation CCInvocation;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlSaturationBrightnessPicker CCControlSaturationBrightnessPicker;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlStepper CCControlStepper;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlPotentiometer CCControlPotentiometer;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlSwitchSprite CCControlSwitchSprite;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlSwitch CCControlSwitch;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlButton CCControlButton;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlSlider CCControlSlider;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Control CCControl;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlLoader CCControlLoader;
|
2013-07-24 18:00:40 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlColourPicker CCControlColourPicker;
|
|
|
|
|
2013-07-24 16:53:14 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef LabelBMFontLoader CCLabelBMFontLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ScrollViewLoader CCScrollViewLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef SpriteLoader CCSpriteLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef NodeLoader CCNodeLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef NodeLoaderLibrary CCNodeLoaderLibrary;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef NodeLoaderListener CCNodeLoaderListener;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef LayerLoader CCLayerLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef MenuLoader CCMenuLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Color3BWapper CCColor3BWapper;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ParticleSystemQuadLoader CCParticleSystemQuadLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef MenuItemImageLoader CCMenuItemImageLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlButtonLoader CCControlButtonLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef LayerGradientLoader CCLayerGradientLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Scale9SpriteLoader CCScale9SpriteLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef NodeLoaderLibrary CCNodeLoaderLibrary;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef MenuItemLoader CCMenuItemLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef LayerColorLoader CCLayerColorLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef LabelTTFLoader CCLabelTTFLoader;
|
2013-07-25 10:33:19 +08:00
|
|
|
|
2013-07-22 22:54:26 +08:00
|
|
|
|
|
|
|
#if CC_ENABLE_BOX2D_INTEGRATION || CC_ENABLE_CHIPMUNK_INTEGRATION
|
2013-07-24 16:53:14 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef PhysicsSprite CCPhysicsSprite;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef PhysicsDebugNode CCPhysicsDebugNode;
|
2013-07-22 22:54:26 +08:00
|
|
|
#endif
|
|
|
|
|
2013-07-24 16:53:14 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ComController CCComController;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ComAttribute CCComAttribute;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef InputDelegate CCInputDelegate;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ComAudio CCComAudio;
|
2013-07-22 20:47:32 +08:00
|
|
|
|
2013-07-24 16:53:14 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef HttpClient CCHttpClient;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef HttpResponse CCHttpResponse;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef HttpRequest CCHttpRequest;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Skin CCSkin;
|
|
|
|
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AtlasFormat CCAtlasFormat;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AtlasFilter CCAtlasFilter;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AtlasWrap CCAtlasWrap;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AtlasPage CCAtlasPage;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AtlasRegion CCAtlasRegion;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Atlas CCAtlas;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AnimationStateData CCAnimationStateData;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef SlotData CCSlotData;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AttachmentLoader CCAttachmentLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AnimationState CCAnimationState;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef SkeletonJson CCSkeletonJson;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Timeline CCTimeline;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef CurveTimeline CCCurveTimeline;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef RotateTimeline CCRotateTimeline;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef TranslateTimeline CCTranslateTimeline;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ScaleTimeline CCScaleTimeline;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ColorTimeline CCColorTimeline;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AttachmentTimeline CCAttachmentTimeline;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AtlasAttachmentLoader CCAtlasAttachmentLoader;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef VertexIndex CCVertexIndex;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef RegionAttachment CCRegionAttachment;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ScrollViewDirection CCScrollViewDirection;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef TableViewVerticalFillOrder CCTableViewVerticalFillOrder;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef ControlStepperPart CCControlStepperPart;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef NodeLoaderMap CCNodeLoaderMap;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef NodeLoaderMapEntry CCNodeLoaderMapEntry;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef EventRegistry CCEventRegistry;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef AttachmentType CCAttachmentType;
|
2013-07-22 20:47:32 +08:00
|
|
|
|
|
|
|
#define kCCTableViewFillTopDown kTableViewFillTopDown
|
|
|
|
#define kCCTableViewFillBottomUp kTableViewFillBottomUp
|
|
|
|
#define kCCScrollViewDirectionNone kScrollViewDirectionNone
|
|
|
|
#define kCCScrollViewDirectionHorizontal kScrollViewDirectionHorizontal
|
|
|
|
#define kCCScrollViewDirectionVertical kScrollViewDirectionVertical
|
|
|
|
#define kCCScrollViewDirectionBoth kScrollViewDirectionBoth
|
2013-07-26 17:45:01 +08:00
|
|
|
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::EditBox::KeyboardReturnType kKeyboardReturnTypeDefault;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::EditBox::KeyboardReturnType kKeyboardReturnTypeDone;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::EditBox::KeyboardReturnType kKeyboardReturnTypeSend;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::EditBox::KeyboardReturnType kKeyboardReturnTypeSearch;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::EditBox::KeyboardReturnType kKeyboardReturnTypeGo;
|
|
|
|
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputMode kEditBoxInputModeAny;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputMode kEditBoxInputModeEmailAddr;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputMode kEditBoxInputModeNumeric;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputMode kEditBoxInputModePhoneNumber;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputMode kEditBoxInputModeUrl;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputMode kEditBoxInputModeDecimal;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputMode kEditBoxInputModeSingleLine;
|
|
|
|
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputFlag kEditBoxInputFlagPassword;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputFlag kEditBoxInputFlagSensitive;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputFlag kEditBoxInputFlagInitialCapsWord;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputFlag kEditBoxInputFlagInitialCapsSentence;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const EditBox::InputFlag kEditBoxInputFlagInitialCapsAllCharacters;
|
|
|
|
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef EditBox::EditBox::KeyboardReturnType KeyboardReturnType;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef EditBox::InputMode EditBoxInputMode;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef EditBox::InputFlag EditBoxInputFlag;
|
2013-07-22 20:47:32 +08:00
|
|
|
|
|
|
|
#define kCCControlStepperPartMinus kControlStepperPartMinus
|
|
|
|
#define kCCControlStepperPartPlus kControlStepperPartPlus
|
|
|
|
#define kCCControlStepperPartNone kControlStepperPartNone
|
|
|
|
|
2013-07-26 14:37:26 +08:00
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventTouchDown;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventTouchDragInside;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventTouchDragOutside;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventTouchDragEnter;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventTouchDragExit;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventTouchUpInside;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventTouchUpOutside;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventTouchCancel;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::EventType CCControlEventValueChanged;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Control::EventType CCControlEvent;
|
|
|
|
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::State CCControlStateNormal;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::State CCControlStateHighlighted;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::State CCControlStateDisabled;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE extern const Control::State CCControlStateSelected;
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Control::State CCControlState;
|
|
|
|
|
|
|
|
CC_DEPRECATED_ATTRIBUTE typedef Control::Handler SEL_CCControlHandler;
|
|
|
|
|
2013-07-22 20:47:32 +08:00
|
|
|
|
|
|
|
#define kCCCreateFile kCreateFile
|
|
|
|
#define kCCNetwork kNetwork
|
|
|
|
#define kCCNoNewVersion kNoNewVersion
|
|
|
|
#define kCCUncompress kUncompress
|
|
|
|
|
|
|
|
#define kCCHttpGet kHttpGet
|
|
|
|
#define kCCHttpPut kHttpPut
|
|
|
|
#define kCCHttpPost kHttpPost
|
|
|
|
#define kCCHttpDelete kHttpDelete
|
|
|
|
#define kCCHttpUnkown kHttpUnkown
|
|
|
|
|
|
|
|
NS_CC_EXT_END
|
|
|
|
|
2013-07-24 16:53:14 +08:00
|
|
|
#endif // COCOS2D_CCDEPRECATED_EXT_H__
|