axmol/cocos/editor-support/cocostudio/WidgetReader/PageViewReader/PageViewReader.cpp

46 lines
1.0 KiB
C++
Raw Normal View History

2014-03-04 16:51:35 +08:00
#include "PageViewReader.h"
2014-03-11 17:13:54 +08:00
#include "ui/UIPageView.h"
2014-06-18 14:35:43 +08:00
#include "ui/UILayout.h"
#include "cocostudio/CocoLoader.h"
2014-03-04 16:51:35 +08:00
2014-03-06 16:15:03 +08:00
USING_NS_CC;
using namespace ui;
2014-03-04 16:51:35 +08:00
namespace cocostudio
{
2014-06-23 10:12:54 +08:00
static PageViewReader* instancePageViewReader = nullptr;
2014-03-04 16:51:35 +08:00
IMPLEMENT_CLASS_WIDGET_READER_INFO(PageViewReader)
PageViewReader::PageViewReader()
{
}
PageViewReader::~PageViewReader()
{
}
PageViewReader* PageViewReader::getInstance()
{
if (!instancePageViewReader)
{
instancePageViewReader = new PageViewReader();
}
return instancePageViewReader;
}
2014-06-23 10:02:09 +08:00
void PageViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *cocoLoader, stExpCocoNode *cocoNode)
2014-06-18 14:35:43 +08:00
{
2014-06-23 10:02:09 +08:00
LayoutReader::setPropsFromBinary(widget, cocoLoader, cocoNode);
}
2014-03-06 16:15:03 +08:00
void PageViewReader::setPropsFromJsonDictionary(Widget *widget, const rapidjson::Value &options)
2014-03-04 16:51:35 +08:00
{
LayoutReader::setPropsFromJsonDictionary(widget, options);
}
}