Change-Id: I1ed524b218dc31f6c59cbd34d9bcc9a25bb7470a
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <dali-toolkit-test-suite-utils.h>
#include <dali-toolkit/dali-toolkit.h>
#include <dali-toolkit-test-suite-utils.h>
#include <dali-toolkit/dali-toolkit.h>
-#include <dali-toolkit/devel-api/controls/progress-bar/progress-bar.h>
#include <dali-toolkit/devel-api/visuals/text-visual-properties.h>
#include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
#include <dali-toolkit/public-api/visuals/image-visual-properties.h>
#include <dali-toolkit/devel-api/visuals/text-visual-properties.h>
#include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
#include <dali-toolkit/public-api/visuals/image-visual-properties.h>
-# Copyright (c) 2016 Samsung Electronics Co., Ltd.
+# Copyright (c) 2017 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.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
develapinavigationviewdir = $(develapicontrolsdir)/navigation-view
develapipageturnviewdir = $(develapicontrolsdir)/page-turn-view
develapipopupdir = $(develapicontrolsdir)/popup
develapinavigationviewdir = $(develapicontrolsdir)/navigation-view
develapipageturnviewdir = $(develapicontrolsdir)/page-turn-view
develapipopupdir = $(develapicontrolsdir)/popup
-develapiprogressbardir = $(develapicontrolsdir)/progress-bar
develapishadowviewdir = $(develapicontrolsdir)/shadow-view
develapisuperblurviewdir = $(develapicontrolsdir)/super-blur-view
develapifocusmanagerdir = $(develapidir)/focus-manager
develapishadowviewdir = $(develapicontrolsdir)/shadow-view
develapisuperblurviewdir = $(develapicontrolsdir)/super-blur-view
develapifocusmanagerdir = $(develapidir)/focus-manager
develapinavigationview_HEADERS = $(devel_api_navigation_view_header_files)
develapipageturnview_HEADERS = $(devel_api_page_turn_view_header_files)
develapipopup_HEADERS = $(devel_api_popup_header_files)
develapinavigationview_HEADERS = $(devel_api_navigation_view_header_files)
develapipageturnview_HEADERS = $(devel_api_page_turn_view_header_files)
develapipopup_HEADERS = $(devel_api_popup_header_files)
-develapiprogressbar_HEADERS = $(devel_api_progress_bar_header_files)
develapivisualfactory_HEADERS = $(devel_api_visual_factory_header_files)
develapivisuals_HEADERS = $(devel_api_visuals_header_files)
develapiscripting_HEADERS = $(devel_api_scripting_header_files)
develapivisualfactory_HEADERS = $(devel_api_visual_factory_header_files)
develapivisuals_HEADERS = $(devel_api_visuals_header_files)
develapiscripting_HEADERS = $(devel_api_scripting_header_files)
publicapiimageviewdir = $(publicapicontrolsdir)/image-view
publicapivideoviewdir = $(publicapicontrolsdir)/video-view
publicapimodel3dviewdir = $(publicapicontrolsdir)/model3d-view
publicapiimageviewdir = $(publicapicontrolsdir)/image-view
publicapivideoviewdir = $(publicapicontrolsdir)/video-view
publicapimodel3dviewdir = $(publicapicontrolsdir)/model3d-view
+publicapiprogressbardir = $(publicapicontrolsdir)/progress-bar
publicapiscrollbardir = $(publicapicontrolsdir)/scroll-bar
publicapiscrollabledir = $(publicapicontrolsdir)/scrollable
publicapiscrollviewdir = $(publicapicontrolsdir)/scrollable/scroll-view
publicapiscrollbardir = $(publicapicontrolsdir)/scroll-bar
publicapiscrollabledir = $(publicapicontrolsdir)/scrollable
publicapiscrollviewdir = $(publicapicontrolsdir)/scrollable/scroll-view
publicapivideoview_HEADERS = $(public_api_video_view_header_files)
publicapiitemview_HEADERS = $(public_api_item_view_header_files)
publicapimodel3dview_HEADERS = $(public_api_model3d_view_header_files)
publicapivideoview_HEADERS = $(public_api_video_view_header_files)
publicapiitemview_HEADERS = $(public_api_item_view_header_files)
publicapimodel3dview_HEADERS = $(public_api_model3d_view_header_files)
+publicapiprogressbar_HEADERS = $(public_api_progress_bar_header_files)
publicapiscrollbar_HEADERS = $(public_api_scroll_bar_header_files)
publicapiscrollable_HEADERS = $(public_api_scrollable_header_files)
publicapiscrollview_HEADERS = $(public_api_scroll_view_header_files)
publicapiscrollbar_HEADERS = $(public_api_scroll_bar_header_files)
publicapiscrollable_HEADERS = $(public_api_scrollable_header_files)
publicapiscrollview_HEADERS = $(public_api_scroll_view_header_files)
#include <dali-toolkit/public-api/controls/flex-container/flex-container.h>
#include <dali-toolkit/public-api/controls/image-view/image-view.h>
#include <dali-toolkit/public-api/controls/model3d-view/model3d-view.h>
#include <dali-toolkit/public-api/controls/flex-container/flex-container.h>
#include <dali-toolkit/public-api/controls/image-view/image-view.h>
#include <dali-toolkit/public-api/controls/model3d-view/model3d-view.h>
+#include <dali-toolkit/public-api/controls/progress-bar/progress-bar.h>
#include <dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h>
#include <dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/default-item-layout.h>
#include <dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h>
$(devel_api_src_dir)/controls/page-turn-view/page-turn-view.cpp \
$(devel_api_src_dir)/controls/popup/confirmation-popup.cpp \
$(devel_api_src_dir)/controls/popup/popup.cpp \
$(devel_api_src_dir)/controls/page-turn-view/page-turn-view.cpp \
$(devel_api_src_dir)/controls/popup/confirmation-popup.cpp \
$(devel_api_src_dir)/controls/popup/popup.cpp \
- $(devel_api_src_dir)/controls/progress-bar/progress-bar.cpp \
$(devel_api_src_dir)/controls/shadow-view/shadow-view.cpp \
$(devel_api_src_dir)/controls/super-blur-view/super-blur-view.cpp \
$(devel_api_src_dir)/controls/text-controls/text-selection-popup.cpp \
$(devel_api_src_dir)/controls/shadow-view/shadow-view.cpp \
$(devel_api_src_dir)/controls/super-blur-view/super-blur-view.cpp \
$(devel_api_src_dir)/controls/text-controls/text-selection-popup.cpp \
$(devel_api_src_dir)/controls/popup/confirmation-popup.h \
$(devel_api_src_dir)/controls/popup/popup.h
$(devel_api_src_dir)/controls/popup/confirmation-popup.h \
$(devel_api_src_dir)/controls/popup/popup.h
-devel_api_progress_bar_header_files = \
- $(devel_api_src_dir)/controls/progress-bar/progress-bar.h
-
devel_api_visual_factory_header_files = \
$(devel_api_src_dir)/visual-factory/transition-data.h \
$(devel_api_src_dir)/visual-factory/visual-factory.h \
devel_api_visual_factory_header_files = \
$(devel_api_src_dir)/visual-factory/transition-data.h \
$(devel_api_src_dir)/visual-factory/visual-factory.h \
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/control-impl.h>
#include <dali/public-api/animation/animation.h>
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/control-impl.h>
#include <dali/public-api/animation/animation.h>
-#include <dali-toolkit/devel-api/controls/progress-bar/progress-bar.h>
+#include <dali-toolkit/public-api/controls/progress-bar/progress-bar.h>
#include <dali-toolkit/devel-api/visual-factory/transition-data.h>
namespace Dali
#include <dali-toolkit/devel-api/visual-factory/transition-data.h>
namespace Dali
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
-#include <dali-toolkit/devel-api/controls/progress-bar/progress-bar.h>
+#include <dali-toolkit/public-api/controls/progress-bar/progress-bar.h>
// INTERNAL INCLUDES
#include <dali-toolkit/internal/controls/progress-bar/progress-bar-impl.h>
// INTERNAL INCLUDES
#include <dali-toolkit/internal/controls/progress-bar/progress-bar-impl.h>
#define DALI_TOOLKIT_PROGRESS_BAR_H
/*
#define DALI_TOOLKIT_PROGRESS_BAR_H
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
+/**
+ * @addtogroup dali_toolkit_controls_progress_bar
+ * @{
+ */
/**
* @brief ProgressBar is a control to give the user an indication of the progress of an operation.
/**
* @brief ProgressBar is a control to give the user an indication of the progress of an operation.
* =============================================
*
* Also progress value percentage is shown as text inside the progress bar.
* =============================================
*
* Also progress value percentage is shown as text inside the progress bar.
* Signals
* | %Signal Name | Method |
* |-------------------|-------------------------------|
* | valueChanged | @ref ValueChangedSignal() |
* Signals
* | %Signal Name | Method |
* |-------------------|-------------------------------|
* | valueChanged | @ref ValueChangedSignal() |
*/
class DALI_IMPORT_API ProgressBar : public Control
*/
class DALI_IMPORT_API ProgressBar : public Control
/**
* @brief The start and end property ranges for this control.
/**
* @brief The start and end property ranges for this control.
- PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, ///< Start Index
- PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices
+ PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1, ///< Start Index. @SINCE_1_2.60
+ PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices. @SINCE_1_2.60
};
/**
* @brief An enumeration of properties belonging to the ProgressBar class.
};
/**
* @brief An enumeration of properties belonging to the ProgressBar class.
*/
struct Property
{
enum
{
*/
struct Property
{
enum
{
/**
* @brief The progress value of progress bar, progress runs form 0 to 1.
* @details Name "progressValue", type Property::FLOAT.
/**
* @brief The progress value of progress bar, progress runs form 0 to 1.
* @details Name "progressValue", type Property::FLOAT.
* @note Optional. If not supplied, the default is 0.
* @note Value should be between 0 to 1.
* @note If Value is set to 0, progress bar will be set to beginning.
* @note Optional. If not supplied, the default is 0.
* @note Value should be between 0 to 1.
* @note If Value is set to 0, progress bar will be set to beginning.
/**
* @brief The secondary progress value of progress bar, secondary progress runs form 0 to 1.
* @details Name "secondaryProgressValue", type Property::FLOAT.
/**
* @brief The secondary progress value of progress bar, secondary progress runs form 0 to 1.
* @details Name "secondaryProgressValue", type Property::FLOAT.
* @note Optional. If not supplied, the default is 0.
* @note Value should be between 0 to 1.
* @note If Value is set to 0, progress bar will be set secondary progress to beginning.
* @note Optional. If not supplied, the default is 0.
* @note Value should be between 0 to 1.
* @note If Value is set to 0, progress bar will be set secondary progress to beginning.
/**
* @brief Sets the progress-bar as \e indeterminate state.
/**
* @brief Sets the progress-bar as \e indeterminate state.
- * @details name "indeterminate", type bool
+ * @details name "indeterminate", type Property::BOOLEAN.
+ * @SINCE_1_2.60
*/
INDETERMINATE,
/**
* @brief The track Visual value of progress bar, it's a full progress area and it's shown behind PROGRESS_VISUAL.
*/
INDETERMINATE,
/**
* @brief The track Visual value of progress bar, it's a full progress area and it's shown behind PROGRESS_VISUAL.
- * @details Name "trackVisual", type Property::STRING if it is a url, map otherwise.
+ * @details Name "trackVisual", type Property::MAP or Property::STRING (url to image).
+ * @SINCE_1_2.60
* @note Optional. If not supplied, the default track visual will be shown.
*/
TRACK_VISUAL,
/**
* @brief The progress Visual value of progress bar, size of the progress visual is changed based on PROGRESS_VALUE.
* @note Optional. If not supplied, the default track visual will be shown.
*/
TRACK_VISUAL,
/**
* @brief The progress Visual value of progress bar, size of the progress visual is changed based on PROGRESS_VALUE.
- * @details Name "progressVisual", type Property::STRING if it is a url, map otherwise.
+ * @details Name "progressVisual", type Property::MAP or Property::STRING (url to image).
+ * @SINCE_1_2.60
* @note Optional. If not supplied, the default progress visual will be shown.
*/
PROGRESS_VISUAL,
/**
* @brief The secondary progress visual of progress bar, size of the secondary progress visual is changed based on SECONDARY_PROGRESS_VALUE.
* @note Optional. If not supplied, the default progress visual will be shown.
*/
PROGRESS_VISUAL,
/**
* @brief The secondary progress visual of progress bar, size of the secondary progress visual is changed based on SECONDARY_PROGRESS_VALUE.
- * @details Name "secondaryProgressVisual", type Property::STRING if it is a url, map otherwise.
+ * @details Name "secondaryProgressVisual", type Property::MAP or Property::STRING (url to image).
+ * @SINCE_1_2.60
* @note Optional. If not supplied, the secondary progress visual will not be shown.
*/
SECONDARY_PROGRESS_VISUAL,
/**
* @brief The indeterminate visual of progress bar.
* @note Optional. If not supplied, the secondary progress visual will not be shown.
*/
SECONDARY_PROGRESS_VISUAL,
/**
* @brief The indeterminate visual of progress bar.
- * @details Name "inditerminateVisual", type Property::STRING if it is a url, map otherwise.
- * @note Optional. If not supplied, the default inditerminate visual will be shown.
+ * @details Name "inditerminateVisual", type Property::MAP or Property::STRING (url to image).
+ * @SINCE_1_2.60
+ * @note Optional. If not supplied, the default indeterminate visual will be shown.
*/
INDETERMINATE_VISUAL,
/**
* @brief The transition data for indeterminate visual animation.
*/
INDETERMINATE_VISUAL,
/**
* @brief The transition data for indeterminate visual animation.
- * @details Name "indeterminateVisualAnimation", type Property::STRING.
+ * @details Name "indeterminateVisualAnimation", type Property::MAP or Property::ARRAY.
+ * @SINCE_1_2.60
* @note Optional. If not supplied, default animation will be played.
*/
INDETERMINATE_VISUAL_ANIMATION,
* @note Optional. If not supplied, default animation will be played.
*/
INDETERMINATE_VISUAL_ANIMATION,
/**
* @brief The Label visual of progress bar.
* @details Name "labelVisual", type Property::MAP.
/**
* @brief The Label visual of progress bar.
* @details Name "labelVisual", type Property::MAP.
/**
* @brief Creates the ProgressBar control.
/**
* @brief Creates the ProgressBar control.
* @return A handle to the ProgressBar control
*/
static ProgressBar New();
/**
* @brief Creates an empty ProgressBar handle.
* @return A handle to the ProgressBar control
*/
static ProgressBar New();
/**
* @brief Creates an empty ProgressBar handle.
* @brief Copy constructor.
*
* Creates another handle that points to the same real object.
* @brief Copy constructor.
*
* Creates another handle that points to the same real object.
*/
ProgressBar( const ProgressBar& handle );
*/
ProgressBar( const ProgressBar& handle );
* @brief Assignment operator.
*
* Changes this handle to point to another real object.
* @brief Assignment operator.
*
* Changes this handle to point to another real object.
*/
ProgressBar& operator=( const ProgressBar& handle );
*/
ProgressBar& operator=( const ProgressBar& handle );
* @brief Destructor.
*
* This is non-virtual since derived Handle types must not contain data or virtual methods.
* @brief Destructor.
*
* This is non-virtual since derived Handle types must not contain data or virtual methods.
*
* If handle points to a ProgressBar the
* downcast produces valid handle. If not the returned handle is left uninitialized.
*
* If handle points to a ProgressBar the
* downcast produces valid handle. If not the returned handle is left uninitialized.
* @param[in] handle Handle to an object
* @return handle to a ProgressBar or an uninitialized handle
*/
* @param[in] handle Handle to an object
* @return handle to a ProgressBar or an uninitialized handle
*/
/**
* @brief Value changed signal type.
/**
* @brief Value changed signal type.
*/
typedef Signal< void ( ProgressBar, float, float ) > ValueChangedSignalType;
*/
typedef Signal< void ( ProgressBar, float, float ) > ValueChangedSignalType;
* @code
* void YourCallbackName( ProgressBar progressBar, float progressValue, float secondaryProgressValue );
* @endcode
* @code
* void YourCallbackName( ProgressBar progressBar, float progressValue, float secondaryProgressValue );
* @endcode
* @return The signal to connect to
*/
ValueChangedSignalType& ValueChangedSignal();
* @return The signal to connect to
*/
ValueChangedSignalType& ValueChangedSignal();
public: // Not intended for application developers
/// @cond internal
public: // Not intended for application developers
/// @cond internal
} // namespace Toolkit
} // namespace Dali
} // namespace Toolkit
} // namespace Dali
$(public_api_src_dir)/controls/flex-container/flex-container.cpp \
$(public_api_src_dir)/controls/image-view/image-view.cpp \
$(public_api_src_dir)/controls/model3d-view/model3d-view.cpp \
$(public_api_src_dir)/controls/flex-container/flex-container.cpp \
$(public_api_src_dir)/controls/image-view/image-view.cpp \
$(public_api_src_dir)/controls/model3d-view/model3d-view.cpp \
+ $(public_api_src_dir)/controls/progress-bar/progress-bar.cpp \
$(public_api_src_dir)/controls/scroll-bar/scroll-bar.cpp \
$(public_api_src_dir)/controls/scrollable/item-view/default-item-layout.cpp \
$(public_api_src_dir)/controls/scrollable/item-view/item-layout.cpp \
$(public_api_src_dir)/controls/scroll-bar/scroll-bar.cpp \
$(public_api_src_dir)/controls/scrollable/item-view/default-item-layout.cpp \
$(public_api_src_dir)/controls/scrollable/item-view/item-layout.cpp \
$(public_api_src_dir)/image-loader/async-image-loader.h \
$(public_api_src_dir)/image-loader/sync-image-loader.h
$(public_api_src_dir)/image-loader/async-image-loader.h \
$(public_api_src_dir)/image-loader/sync-image-loader.h
+public_api_progress_bar_header_files = \
+ $(public_api_src_dir)/controls/progress-bar/progress-bar.h
+
public_api_scrollable_header_files = \
$(public_api_src_dir)/controls/scrollable/scrollable.h
public_api_scrollable_header_files = \
$(public_api_src_dir)/controls/scrollable/scrollable.h