virtual void OnFormMenuRequested (Tizen::Ui::Controls::Form &source);
- void SetFooterState(bool state);
+ void SetMenuState(bool state);
private:
result InitializeFooter(void);
private:
-
+ bool __menuState;
Tizen::Ui::Controls::OptionMenu* __pOptionMenu;
SlideShowPopUp* __pPopUp;
FileListPresentationModel* __pPresentationModel;
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE Scene SYSTEM "UIForm.dtd">
-
-<Scene Bversion="2.0.0.201303182057" Dversion="20120315">
+<Scene Bversion="2.0.0.201306101756" Dversion="20120315">
<LogicalCoordinate>720</LogicalCoordinate>
<Form id="IDL_FORM_ALBUM_LIST">
<property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
<layout mode="Landscape" style="FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
</Form>
<Footer>
- <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="true"/>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_ICON" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" showOptionButton="false"/>
<itemSet/>
</Footer>
<Header>
- <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" titleIconPath="" titleText="" titleTextColor=""/>
+ <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="false" titleIconPath="" titleText="" titleTextColor=""/>
<itemSet/>
</Header>
<IconListView id="IDC_ICONLISTVIEW_ALBUM_LIST" parent="IDL_FORM_ALBUM_LIST">
This XML file was automatically generated by UiBuilder - do not modify by hand.
-->
<!DOCTYPE Scene SYSTEM "UIForm.dtd">
-<Scene Bversion="2.0.0.201305311836" Dversion="20120315">
+<Scene Bversion="2.0.0.201306101756" Dversion="20120315">
<LogicalCoordinate>720</LogicalCoordinate>
<Form id="IDL_FORM_SETTING_MAIN">
<property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
<layout mode="Landscape" style="FORM_STYLE_INDICATOR|FORM_STYLE_HEADER|FORM_STYLE_FOOTER" type="LAYOUT_RELATIVE"/>
</Form>
<Footer>
- <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="true"/>
+ <property backgroundBitmapPath="" color="" colorOpacity="100" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" showBackButton="false" showOptionButton="false"/>
<itemSet/>
</Footer>
<Header>
if (__pPresentationModel->GetAppControlMode() == APPCONTROL_MODE_PICK)
{
- pFooter->SetBackButton();
SetFormBackEventListener(this);
}
else
{
pFooter->SetStyle(FOOTER_STYLE_BUTTON_ICON);
- pFooter->SetBackButton();
- pFooter->SetMenuButton();
pFooter->RemoveAllItems();
FooterItem itemCamera;
}
__itemCount = __pPresentationModel->GetFolderCount();
- if ( __itemCount == 0 )
- {
- GetFooter()->SetMenuButtonEnabled(false);
- }
- else
- {
- GetFooter()->SetMenuButtonEnabled(true);
- }
-
if (__pAlbumViewIconList != null)
{
__pAlbumViewIconList->UpdateList();
__itemCount = __pPresentationModel->GetFolderCount();
__pAlbumViewIconList->UpdateList();
- if (__itemCount == 0 )
- {
- GetFooter()->SetMenuButtonEnabled(false);
- }
- else
- {
- GetFooter()->SetMenuButtonEnabled(true);
- }
-
- GetFooter()->Invalidate(true);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
pHeader->SetStyle(HEADER_STYLE_TITLE);
- GetFooter()->SetBackButtonEnabled(true);
- GetFooter()->SetBackButton();
-
FooterItem itemSave;
itemSave.Construct(IDA_BUTTON_CREATE_NAME_SAVE);
itemSave.SetText(ResourceManager::GetString(L"IDS_COM_OPT_SAVE"));
if( __itemCount == 0)
{
- pFileListForm->SetFooterState(false);
+ pFileListForm->SetMenuState(false);
}
else
{
- pFileListForm->SetFooterState(true);
+ pFileListForm->SetMenuState(true);
}
}
{
pFooter->SetStyle(FOOTER_STYLE_SEGMENTED_TEXT);
}
- pFooter->SetBackButton();
+
SetFormBackEventListener(this);
}
else
{
pFooter->SetStyle(FOOTER_STYLE_BUTTON_ICON_TEXT);
- pFooter->SetMenuButton();
SetFormMenuEventListener(this);
FooterItem footerShare;
delete pBitmapDeleteDim;
TryReturn(r == E_SUCCESS, r, "[%s] Unable to add item", GetErrorMessage(r));
- pFooter->SetBackButton();
SetFormBackEventListener(this);
SceneManager* pSceneManager = SceneManager::GetInstance();
{
if (enableState == true)
{
- pFooter->SetMenuButtonEnabled(true);
pFooter->SetItemEnabled(0, true);
pFooter->SetItemEnabled(1, true);
}
else
{
- pFooter->SetMenuButtonEnabled(false);
pFooter->SetItemEnabled(0, false);
pFooter->SetItemEnabled(1, false);
}
using namespace Tizen::Content;
FileListForm::FileListForm(void)
- : __pOptionMenu(null)
+ : __menuState(true)
+ , __pOptionMenu(null)
, __pPopUp(null)
, __pPresentationModel(null)
{
pFooter->RemoveAllItems();
pFooter->SetStyle(FOOTER_STYLE_BUTTON_ICON);
- pFooter->SetMenuButton();
- pFooter->SetBackButton();
FooterItem itemCamera;
itemCamera.Construct(IDA_FOOTER_CAMERA);
}
void
-FileListForm::SetFooterState(bool state)
+FileListForm::SetMenuState(bool state)
{
- GetFooter()->SetMenuButtonEnabled(state);
- GetFooter()->Invalidate(true);
+ __menuState = state;
}
void
FileListForm::OnFormMenuRequested (Tizen::Ui::Controls::Form &source)
{
- InitializeFooter();
-
- if ( __pOptionMenu == null )
+ if (__menuState == true )
{
- return ;
- }
+ InitializeFooter();
- __pOptionMenu->SetShowState(true);
- __pOptionMenu->Show();
+ if ( __pOptionMenu == null )
+ {
+ return ;
+ }
+
+ __pOptionMenu->SetShowState(true);
+ __pOptionMenu->Show();
+ }
}
__pList->AddGroupedListViewItemEventListener(*this);
}
- Footer* pFooter = GetFooter();
- if (pFooter)
- {
- AppLogDebug("setting back button");
- pFooter->SetBackButtonEnabled(true);
- }
-
SetFormBackEventListener(this);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));