1 #ifndef DALI_DEMO_TRANSITION_APPLICATION_H
2 #define DALI_DEMO_TRANSITION_APPLICATION_H
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
21 #include <dali-toolkit/dali-toolkit.h>
22 #include "shadow-button.h"
29 using namespace Dali::Toolkit;
34 class TransitionApplication : public ConnectionTracker
37 static const int NUMBER_OF_ACTION_BUTTONS=2;
41 TransitionApplication( Application& application );
44 ~TransitionApplication();
46 // Init signal handler
47 void Create( Application& application );
49 // Create the GUI components
50 Toolkit::TextLabel CreateTitle( std::string title );
51 Actor CreateContentPane();
54 void OnKeyEvent( const KeyEvent& event );
56 bool OnActionButtonClicked( Button button );
58 static const char* DEMO_THEME_ONE_PATH;
59 static const char* DEMO_THEME_TWO_PATH;
63 /** Create a visual map
65 * @param[in] index The index of the visual to create
66 * @param[out] map The map to generate
69 Application& mApplication;
71 ShadowButton mShadowButton;
72 PushButton mActionButtons[NUMBER_OF_ACTION_BUTTONS];
73 Property::Index mVisualIndex;
74 Property::Index mActionIndex;
80 #endif // DALI_DEMO_TRANSITION_APPLICATION_H