C# Class MediaPortal.GUI.Library.GUIFilmstripControl

Inheritance: GUIControl
Mostra file Open project: MediaPortal/MediaPortal-1

Protected Properties

Property Type Description
_allThumbAnimations List
_brackedText string
_enableSMSsearch bool
_frameControl List
_frameFocusControl List
_horizontalScrollbar MediaPortal.GUI.Library.GUIHorizontalScrollbar
_lastSearchItem int
_listLabels List
_scollText string
_scrollContinuously bool
_scrollOffset double
_searchString string
_timeElapsed double

Public Methods

Method Description
Add ( GUIListItem item ) : void
AllocResources ( ) : void
Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void

Method to get animate the current control

Clear ( ) : void
Dispose ( ) : void
FinalizeConstruction ( ) : void

This function is called after all of the XmlSkinnable fields have been filled with appropriate data. Use this to do any construction work other than simple data member assignments, for example, initializing new reference types, extra calculations, etc..

GUIFilmstripControl ( int dwParentID ) : System
GetSelectedItem ( string &strLabel, string &strLabel2, string &strThumbnail, string &strIndex ) : int
GetThumbDimensions ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
GetThumbDimensionsBig ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
GetThumbDimensionsLow ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
HitTest ( int x, int y, int &controlID, bool &focused ) : bool
Insert ( int index, GUIListItem item ) : void
NeedRefresh ( ) : bool
OnAction ( Action action ) : void
OnMessage ( GUIMessage message ) : bool
PreAllocResources ( ) : void

Preallocates the control its DirectX resources.

ReStorePosition ( ) : void

Method to restore the saved-current control rectangle

RemoveItem ( int iItem ) : int
Render ( float timePassed ) : void

The render method. This method will draw the entire filmstrip

Replace ( int index, GUIListItem item ) : void
ScaleToScreenResolution ( ) : void
SetNeedRefresh ( ) : void
SetTextureDimensions ( int iWidth, int iHeight ) : void
SetThumbDimensions ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
SetThumbDimensionsBig ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
SetThumbDimensionsLow ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
ShowBigIcons ( bool bOnOff ) : void
Sort ( IComparer comparer ) : void
StorePosition ( ) : void

Method to store(save) the current control rectangle

this ( int index ) : GUIListItem

Protected Methods

Method Description
OnSelectionChanged ( ) : void

Method which is called if the user selected another item in the filmstrip This method will update the property manager with the properties of the newly selected item

Private Methods

Method Description
Calculate ( ) : void
CheckTimer ( ) : void
OnDown ( ) : void
OnLeft ( ) : void
OnPageDown ( ) : void
OnPageUp ( ) : void
OnRight ( ) : void
OnUp ( ) : bool
Press ( char Key ) : void

Handle keypress events for SMS style search (key '1'..'9')

RenderItem ( int itemNumber, float timePassed, bool bFocus, int dwPosX, int dwPosY, GUIListItem pItem ) : void

Method to render a single item of the filmstrip

RenderScrollbar ( float timePassed ) : void
SearchItem ( string SearchKey, SearchType iSearchMethode ) : void

Search for first item starting with searchkey

SelectItemIndex ( int iItem ) : void
UpdateInfoImage ( ) : void
ValidItem ( int iX ) : bool

Method Details

Add() public method

public Add ( GUIListItem item ) : void
item GUIListItem
return void

AllocResources() public method

public AllocResources ( ) : void
return void

Animate() public method

Method to get animate the current control
public Animate ( float timePassed, MediaPortal.GUI.Library.Animator animator ) : void
timePassed float
animator MediaPortal.GUI.Library.Animator
return void

Clear() public method

public Clear ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

FinalizeConstruction() public method

This function is called after all of the XmlSkinnable fields have been filled with appropriate data. Use this to do any construction work other than simple data member assignments, for example, initializing new reference types, extra calculations, etc..
public FinalizeConstruction ( ) : void
return void

