1 #ifndef DALI_DEMO_TRANSITION_APPLICATION_H
2 #define DALI_DEMO_TRANSITION_APPLICATION_H
5 * Copyright (c) 2016 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 <dali-toolkit/devel-api/controls/slider/slider.h>
23 #include <dali-toolkit/devel-api/controls/popup/popup.h>
24 #include "beat-control.h"
31 using namespace Dali::Toolkit;
36 class TransitionApplication : public ConnectionTracker
40 TransitionApplication( Application& application );
43 ~TransitionApplication();
45 // Init signal handler
46 void Create( Application& application );
48 // Create the GUI components
49 Toolkit::TextLabel CreateTitle( std::string title );
50 Actor CreateContentPane();
53 void OnKeyEvent( const KeyEvent& event );
55 bool OnActionButtonClicked(Button button);
57 static const char* DEMO_THEME_ONE_PATH;
60 Application& mApplication;
62 BeatControl mBeatControl;
63 PushButton mActionButtons[3];
64 Property::Index mActionIndex;
70 #endif // DALI_DEMO_TRANSITION_APPLICATION_H