VideoOS.Platform.Client.ViewControl Class Referenceabstract

ViewControl is an easy to use UI component for showing a collection of viewitems in a MIP plugin UI. More...

Inheritance diagram for VideoOS.Platform.Client.ViewControl:

Public Member Functions

virtual bool ChangeLayout (List< ViewControlItem > items, List< Rectangle > viewLayout)
 Change control layout for items with related viewLayout.
 
void Close ()
 Closes the ViewControl. Call this method when it is removed from the UI.
 

Protected Member Functions

 ViewControl ()
 
 ViewControl (List< ViewControlItem > items, List< Rectangle > viewLayout)
 Creates a ViewControl.
 
 ViewControl (List< ViewControlItem > items, List< Rectangle > viewLayout, WindowInformation windowInformation)
 Use this constructor to create a ViewControl that is linked to the mode and playback of the window referenced in the windowInformation.
 

Properties

virtual bool EnabledViewItemToolbars = false [get, set]
 Gets or sets whether the toolbar of the view items in the ViewControl is enabled or not. Default value is false.
 
List< ViewControlItemItems [get, protected set]
 Gets or sets the list of ViewControlItems that belongs to the ViewControl.
 
bool Live [get, set]
 Gets or sets whether the control is in live mode or not. If set to false then the control is in playback mode. If ParentWindowInformation is set, the mode of the whole window is affected.
 
WindowInformation ParentWindowInformation [get]
 Gets the WindowInformation of the window that should control the playback mode and time of the ViewControl. If this is not set, the ViewControl will ignore the playback mode and playback events in the view that it is part of. Obtain the WindowInformation from the ViewItemUserControl, where it will be set before Init is called.
 
DateTime PlaybackTime [get, set]
 Gets or sets the current playback time. If ParentWindowInformation is not set, the playback time of the whole window is affected.
 
virtual ViewControlItem SelectedItem [get, set]
 Gets or sets the current selected item.
 
List< Rectangle > ViewLayout [get, protected set]
 Gets or sets the layout of the view.
 
Guid WindowId [get, protected set]
 Gets the window ID assigned to this ViewControl (not to be confused with the ID of the window containing the control). Can be used for sending messages to view items within the control.
 

Events

EventHandler< ViewControlItemDataArgsItemDataChanged
 Event that is fired when the data for one of the items is changed.

Typically the data is used to persist and later restore the view item using the DataViewControlItem view item type.
 
EventHandler< ViewControlItemArgsSelectedItemChanged
 Event that is fired when the selected viewItem is changed.
 

Detailed Description

ViewControl is an easy to use UI component for showing a collection of viewitems in a MIP plugin UI.

Constructor & Destructor Documentation

◆ ViewControl() [1/3]

VideoOS.Platform.Client.ViewControl.ViewControl ( )
inlineprotected

◆ ViewControl() [2/3]

VideoOS.Platform.Client.ViewControl.ViewControl ( List< ViewControlItem > items,
List< Rectangle > viewLayout )
inlineprotected

Creates a ViewControl.

◆ ViewControl() [3/3]

VideoOS.Platform.Client.ViewControl.ViewControl ( List< ViewControlItem > items,
List< Rectangle > viewLayout,
WindowInformation windowInformation )
inlineprotected

Use this constructor to create a ViewControl that is linked to the mode and playback of the window referenced in the windowInformation.

Member Function Documentation

◆ ChangeLayout()

virtual bool VideoOS.Platform.Client.ViewControl.ChangeLayout ( List< ViewControlItem > items,
List< Rectangle > viewLayout )
inlinevirtual

Change control layout for items with related viewLayout.

Parameters
itemsNew items for the layout.
viewLayoutNew layout elements. Must correspond to items.
Returns
true if layout was updated.

◆ Close()

void VideoOS.Platform.Client.ViewControl.Close ( )
abstract

Closes the ViewControl. Call this method when it is removed from the UI.

Property Documentation

◆ EnabledViewItemToolbars

virtual bool VideoOS.Platform.Client.ViewControl.EnabledViewItemToolbars = false
getset

Gets or sets whether the toolbar of the view items in the ViewControl is enabled or not. Default value is false.

◆ Items

List<ViewControlItem> VideoOS.Platform.Client.ViewControl.Items
getprotected set

Gets or sets the list of ViewControlItems that belongs to the ViewControl.

◆ Live

bool VideoOS.Platform.Client.ViewControl.Live
getsetabstract

Gets or sets whether the control is in live mode or not. If set to false then the control is in playback mode. If ParentWindowInformation is set, the mode of the whole window is affected.

◆ ParentWindowInformation

WindowInformation VideoOS.Platform.Client.ViewControl.ParentWindowInformation
get

Gets the WindowInformation of the window that should control the playback mode and time of the ViewControl. If this is not set, the ViewControl will ignore the playback mode and playback events in the view that it is part of. Obtain the WindowInformation from the ViewItemUserControl, where it will be set before Init is called.

◆ PlaybackTime

DateTime VideoOS.Platform.Client.ViewControl.PlaybackTime
getsetabstract

Gets or sets the current playback time. If ParentWindowInformation is not set, the playback time of the whole window is affected.

◆ SelectedItem

virtual ViewControlItem VideoOS.Platform.Client.ViewControl.SelectedItem
getset

Gets or sets the current selected item.

◆ ViewLayout

List<Rectangle> VideoOS.Platform.Client.ViewControl.ViewLayout
getprotected set

Gets or sets the layout of the view.

◆ WindowId

Guid VideoOS.Platform.Client.ViewControl.WindowId
getprotected set

Gets the window ID assigned to this ViewControl (not to be confused with the ID of the window containing the control). Can be used for sending messages to view items within the control.

Event Documentation

◆ ItemDataChanged

EventHandler<ViewControlItemDataArgs> VideoOS.Platform.Client.ViewControl.ItemDataChanged

Event that is fired when the data for one of the items is changed.

Typically the data is used to persist and later restore the view item using the DataViewControlItem view item type.

◆ SelectedItemChanged

EventHandler<ViewControlItemArgs> VideoOS.Platform.Client.ViewControl.SelectedItemChanged
abstract

Event that is fired when the selected viewItem is changed.