SetOrientation(ORIENTATION_AUTOMATIC);
AddOrientationEventListener(*this);
- __pPopUp = new (std::nothrow) SlideShowPopUp();
-
- if (__pPopUp != null)
- {
- __pPopUp->Initialize();
- __pPopUp->SetEventListner(this);
- AddControl(__pPopUp);
- }
-
__pPresentationModel = FileListPresentationModel::GetInstance();
__pPresentationModel->ClearThumbnailRequests();
case IDA_CONTEXT_MENU_MORE_SLIDE_SHOW:
{
+ if (__pPopUp != NULL)
+ {
+ delete __pPopUp;
+ __pPopUp = NULL;
+ }
+ __pPopUp = new (std::nothrow) SlideShowPopUp();
+
if (__pPopUp != null)
{
+ __pPopUp->Initialize();
+ __pPopUp->SetEventListner(this);
__pPopUp->SetShowState(true);
__pPopUp->Show();
}
__pPresentationModel = FileListPresentationModel::GetInstance();
__pPresentationModel->ClearThumbnailRequests();
- __pPopUp = new (std::nothrow) SlideShowPopUp();
-
- if (__pPopUp != null)
- {
- __pPopUp->Initialize();
- __pPopUp->SetEventListner(this);
- AddControl(__pPopUp);
- }
-
InitializeFooter();
SetFormBackEventListener(this);
SetOrientation(ORIENTATION_AUTOMATIC);
case IDA_FOOTER_SLIDESHOW:
{
+ if (__pPopUp != NULL)
+ {
+ delete __pPopUp;
+ __pPopUp = NULL;
+ }
+ __pPopUp = new (std::nothrow) SlideShowPopUp();
+
if (__pPopUp != null)
{
+ __pPopUp->Initialize();
+ __pPopUp->SetEventListner(this);
__pPopUp->SetShowState(true);
__pPopUp->Show();
}