Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WindowsStore: Now using WindowsStoreNavigationManager. Added BasePage…
…. Very minimal navigation for now. Related to issue #423.
- Loading branch information
1 parent
80c18ca
commit f8be28a
Showing
22 changed files
with
5,353 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
MPfm/MPfm.WindowsStore/Classes/Navigation/WindowsStoreNavigationManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using System; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using MPfm.Library.Objects; | ||
using MPfm.MVP.Navigation; | ||
using MPfm.MVP.Views; | ||
using MPfm.WindowsStore.Classes.Pages; | ||
using MPfm.WindowsStore.Classes.Pages.Base; | ||
|
||
namespace MPfm.WindowsStore.Classes.Navigation | ||
{ | ||
public class WindowsStoreNavigationManager : MobileNavigationManager | ||
{ | ||
private Action<IBaseView> _onSyncViewReady; | ||
|
||
public override void ShowSplash(ISplashView view) | ||
{ | ||
} | ||
|
||
public override void HideSplash() | ||
{ | ||
} | ||
|
||
public override void AddTab(MobileNavigationTabType type, string title, IBaseView view) | ||
{ | ||
} | ||
|
||
public override void AddTab(MobileNavigationTabType type, string title, MobileLibraryBrowserType browserType, LibraryQuery query, | ||
IBaseView view) | ||
{ | ||
} | ||
|
||
public override void PushTabView(MobileNavigationTabType type, IBaseView view) | ||
{ | ||
} | ||
|
||
public override void PushTabView(MobileNavigationTabType type, MobileLibraryBrowserType browserType, LibraryQuery query, IBaseView view) | ||
{ | ||
} | ||
|
||
public override void PushDialogView(string viewTitle, IBaseView sourceView, IBaseView view) | ||
{ | ||
} | ||
|
||
public override void PushDialogSubview(string parentViewTitle, IBaseView view) | ||
{ | ||
} | ||
|
||
public override void PushPlayerSubview(IPlayerView playerView, IBaseView view) | ||
{ | ||
} | ||
|
||
public override void PushPreferencesSubview(IPreferencesView preferencesView, IBaseView view) | ||
{ | ||
} | ||
|
||
public override void NotifyMobileLibraryBrowserQueryChange(MobileNavigationTabType type, MobileLibraryBrowserType browserType, | ||
LibraryQuery query) | ||
{ | ||
} | ||
|
||
protected override void CreateSyncViewInternal(Action<IBaseView> onViewReady) | ||
{ | ||
_onSyncViewReady = onViewReady; | ||
var frame = Window.Current.Content as Frame; | ||
frame.Navigate(typeof(SyncPage)); | ||
} | ||
|
||
public void SetViewInstance(BasePage page) | ||
{ | ||
if (page is SyncPage) | ||
_onSyncViewReady(page); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using System; | ||
using MPfm.MVP.Views; | ||
using MPfm.WindowsStore.Common; | ||
|
||
namespace MPfm.WindowsStore.Classes.Pages.Base | ||
{ | ||
public class BasePage : LayoutAwarePage, IBaseView | ||
{ | ||
public Action<IBaseView> OnViewDestroy { get; set; } | ||
|
||
public void ShowView(bool shown) | ||
{ | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.