X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Ftransitions%2Ftransition-application.h;h=84ba5c0172ae65ea90a549e01de5121330fffb14;hb=1b19fd140ff139b5854a1a62447faf31b175d8f6;hp=9d692db43e95f48ba18d86aa105b75be50d79ba4;hpb=4b01383a1f3ee42c8bf96e304840e130ee2b35e2;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/transitions/transition-application.h b/examples/transitions/transition-application.h index 9d692db..84ba5c0 100644 --- a/examples/transitions/transition-application.h +++ b/examples/transitions/transition-application.h @@ -2,7 +2,7 @@ #define DALI_DEMO_TRANSITION_APPLICATION_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 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. @@ -19,11 +19,9 @@ // External includes #include -//#include -#include -#include "beat-control.h" #include #include +#include "shadow-button.h" // Internal includes @@ -32,39 +30,48 @@ using namespace Dali::Toolkit; namespace Demo { - class TransitionApplication : public ConnectionTracker { public: + static const int NUMBER_OF_ACTION_BUTTONS = 2; + +public: // Constructor - TransitionApplication( Application& application ); + TransitionApplication(Application& application); // Destructor ~TransitionApplication(); // Init signal handler - void Create( Application& application ); + void Create(Application& application); // Create the GUI components - Toolkit::TextLabel CreateTitle( std::string title ); - Actor CreateContentPane(); + Toolkit::TextLabel CreateTitle(std::string title); + Actor CreateContentPane(); // Key event handler - void OnKeyEvent( const KeyEvent& event ); + void OnKeyEvent(const KeyEvent& event); bool OnActionButtonClicked(Button button); static const char* DEMO_THEME_ONE_PATH; + static const char* DEMO_THEME_TWO_PATH; private: - Application& mApplication; - TextLabel mTitle; - BeatControl mBeatControl; - PushButton mActionButtons[3]; + /** Create a visual map + * + * @param[in] index The index of the visual to create + * @param[out] map The map to generate + */ + + Application& mApplication; + TextLabel mTitle; + ShadowButton mShadowButton; + PushButton mActionButtons[NUMBER_OF_ACTION_BUTTONS]; + Property::Index mVisualIndex; Property::Index mActionIndex; }; } // Namespace Demo - #endif // DALI_DEMO_TRANSITION_APPLICATION_H