2014-03-04 16:51:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
#include "PageViewReader.h"
|
2014-03-11 17:13:54 +08:00
|
|
|
#include "ui/UIPageView.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-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);
|
|
|
|
}
|
|
|
|
}
|