X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Flayouting%2Flinear-example.h;h=a1496bb6312c2c2e2b718a02b15c4c6844f7bf83;hb=94209fff2d09075cb1dc0f0f52e741d2fa61240c;hp=5779379edd9fb8d45681d119c7eb2c4d61541dfd;hpb=037f576518a62e16e998d4d9d3b86cb929f12cd0;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/layouting/linear-example.h b/examples/layouting/linear-example.h index 5779379..a1496bb 100644 --- a/examples/layouting/linear-example.h +++ b/examples/layouting/linear-example.h @@ -21,6 +21,8 @@ #include #include +#include "example.h" + using namespace Dali; using namespace Dali::Toolkit; @@ -32,16 +34,15 @@ namespace Demo * @brief Example of a Linear Layout with mirror feature and * tranisition from horizontal to vertical. */ -class LinearExample: public ConnectionTracker +class LinearExample final: public ConnectionTracker, public Example { - public: // Creates a Linear Layout Example and displays it. - void Create(); + virtual void Create() override; // Remove and destroy this layout - void Remove(); + virtual void Remove() override; private: @@ -55,10 +56,10 @@ private: PushButton mDirectionButton; PushButton mRotateButton; Control mLinearContainer; - bool mDirection; + bool mDirection = false; bool mIsHorizontal = true; }; // class LinearContainer } // namespace Demo -#endif //DALI_DEMO_LINEAR_CONTAINER_H \ No newline at end of file +#endif //DALI_DEMO_LINEAR_CONTAINER_H