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

Inheritance: MediaPortal.GUI.Library.GUIWindow
Afficher le fichier Open project: damienhaynes/moving-pictures Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

public DeInit ( ) : void
Résultat void

GUIWindowManager_OnActivateWindow() protected méthode

protected GUIWindowManager_OnActivateWindow ( int windowId ) : void
windowId int
Résultat void

GUIWindowManager_OnNewAction() protected méthode

protected GUIWindowManager_OnNewAction ( MediaPortal action ) : void
action MediaPortal
Résultat void

Init() public méthode

public Init ( ) : bool
Résultat bool

MovingPicturesGUI() public méthode

public MovingPicturesGUI ( ) : System
Résultat System

OnAction() public méthode

public OnAction ( MediaPortal action ) : void
action MediaPortal
Résultat void

OnClicked() protected méthode

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

OnMessage() public méthode

public OnMessage ( GUIMessage message ) : bool
message MediaPortal.GUI.Library.GUIMessage
Résultat bool

OnPageDestroy() protected méthode

protected OnPageDestroy ( int new_windowId ) : void
new_windowId int
Résultat void

OnPageLoad() protected méthode

protected OnPageLoad ( ) : void
Résultat void

OnShowContextMenu() protected méthode

protected OnShowContextMenu ( ) : void
Résultat void

ResetProperties() public méthode

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

SetProperty() public méthode

public SetProperty ( string property, string value ) : void
property string
value string
Résultat void

SetProperty() public méthode

public SetProperty ( string property, string value, bool forceLogging ) : void
property string
value string
forceLogging bool
Résultat void

ShowCustomYesNo() public méthode

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
Résultat bool

ShowCustomYesNo() public static méthode

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
Résultat bool

ShowMessage() public méthode

public ShowMessage ( string heading, string lines ) : void
heading string
lines string
Résultat void

ShowMessage() public static méthode

public static ShowMessage ( string heading, string lines, int id ) : void
heading string
lines string
id int
Résultat void

ShowMessage() public méthode

public ShowMessage ( string heading, string line1, string line2, string line3, string line4 ) : void
heading string
line1 string
line2 string
line3 string
line4 string
Résultat void

ShowMessage() public static méthode

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
Résultat void

ValidatePin() public static méthode

public static ValidatePin ( int id ) : bool
id int
Résultat bool