GUIFilmstripControl() public method

public GUIFilmstripControl ( int dwParentID ) : System
dwParentID int
return System

GetSelectedItem() public method

public GetSelectedItem ( string &strLabel, string &strLabel2, string &strThumbnail, string &strIndex ) : int
strLabel string
strLabel2 string
strThumbnail string
strIndex string
return int

GetThumbDimensions() public method

public GetThumbDimensions ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

GetThumbDimensionsBig() public method

public GetThumbDimensionsBig ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

GetThumbDimensionsLow() public method

public GetThumbDimensionsLow ( int &iXpos, int &iYpos, int &iWidth, int &iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

HitTest() public method

public HitTest ( int x, int y, int &controlID, bool &focused ) : bool
x int
y int
controlID int
focused bool
return bool

Insert() public method

public Insert ( int index, GUIListItem item ) : void
index int
item GUIListItem
return void

NeedRefresh() public method

public NeedRefresh ( ) : bool
return bool

OnAction() public method

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

OnMessage() public method

public OnMessage ( GUIMessage message ) : bool
message GUIMessage
return bool

OnSelectionChanged() protected method

Method which is called if the user selected another item in the filmstrip This method will update the property manager with the properties of the newly selected item
protected OnSelectionChanged ( ) : void
return void

PreAllocResources() public method

Preallocates the control its DirectX resources.
public PreAllocResources ( ) : void
return void

ReStorePosition() public method

Method to restore the saved-current control rectangle
public ReStorePosition ( ) : void
return void

RemoveItem() public method

public RemoveItem ( int iItem ) : int
iItem int
return int

Render() public method

The render method. This method will draw the entire filmstrip
public Render ( float timePassed ) : void
timePassed float
return void

Replace() public method

public Replace ( int index, GUIListItem item ) : void
index int
item GUIListItem
return void

ScaleToScreenResolution() public method

public ScaleToScreenResolution ( ) : void
return void

SetNeedRefresh() public method

public SetNeedRefresh ( ) : void
return void

SetTextureDimensions() public method

public SetTextureDimensions ( int iWidth, int iHeight ) : void
iWidth int
iHeight int
return void

SetThumbDimensions() public method

public SetThumbDimensions ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

SetThumbDimensionsBig() public method

public SetThumbDimensionsBig ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

SetThumbDimensionsLow() public method

public SetThumbDimensionsLow ( int iXpos, int iYpos, int iWidth, int iHeight ) : void
iXpos int
iYpos int
iWidth int
iHeight int
return void

ShowBigIcons() public method

public ShowBigIcons ( bool bOnOff ) : void
bOnOff bool
return void

Sort() public method

public Sort ( IComparer comparer ) : void
comparer IComparer
return void

StorePosition() public method

Method to store(save) the current control rectangle
public StorePosition ( ) : void
return void

this() public method

public this ( int index ) : GUIListItem
index int
return GUIListItem

Property Details

_allThumbAnimations protected_oe property

protected List _allThumbAnimations
return List

_brackedText protected_oe property

protected string _brackedText
return string

_enableSMSsearch protected_oe property

protected bool _enableSMSsearch
return bool

_frameControl protected_oe property

protected List _frameControl
return List

_frameFocusControl protected_oe property

protected List _frameFocusControl
return List

_horizontalScrollbar protected_oe property

protected GUIHorizontalScrollbar,MediaPortal.GUI.Library _horizontalScrollbar
return MediaPortal.GUI.Library.GUIHorizontalScrollbar

_lastSearchItem protected_oe property

protected int _lastSearchItem
return int

_listLabels protected_oe property

protected List _listLabels
return List

_scollText protected_oe property

protected string _scollText
return string

_scrollContinuously protected_oe property

protected bool _scrollContinuously
return bool

_scrollOffset protected_oe property

protected double _scrollOffset
return double

_searchString protected_oe property

protected string _searchString
return string

_timeElapsed protected_oe property

protected double _timeElapsed
return double