2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://floralicense.org/license/
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an AS IS BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file MpAlbumListEditorPanel.cpp
19 * @brief This is the implementation file for AlbumListEditorPanel class.
22 #include "MpFormFactory.h"
23 #include "MpPanelFactory.h"
24 #include "MpSceneRegister.h"
26 using namespace Tizen::Ui::Scenes;
28 const wchar_t* IDSCN_ALL_LIST = L"AllList";
29 const wchar_t* IDSCN_ALL_LIST_EDITOR = L"AllListEditor";
30 const wchar_t* IDSCN_ALL_CONTENT_PICKER = L"AllContentPicker";
32 const wchar_t* IDSCN_PLAYLIST_LIST = L"PlaylistList";
33 const wchar_t* IDSCN_PLAYLIST_LIST_EDITOR = L"PlaylistListEditor";
34 const wchar_t* IDSCN_PLAYLIST_CREATOR = L"PlaylistCreator";
35 const wchar_t* IDSCN_PLAYLIST_RENAME = L"PlaylistNameEditor";
36 const wchar_t* IDSCN_PLAYLIST_CONTENT_LIST = L"PlaylistContentList";
37 const wchar_t* IDSCN_PLAYLIST_CONTENT_LIST_EDITOR = L"PlaylistContentListEditor";
38 const wchar_t* IDSCN_USER_PLAYLIST_CONTENT_LIST = L"UserPlaylistContentList";
40 const wchar_t* IDSCN_ALBUM_LIST = L"AlbumList";
41 const wchar_t* IDSCN_ALBUM_LIST_EDITOR = L"AlbumListEditor";
42 const wchar_t* IDSCN_ALBUM_PICKER = L"AlbumPicker";
43 const wchar_t* IDSCN_ALBUM_CONTENT_PICKER = L"AlbumContentPicker";
44 const wchar_t* IDSCN_ALBUM_CONTENT_LIST = L"AlbumContentList";
45 const wchar_t* IDSCN_ALBUM_CONTENT_LIST_EDITOR = L"AlbumContentListEditor";
47 const wchar_t* IDSCN_ARTIST_LIST = L"ArtistList";
48 const wchar_t* IDSCN_ARTIST_LIST_EDITOR = L"ArtistListEditor";
49 const wchar_t* IDSCN_ARTIST_PICKER = L"ArtistPicker";
50 const wchar_t* IDSCN_ARTIST_CONTENT_PICKER = L"ArtistContentPicker";
51 const wchar_t* IDSCN_ARTIST_CONTENT_LIST = L"ArtistContentList";
52 const wchar_t* IDSCN_ARTIST_ALL_SONG_LIST = L"ArtistAllSongList";
53 const wchar_t* IDSCN_ARTIST_ALBUM_LIST = L"ArtistAlbumList";
54 const wchar_t* IDSCN_ARTIST_ALBUM_SEARCH_LIST = L"ArtistAlbumSearchList";
55 const wchar_t* IDSCN_ARTIST_ALBUM_LIST_EDITOR = L"ArtistAlbumListEditor";
57 const wchar_t* IDSCN_GENRE_LIST = L"GenreList";
58 const wchar_t* IDSCN_GENRE_LIST_EDITOR = L"GenreListEditor";
59 const wchar_t* IDSCN_GENRE_PICKER = L"GenrePicker";
60 const wchar_t* IDSCN_GENRE_CONTENT_PICKER = L"GenreContentPicker";
61 const wchar_t* IDSCN_GENRE_CONTENT_LIST = L"GenresContentList";
62 const wchar_t* IDSCN_GENRE_CONTENT_LIST_EDITOR = L"GenreContentListEditor";
64 const wchar_t* IDSCN_COMPOSER_LIST = L"ComposerList";
65 const wchar_t* IDSCN_COMPOSER_LIST_EDITOR = L"ComposerListEditor";
66 const wchar_t* IDSCN_COMPOSER_PICKER = L"ComposerPicker";
67 const wchar_t* IDSCN_COMPOSER_CONTENT_PICKER = L"ComposerContentPicker";
68 const wchar_t* IDSCN_COMPOSER_CONTENT_LIST = L"ComposerContentList";
69 const wchar_t* IDSCN_COMPOSER_CONTENT_LIST_EDITOR = L"ComposerContentListEditor";
71 const wchar_t* IDSCN_YEAR_LIST = L"YearList";
72 const wchar_t* IDSCN_YEAR_LIST_EDITOR = L"YearListEditor";
73 const wchar_t* IDSCN_YEAR_PICKER = L"YearPicker";
74 const wchar_t* IDSCN_YEAR_CONTENT_PICKER = L"YearContentPicker";
75 const wchar_t* IDSCN_YEAR_CONTENT_LIST = L"YearContentList";
76 const wchar_t* IDSCN_YEAR_CONTENT_LIST_EDITOR = L"YearContentListEditor";
78 const wchar_t* IDSCN_FOLDER_LIST = L"FolderList";
79 const wchar_t* IDSCN_FOLDER_LIST_EDITOR = L"FolderContentPickerEditor";
80 const wchar_t* IDSCN_FOLDER_PICKER = L"FolderPicker";
81 const wchar_t* IDSCN_FOLDER_CONTENT_PICKER = L"FolderContentPicker";
82 const wchar_t* IDSCN_FOLDER_CONTENT_LIST = L"FolderContentList";
83 const wchar_t* IDSCN_FOLDER_CONTENT_LIST_EDIT = L"FolderContentListEditor";
85 const wchar_t* IDSCN_SEARCH = L"Search";
86 const wchar_t* IDSCN_PLAYER = L"Player";
87 const wchar_t* IDSCN_MUSIC_SETTING = L"MusicSetting";
88 const wchar_t* IDSCN_CONTENT_DETAIL = L"ContentDetail";
90 SceneRegister::SceneRegister(void)
96 SceneRegister::~SceneRegister(void)
103 SceneRegister::RegisterAllScenes(void)
105 AppLogDebug("ENTER");
106 result r = E_SUCCESS;
107 static const wchar_t* PANEL_BLANK = L"";
108 static FormFactory formFactory;
109 static PanelFactory panelFactory;
111 SceneManager* pSceneManager = SceneManager::GetInstance();
112 AppAssert(pSceneManager);
114 r = pSceneManager->RegisterFormFactory(formFactory);
115 r = pSceneManager->RegisterPanelFactory(panelFactory);
117 r = pSceneManager->RegisterScene(IDSCN_PLAYER, IDC_PLAYER_FORM, PANEL_BLANK);
118 r = pSceneManager->RegisterScene(IDSCN_MUSIC_SETTING, IDC_MUSIC_SETTING_FORM, PANEL_BLANK);
119 r = pSceneManager->RegisterScene(IDSCN_SEARCH, IDC_SEARCH_FORM, PANEL_BLANK);
121 r = pSceneManager->RegisterScene(IDSCN_ALL_LIST, IDC_CONTENT_FORM, IDC_ALL_LIST_PANEL);
122 r = pSceneManager->RegisterScene(IDSCN_PLAYLIST_LIST, IDC_CONTENT_FORM, IDC_PLAYLIST_LIST_PANEL);
123 r = pSceneManager->RegisterScene(IDSCN_ALBUM_LIST, IDC_CONTENT_FORM, IDC_ALBUM_LIST_PANEL);
124 r = pSceneManager->RegisterScene(IDSCN_ARTIST_LIST, IDC_CONTENT_FORM, IDC_ARTIST_LIST_PANEL);
125 // r = pSceneManager->RegisterScene(IDSCN_GENRE_LIST, IDC_CONTENT_FORM, IDC_GENRES_LIST_PANEL);
126 // r = pSceneManager->RegisterScene(IDSCN_COMPOSER_LIST, IDC_CONTENT_FORM, IDC_COMPOSER_LIST_PANEL);
127 // r = pSceneManager->RegisterScene(IDSCN_YEAR_LIST, IDC_CONTENT_FORM, IDC_YEAR_LIST_PANEL);
128 r = pSceneManager->RegisterScene(IDSCN_FOLDER_LIST, IDC_CONTENT_FORM, IDC_FOLDER_LIST_PANEL);
130 r = pSceneManager->RegisterScene(IDSCN_ALL_LIST_EDITOR, IDC_CONTENT_FORM, IDC_ALL_LIST_EDITOR_PANEL);
131 r = pSceneManager->RegisterScene(IDSCN_PLAYLIST_LIST_EDITOR, IDC_CONTENT_FORM, IDC_PLAYLIST_LIST_EDITOR_PANEL);
132 r = pSceneManager->RegisterScene(IDSCN_ALBUM_LIST_EDITOR, IDC_CONTENT_FORM, IDC_ALBUM_LIST_EDITOR_PANEL);
133 r = pSceneManager->RegisterScene(IDSCN_ARTIST_LIST_EDITOR, IDC_CONTENT_FORM, IDC_ARTIST_LIST_EDITOR_PANEL);
134 // r = pSceneManager->RegisterScene(IDSCN_GENRE_LIST_EDITOR, IDC_CONTENT_FORM, IDC_GENRES_LIST_EDITOR_PANEL);
135 // r = pSceneManager->RegisterScene(IDSCN_COMPOSER_LIST_EDITOR, IDC_CONTENT_FORM, IDC_COMPOSER_LIST_EDITOR_PANEL);
136 // r = pSceneManager->RegisterScene(IDSCN_YEAR_LIST_EDITOR, IDC_CONTENT_FORM, IDC_YEAR_LIST_EDITOR_PANEL);
137 r = pSceneManager->RegisterScene(IDSCN_FOLDER_LIST_EDITOR, IDC_CONTENT_FORM, IDC_FOLDER_LIST_EDITOR_PANEL);
139 // r = pSceneManager->RegisterScene(IDSCN_ALBUM_PICKER, IDC_CONTENT_FORM, IDC_ALBUM_PICKER_PANEL);
140 // r = pSceneManager->RegisterScene(IDSCN_ARTIST_PICKER, IDC_CONTENT_FORM, IDC_ARTIST_PICKER_PANEL);
141 // r = pSceneManager->RegisterScene(IDSCN_GENRE_PICKER, IDC_CONTENT_FORM, IDC_GENRE_PICKER_PANEL);
142 // r = pSceneManager->RegisterScene(IDSCN_COMPOSER_PICKER,IDC_CONTENT_FORM, IDC_COMPOSER_PICKER_PANEL);
143 // r = pSceneManager->RegisterScene(IDSCN_YEAR_PICKER, IDC_CONTENT_FORM, IDC_YEAR_PICKER_PANEL);
144 // r = pSceneManager->RegisterScene(IDSCN_FOLDER_PICKER, IDC_CONTENT_FORM, IDC_FOLDER_PICKER_PANEL);
146 r = pSceneManager->RegisterScene(IDSCN_ALL_CONTENT_PICKER, IDC_CONTENT_PICKER_FORM, IDC_ALL_CONTENT_PICKER_PANEL);
147 // r = pSceneManager->RegisterScene(IDSCN_ALBUM_CONTENT_PICKER, IDC_CONTENT_FORM, IDC_ALBUM_CONTENT_PICKER_PANEL);
148 // r = pSceneManager->RegisterScene(IDSCN_ARTIST_CONTENT_PICKER, IDC_CONTENT_FORM, IDC_ARTIST_CONTENT_PICKER_PANEL);
149 // r = pSceneManager->RegisterScene(IDSCN_GENRE_CONTENT_PICKER, IDC_CONTENT_FORM, IDC_GENRE_CONTENT_PICKER_PANEL);
150 // r = pSceneManager->RegisterScene(IDSCN_COMPOSER_CONTENT_PICKER,IDC_CONTENT_FORM, IDC_COMPOSER_CONTENT_PICKER_PANEL);
151 // r = pSceneManager->RegisterScene(IDSCN_YEAR_CONTENT_PICKER, IDC_CONTENT_FORM, IDC_YEAR_CONTENT_PICKER_PANEL);
152 // r = pSceneManager->RegisterScene(IDSCN_FOLDER_CONTENT_PICKER, IDC_CONTENT_FORM, IDC_FOLDER_CONTENT_PICKER_PANEL);
154 r = pSceneManager->RegisterScene(IDSCN_ALBUM_CONTENT_LIST, IDC_ALBUM_CONTENT_LIST_FORM, PANEL_BLANK);
155 r = pSceneManager->RegisterScene(IDSCN_ARTIST_CONTENT_LIST, IDC_ARTIST_CONTENT_LIST_FORM, PANEL_BLANK);
156 // r = pSceneManager->RegisterScene(IDSCN_GENRE_CONTENT_LIST, IDC_GENRE_CONTENT_LIST_FORM, PANEL_BLANK);
157 // r = pSceneManager->RegisterScene(IDSCN_COMPOSER_CONTENT_LIST, IDC_COMPOSER_CONTENT_LIST_FORM,PANEL_BLANK);
158 // r = pSceneManager->RegisterScene(IDSCN_YEAR_CONTENT_LIST, IDC_YEAR_CONTENT_LIST_FORM, PANEL_BLANK);
159 r = pSceneManager->RegisterScene(IDSCN_FOLDER_CONTENT_LIST, IDC_FOLDER_CONTENT_LIST_FORM, PANEL_BLANK);
160 r = pSceneManager->RegisterScene(IDSCN_PLAYLIST_CONTENT_LIST, IDC_PLAYLIST_CONTENT_LIST_FORM, PANEL_BLANK);
162 // r = pSceneManager->RegisterScene(IDSCN_ARTIST_ALBUM_LIST, IDC_ARTIST_ALBUM_LIST_FORM, PANEL_BLANK);
163 // r = pSceneManager->RegisterScene(IDSCN_ARTIST_ALBUM_SEARCH_LIST, IDC_ARTIST_ALBUM_LIST_SEARCH_FORM,PANEL_BLANK);
164 // r = pSceneManager->RegisterScene(IDSCN_ARTIST_ALBUM_LIST_EDITOR, IDC_ARTIST_ALBUM_LIST_EDIT_FORM, PANEL_BLANK);
165 // r = pSceneManager->RegisterScene(IDSCN_ARTIST_ALL_SONG_LIST, IDC_ARTIST_ALL_SONG_LIST_FORM, PANEL_BLANK);
167 r = pSceneManager->RegisterScene(IDSCN_PLAYLIST_CREATOR, IDC_PLAYLIST_CREATOR_FORM, PANEL_BLANK);
168 r = pSceneManager->RegisterScene(IDSCN_PLAYLIST_RENAME, IDC_PLAYLIST_RENAME_FORM, PANEL_BLANK);
169 r = pSceneManager->RegisterScene(IDSCN_USER_PLAYLIST_CONTENT_LIST, IDC_USER_PLAYLIST_CONTENT_LIST_FORM, PANEL_BLANK);
171 r = pSceneManager->RegisterScene(IDSCN_CONTENT_DETAIL, IDC_CONTENT_DETAIL_FORM, PANEL_BLANK);