C# Class MediaPortal.Plugins.MovingPictures.MainUI.MovingPicturesGUI

Inheritance: MediaPortal.GUI.Library.GUIWindow
Exibir arquivo Open project: damienhaynes/moving-pictures Class Usage Examples

Public Methods

Method Description
DeInit ( ) : void
Init ( ) : bool
MovingPicturesGUI ( ) : System
OnAction ( MediaPortal action ) : void
OnMessage ( GUIMessage message ) : bool
ResetProperties ( string startsWith ) : void

Resets the property values for every key that starts with the given string

SetProperty ( string property, string value ) : void
SetProperty ( string property, string value, bool forceLogging ) : void
ShowCustomYesNo ( string heading, string lines, string yesLabel, string noLabel, bool defaultYes ) : bool

Displays a yes/no dialog with custom labels for the buttons This method may become obsolete in the future if media portal adds more dialogs

ShowCustomYesNo ( string heading, string lines, string yesLabel, string noLabel, bool defaultYes, int ownerId ) : bool

Displays a yes/no dialog with custom labels for the buttons This method may become obsolete in the future if media portal adds more dialogs

ShowMessage ( string heading, string lines ) : void
ShowMessage ( string heading, string lines, int id ) : void
ShowMessage ( string heading, string line1, string line2, string line3, string line4 ) : void
ShowMessage ( string heading, string line1, string line2, string line3, string line4, int id ) : void
ValidatePin ( int id ) : bool

Protected Methods

Method Description
GUIWindowManager_OnActivateWindow ( int windowId ) : void
GUIWindowManager_OnNewAction ( MediaPortal action ) : void
OnClicked ( int controlId, GUIControl control, MediaPortal actionType ) : void
OnPageDestroy ( int new_windowId ) : void
OnPageLoad ( ) : void
OnShowContextMenu ( ) : void

Private Methods

Method Description
CycleArtwork ( DBMovieInfo movie, bool cycleBack = false ) : void
GetCategoryByName ( List nodeList, string categoryName ) : DBNode

Finds a menu level by it's name

GetCategoryByName ( string categoryName ) : DBNode

Finds a menu level by it's name.

GetCategoryByTranslatedName ( List nodeList, string categoryName ) : DBNode

Finds a menu level by it's name

GetCategoryByTranslatedName ( string categoryName ) : DBNode

Finds a menu level by it's translated name.

GetUserRating ( DBMovieInfo movie ) : bool
HandleInsertedDisk ( DBMovieInfo movie, int part ) : void

Handles action to be taken after a disk has been inserted and added to the database.

Importer_Progress ( int percentDone, int taskCount, int taskTotal, string taskDescription ) : void
MovieDetailsPublisher ( DBMovieInfo movie ) : void

Publishes movie details to the skin. If multiple requests are done within a short period of time the publishing is delayed and only the last request is then published to the skin. This will speed up browsing on "heavy" skins that show a lot of detail on the current selection.

OnBrowserContentsChanged ( ) : void
OnBrowserViewChanged ( BrowserViewMode previousView, BrowserViewMode currentView ) : void
OnMovieAdded ( DatabaseTable obj ) : void

Listens for newly added movies from the database manager. Used for triggering delayed actions when a disk is inserted.

OnVolumeInserted ( string volume, string serial ) : void
OnVolumeRemoved ( string volume, string serial ) : void
ParseParameters ( ) : void

If functionality is available, parses paramaters from GUIWindow.LoadParamater

PublishArtwork ( DBMovieInfo movie ) : void

Publishes movie related artwork to the skin

PublishArtwork ( DBNode node ) : void

Publishes category (node) related artwork to the skin

PublishCategoriesAvailableToSkin ( ) : void

Publishes skin properties for all the users root categories

PublishCategoryDetails ( DBNode node ) : void

Publishes categorie (node) details to the skin instantly

PublishDetails ( DatabaseTable obj, string prefix ) : void

Publishes standard object details to the skin

PublishDetails ( DatabaseTable obj, string prefix, bool forceLogging ) : void

Publishes standard object details to the skin

PublishFilterDetails ( ) : void

Publishes details about the filters to the skin

PublishMovieDetails ( DBMovieInfo movie ) : void

Publishes movie details to the skin instantly

PublishRuntime ( int totalSeconds, bool actualRuntime, string labelPrefix, bool forceLogging ) : void

Calculates and publishes information about the runtime to the skin

PublishViewDetails ( ) : void

Publishes details about the current view to the skin

RefreshMovieArtwork ( DBMovieInfo movie ) : void

Forces a refresh of the artwork allocated to the GUIListItem of this movie

ResetParentalFilterTimer ( ) : void
Search ( SearchMode mode, string searchStr ) : bool
Search ( SearchMode mode ) : void
SetRatingDescriptions ( GUIGeneralRating ratingDlg ) : void
ValidatePin ( ) : bool
deleteMovie ( DBMovieInfo movie ) : void
disableNativeAutoplay ( ) : void

