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
|
|
|
|
{
|
|
|
|
static PageViewReader* instancePageViewReader = NULL;
|
|
|
|
|
|
|
|
IMPLEMENT_CLASS_WIDGET_READER_INFO(PageViewReader)
|
|
|
|
|
|
|
|
PageViewReader::PageViewReader()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PageViewReader::~PageViewReader()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
PageViewReader* PageViewReader::getInstance()
|
|
|
|
{
|
|
|
|
if (!instancePageViewReader)
|
|
|
|
{
|
|
|
|
instancePageViewReader = new PageViewReader();
|
|
|
|
}
|
|
|
|
return instancePageViewReader;
|
|
|
|
}
|
|
|
|
|
2014-06-05 10:25:08 +08:00
|
|
|
void PageViewReader::setPropsFromBinary(cocos2d::ui::Widget *widget, CocoLoader *pCocoLoader, stExpCocoNode *pCocoNode)
|
2014-06-18 14:35:43 +08:00
|
|
|
{
|
|
|
|
LayoutReader::setPropsFromBinary(widget, pCocoLoader, pCocoNode);
|
2014-06-05 10:25:08 +08:00
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|