#ifndef __DALI_TOOLKIT_INTERNAL_BUILDER_H__
#define __DALI_TOOLKIT_INTERNAL_BUILDER_H__
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
// EXTERNAL INCLUDES
#include <string>
*/
BaseHandle Create( const std::string& templateName, const PropertyValueMap& map );
- /**
- * @copydoc Toolkit::Builder::GetFont
- */
- Font GetFont(const std::string &name) const;
-
/**
- * @copydoc Toolkit::Builder::GetTextStyle
+ * @copydoc Toolkit::Builder::CreateFromJson( const std::string& json );
*/
- TextStyle GetTextStyle(const std::string &name) const;
+ BaseHandle CreateFromJson( const std::string& json );
/**
- * @copydoc Toolkit::Builder::GetImage
+ * @copydoc Toolkit::Builder::ApplyFromJson( Handle& handle, const std::string& json );
*/
- Image GetImage(const std::string &name) const;
-
- /**
- * @copydoc Toolkit::Builder::GetActor
- */
- Actor GetActor( const std::string &name ) const;
+ bool ApplyFromJson( Handle& handle, const std::string& json );
/**
* @copydoc Toolkit::Builder::ApplyStyle
*/
bool ApplyStyle( const std::string& styleName, Handle& handle );
- void AnimateTo( const std::string& styleName, Handle& handle );
-
/**
* @copydoc Toolkit::Builder::AddActors
*/
void AddActors( const std::string §ionName, Actor toActor );
/**
- * @copydoc Toolkit::Builder::GetAnimation
- */
- Animation GetAnimation( const std::string &name ) const;
-
- /**
* @copydoc Toolkit::Builder::CreateRenderTask
*/
void CreateRenderTask( const std::string &name );
FrameBufferImage GetFrameBufferImage( const std::string &name, const Replacement& constant );
/**
- * @copydoc Toolkit::Builder::GetTopLevelActors
+ * @copydoc Toolkit::Builder::QuitSignal
+ */
+ Toolkit::Builder::Signal& QuitSignal();
+
+ /**
+ * Emits the quit signal
*/
- ActorContainer GetTopLevelActors( void ) const;
+ void EmitQuitSignal();
protected:
void SetProperties( const TreeNode& node, Handle& handle, const Replacement& constant );
+ Toolkit::Builder::Signal mQuitSignal;
};
} // namespace Internal