#ifndef __DALI_TOOLKIT_NAVIGATION_CONTROL_H__
#define __DALI_TOOLKIT_NAVIGATION_CONTROL_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.
-//
-
-// EXTERNAL INCLUDES
-#include <boost/function.hpp>
+/*
+ * Copyright (c) 2015 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.
+ *
+ */
// INTERNAL INCLUDES
+#include <dali/public-api/animation/alpha-function.h>
#include <dali-toolkit/public-api/controls/control.h>
#include <dali-toolkit/public-api/controls/navigation-frame/page.h>
#include <dali-toolkit/public-api/controls/navigation-frame/navigation-bar-style.h>
-namespace Dali DALI_IMPORT_API
+namespace Dali
{
namespace Toolkit
* | +-+ +-----+ +-----+ +-+ |
* | +-+ +-----+ +-----+ +-+ | tool bar
* +----------------------------------------+
+ *
+ * Actions
+ * | %Action Name | %NavigationControl method called |
+ * |-------------------|----------------------------------|
+ * | push | %PushItem() |
+ * | pop | %PopItem() |
*/
-
-class NavigationControl : public Control
+class DALI_IMPORT_API NavigationControl : public Control
{
public:
- //Action Names
- static const char* const ACTION_PUSH;
- static const char* const ACTION_POP;
-
-public:
/**
* Create a NavigationControl handle; this can be initialize with NavigationControl::New().
NavigationControl& operator=( const NavigationControl& handle );
/**
- * virtual Destructor.
+ * @brief Destructor
+ *
+ * This is non-virtual since derived Handle types must not contain data or virtual methods.
*/
- virtual ~NavigationControl();
+ ~NavigationControl();
/**
* Create an initialized NavigationControl.
public: //Signal
- typedef SignalV2< void( NavigationControl, Page ) > ItemPushedSignalV2;
- typedef SignalV2< void( NavigationControl, Page ) > ItemPoppedSignalV2;
+ typedef Signal< void( NavigationControl, Page ) > ItemPushedSignalType;
+ typedef Signal< void( NavigationControl, Page ) > ItemPoppedSignalType;
/**
* Signal emitted right after a new item is pushed into the navigation stack.
* @endcode
* @return The signal to connect to.
*/
- ItemPushedSignalV2& ItemPushedSignal();
+ ItemPushedSignalType& ItemPushedSignal();
/**
* Signal emitted right after an item is popped out from the navigation stack.
* The app can use this signal and check the poppedItem to be uninitialized to know the app window should be lower
* @return The signal to connect to.
*/
- ItemPoppedSignalV2& ItemPoppedSignal();
+ ItemPoppedSignalType& ItemPoppedSignal();
* Creates a handle using the Toolkit::Internal implementation.
* @param[in] implementation The Control implementation.
*/
- NavigationControl( Internal::NavigationControl& implementation );
+ DALI_INTERNAL NavigationControl( Internal::NavigationControl& implementation );
/**
* Allows the creation of this Control from an Internal::CustomActor pointer.
* @param[in] internal A pointer to the internal CustomActor.
*/
- NavigationControl( Dali::Internal::CustomActor* internal );
+ explicit DALI_INTERNAL NavigationControl( Dali::Internal::CustomActor* internal );
}; // class NavigationControl