OnTouchCanceled() calling behaviour has been changed indirectly. effects-panel is...
authorIevgen Zaichuk <i.zaichuk@samsung.com>
Mon, 3 Jun 2013 12:43:37 +0000 (15:43 +0300)
committerIevgen Zaichuk <i.zaichuk@samsung.com>
Mon, 3 Jun 2013 12:43:37 +0000 (15:43 +0300)
Change-Id: I19a74e3cd0ca8063c468741a13aa53cc311b7c6b
Signed-off-by: Ievgen Zaichuk <i.zaichuk@samsung.com>
project/src/EffectsBaseForm.cpp

index 7e89321..c557928 100644 (file)
@@ -84,13 +84,14 @@ EffectsBaseForm::OnInitializing(void)
        Tizen::Graphics::Rectangle boundsForm(GetBounds());
        Tizen::Graphics::Rectangle bounds(boundsForm.x, (boundsHeader.y + boundsHeader.height) * 0, boundsForm.width, boundsForm.height-(boundsHeader.y + boundsHeader.height + pFooter->GetBounds().height));
        __pEffectsPanel->Construct(bounds);
+       __pEffectsPanel->SetShowState(false);
 
        __pDrawBitmapPanel = new DrawPanel();
        __pDrawBitmapPanel->Construct(bounds);
        __pDrawBitmapPanel->AddTouchEventListener(*this);
 
-       AddControl(__pEffectsPanel);
        AddControl(__pDrawBitmapPanel);
+       AddControl(__pEffectsPanel);
 
        //Register effects:
        InitializeEffect();
@@ -148,13 +149,13 @@ EffectsBaseForm::DeleteBitmaps()
 void
 EffectsBaseForm::OnEffectStarted(Effect& effect)
 {
-       __pDrawBitmapPanel->SetShowState(false);
+       __pEffectsPanel->SetShowState(true);
 }
 
 void
 EffectsBaseForm::OnEffectFinished(Effect& effect, EffectResult effectResult, const Tizen::Base::Collection::IList& lastShownBitmapIds)
 {
-       __pDrawBitmapPanel->SetShowState(true);
+       __pEffectsPanel->SetShowState(false);
        SetBackgroundImage((dynamic_cast< const Tizen::Base::Long* >(lastShownBitmapIds.GetAt(0)))->value);
 }