merge with master
[apps/osp/Gallery.git] / src / GlFileListForm.cpp
index c2628bc..c8ccbec 100644 (file)
@@ -35,8 +35,6 @@ using namespace Tizen::Ui::Controls;
 using namespace Tizen::Ui::Scenes;
 using namespace Tizen::Content;
 
-static const String DEFAULT_TITLE = L"File View";
-
 FileListForm::FileListForm(void)
        : __pContextMenuMore(null)
        , __pPresentationModel(null)
@@ -55,7 +53,7 @@ result
 FileListForm::Initialize(void)
 {
        AppLogDebug("ENTER");
-       result r = Construct(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+       result r = Form::Construct(IDL_FORM_FILE_LIST);
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 
        return r;
@@ -70,9 +68,6 @@ FileListForm::OnInitializing(void)
        __pPresentationModel = FileListPresentationModel::GetInstance();
        __pPresentationModel->ClearThumbnailRequests();
 
-       pHeader->SetStyle(HEADER_STYLE_TITLE);
-       pHeader->SetTitleText(DEFAULT_TITLE);
-
        InitializeFooter();
        SetFormBackEventListener(this);
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));