Director dialog

All other topics about Ventuz Director here.

Director dialog

Postby mofo7777 » 06 Oct 2014, 11:19

Hello.

I just wonder how to use the Remote Api to get a similar dialog like the one in the JPG File.

Best regards.
Attachments
Channel.jpg
mofo7777
 
Posts: 53
Joined: 24 Oct 2012, 15:03

Re: Director dialog

Postby Alex Klein » 06 Oct 2014, 12:50

What do you mean with similar? Do you want to access the binding of a window in the layout to a channel? Or do you want to have a combo-box of all channels in the show?
Alex Klein
 

Re: Director dialog

Postby Robert » 06 Oct 2014, 14:11

Hi,

The question is: how to add controls to the properties dialog box of a plugin window?

Rob
User avatar
Robert
 
Posts: 262
Joined: 21 Jan 2012, 09:25
Location: Toulouse - France

Re: Director dialog

Postby Alex Klein » 06 Oct 2014, 15:10

Right now, there isn't a way to add something there. As this dialog is buried deep in the interface (the user has to go to main menu, window, windows, double-click on the right entry), this dialog is only for creating the window and setting the channel/view that is required for the window to work.

Window settings are supposed to be provided as part of the popup that opens up when clicking on the downward triangle in the top right corner of a window (see for example the asset browser). This can be done by creating a WPF UserControl and return it via IPluginWindow.PopupContent (and that would store its configuration via Load/SaveLayoutSettings into the window layout). Note that this is supposed to be used for settings that need to be changed quickly (like if something is viewed in details or list view style in the asset browser). Since window layouts are also saved on a per-project basis (and not a per-show basis), this configuration typically only contains layout/display configuration stuff and nothing required for the window to work.

Note also that a window itself should not contain business logic as it may be destroyed and re-created when window layouts switch. Instead, the business logic should be coded inside IPlugin and the window should only display the information inside IPlugin.

Settings that are independent of a single window and stay the same for the whole show should be implemented via IConfigurablePlugin which will add a settings button next to the plug-ins entry in the plug-in configuration dialog (see main menu under "show"). Those settings are stored inside the show file (and are therefore on a per-show and not a per-project basis).

Examples:
- The SQL connection string to connect to a database: IConfigurablePlugin
- A OSC remote port/address: IConfigurablePlugin
- Let's say you have a plug-in that provides information about the members of a single soccer team. You would typically have two instances of that window inside your window layout and each window would store in its configuration which of both teams it show: IPluginWindow
Alex Klein
 

Re: Director dialog

Postby mofo7777 » 07 Oct 2014, 14:20

Thank you for your answer.

For now i use IConfigurablePlugin and IPluginConfigurationDialog.
mofo7777
 
Posts: 53
Joined: 24 Oct 2012, 15:03


Return to General Discussion