Disable MediaPortal AutoPlay

enableNativeAutoplay ( ) : void

Enable MediaPortal AutoPlay

getUserInput ( ) : string

Displays on screen keyboard prompting the user for input.

movieArtworkUpdateFinished ( IAsyncResult result ) : void
movieArtworkUpdateWorker ( DBMovieInfo movie ) : DBMovieInfo
movieDetailsUpdateFinished ( IAsyncResult result ) : void
movieDetailsUpdateWorker ( DBMovieInfo movie ) : DBMovieInfo
onCoreInitializationProgress ( string actionName, int percentDone ) : void
onMovieEnded ( DBMovieInfo movie ) : void
onMovieStopped ( DBMovieInfo movie ) : void
playSelectedMovie ( ) : void
setWorkingAnimationStatus ( bool visible ) : void
showChangeLayoutContext ( ) : void
showDetailsContext ( ) : void
showFilterContext ( ) : bool
showFilterContext ( ICollection nodeList, bool showClearMenuItem, HashSet availableMovies ) : bool
showLoadingDialog ( ) : void
showMainContext ( ) : void
showSearchContext ( ) : void
showSortContext ( ) : void
toggleParentalControls ( ) : void
updateMovieArtwork ( DBMovieInfo movie ) : void

Updates the movie artwork in a background thread using the preferred dataprovider.

updateMovieDetails ( DBMovieInfo movie ) : void

Updates the movie details in a background thread using the preferred dataprovider.

updateMovieWatchedCount ( DBMovieInfo movie, int newWatchedCount ) : void

Updates the movie's watched counter

Method Details

DeInit() public method

public DeInit ( ) : void
return void

GUIWindowManager_OnActivateWindow() protected method

protected GUIWindowManager_OnActivateWindow ( int windowId ) : void
windowId int
return void

GUIWindowManager_OnNewAction() protected method

protected GUIWindowManager_OnNewAction ( MediaPortal action ) : void
action MediaPortal
return void

Init() public method

public Init ( ) : bool
return bool

MovingPicturesGUI() public method

public MovingPicturesGUI ( ) : System
return System

OnAction() public method

public OnAction ( MediaPortal action ) : void
action MediaPortal
return void

OnClicked() protected method

protected OnClicked ( int controlId, GUIControl control, MediaPortal actionType ) : void
controlId int
control MediaPortal.GUI.Library.GUIControl
actionType MediaPortal
return void

OnMessage() public method

public OnMessage ( GUIMessage message ) : bool
message MediaPortal.GUI.Library.GUIMessage
return bool

OnPageDestroy() protected method

protected OnPageDestroy ( int new_windowId ) : void
new_windowId int
return void

OnPageLoad() protected method

protected OnPageLoad ( ) : void
return void

OnShowContextMenu() protected method

protected OnShowContextMenu ( ) : void
return void

ResetProperties() public method

Resets the property values for every key that starts with the given string
public ResetProperties ( string startsWith ) : void
startsWith string the prefix to reset
return void

SetProperty() public method

public SetProperty ( string property, string value ) : void
property string
value string
return void

SetProperty() public method

public SetProperty ( string property, string value, bool forceLogging ) : void
property string
value string
forceLogging bool
return void

ShowCustomYesNo() public method

Displays a yes/no dialog with custom labels for the buttons This method may become obsolete in the future if media portal adds more dialogs
public ShowCustomYesNo ( string heading, string lines, string yesLabel, string noLabel, bool defaultYes ) : bool
heading string
lines string
yesLabel string
noLabel string
defaultYes bool
return bool

ShowCustomYesNo() public static method

Displays a yes/no dialog with custom labels for the buttons This method may become obsolete in the future if media portal adds more dialogs
public static ShowCustomYesNo ( string heading, string lines, string yesLabel, string noLabel, bool defaultYes, int ownerId ) : bool
heading string
lines string
yesLabel string
noLabel string
defaultYes bool
ownerId int
return bool

ShowMessage() public method

public ShowMessage ( string heading, string lines ) : void
heading string
lines string
return void

ShowMessage() public static method

public static ShowMessage ( string heading, string lines, int id ) : void
heading string
lines string
id int
return void

ShowMessage() public method

public ShowMessage ( string heading, string line1, string line2, string line3, string line4 ) : void
heading string
line1 string
line2 string
line3 string
line4 string
return void

ShowMessage() public static method

public static ShowMessage ( string heading, string line1, string line2, string line3, string line4, int id ) : void
heading string
line1 string
line2 string
line3 string
line4 string
id int
return void

ValidatePin() public static method

public static ValidatePin ( int id ) : bool
id int
return bool