-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from pentadoc/OXT-281_3D_Graphics_Prompt
3D Graphics PCI Pass Through Prompt
- Loading branch information
Showing
10 changed files
with
162 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
define([ | ||
"dojo", | ||
"dojo/_base/declare", | ||
// Resources | ||
"dojo/i18n!citrix/xenclient/nls/DisplayPCI", | ||
"dojo/text!citrix/xenclient/templates/DisplayPCI.html", | ||
// Mixins | ||
"citrix/common/Dialog", | ||
"citrix/common/_BoundContainerMixin", | ||
// Required in template | ||
"citrix/common/Repeater", | ||
"citrix/common/BoundWidget", | ||
"citrix/common/Button" | ||
], | ||
function(dojo, declare, displayPCINls, template, dialog, _boundContainerMixin) { | ||
return declare("citrix.xenclient.DisplayPCI", [dialog, _boundContainerMixin], { | ||
|
||
templateString: template, | ||
widgetsInTemplate: true, | ||
canExecute: true, | ||
destroyOnHide: true, | ||
|
||
constructor: function(args) { | ||
this.vm = XUICache.getVM(args.path); | ||
this.devicesOnGPUBus = args.devicesOnGPUBus; | ||
this.cancelCallback = args.cancelCallback; | ||
}, | ||
|
||
postMixInProperties: function() { | ||
dojo.mixin(this, displayPCINls); | ||
this.inherited(arguments); | ||
}, | ||
postCreate: function() { | ||
this.inherited(arguments); | ||
this.subscribe(this.vm.publish_topic, this._messageHandler); | ||
this._bindDijit(); | ||
}, | ||
|
||
_bindDijit: function() { | ||
this.bind(this); | ||
this.set("title", this.DISPLAY_DEVICE); | ||
}, | ||
|
||
onExecute: function(){ | ||
this.inherited(arguments); | ||
}, | ||
|
||
onCancel: function(){ | ||
this.inherited(arguments); | ||
this.cancelCallback(); | ||
}, | ||
|
||
_messageHandler: function(message) { | ||
switch(message.type) { | ||
case XenConstants.TopicTypes.MODEL_STATE_CHANGED: | ||
case XenConstants.TopicTypes.MODEL_CHANGED: { | ||
this._bindDijit(); | ||
break; | ||
} | ||
} | ||
} | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
// Layout | ||
DISPLAY_DEVICE: "Attention", | ||
DEVICE_PROMPT: "When this guest is started, the following additional PCI devices and functions will be passed through:", | ||
DISPLAY_ACTION: "OK", | ||
DISPLAY_CANCEL: "Cancel", | ||
PCI_INFO: "Address: {0}, Class: {1}", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
// Layout | ||
DISPLAY_DEVICE: "Attention", | ||
DEVICE_PROMPT: "When this guest is started, the following additional PCI devices and functions will be passed through:", | ||
DISPLAY_ACTION: "OK", | ||
DISPLAY_CANCEL: "Cancel", | ||
PCI_INFO: "Address: {0}, Class: {1}", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
// Layout | ||
DISPLAY_DEVICE: "Attention", | ||
DEVICE_PROMPT: "When this guest is started, the following additional PCI devices and functions will be passed through:", | ||
DISPLAY_ACTION: "OK", | ||
DISPLAY_CANCEL: "Cancel", | ||
PCI_INFO: "Address: {0}, Class: {1}", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
// Layout | ||
DISPLAY_DEVICE: "Attention", | ||
DEVICE_PROMPT: "When this guest is started, the following additional PCI devices and functions will be passed through:", | ||
DISPLAY_ACTION: "OK", | ||
DISPLAY_CANCEL: "Cancel", | ||
PCI_INFO: "Address: {0}, Class: {1}", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
// Layout | ||
DISPLAY_DEVICE: "Attention", | ||
DEVICE_PROMPT: "When this guest is started, the following additional PCI devices and functions will be passed through:", | ||
DISPLAY_ACTION: "OK", | ||
DISPLAY_CANCEL: "Cancel", | ||
PCI_INFO: "Address: {0}, Class: {1}", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
({ | ||
// Layout | ||
DISPLAY_DEVICE: "Attention", | ||
DEVICE_PROMPT: "When this guest is started, the following additional PCI devices and functions will be passed through:", | ||
DISPLAY_ACTION: "OK", | ||
DISPLAY_CANCEL: "Cancel", | ||
PCI_INFO: "Address: {0}, Class: {1}", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<div class="citrixDialog alertDialog" dojoAttachPoint="containerNode" tabindex="-1" waiRole="dialog" waiState="labelledby-${id}_title"> | ||
<div class="citrixDialogTitleBar"> | ||
<span dojoAttachPoint="titleNode" class="citrixDialogTitle" id="${id}_title"></span> | ||
<span dojoAttachPoint="closeButtonNode" class="citrixDialogCloseIcon" dojoAttachEvent="onclick: onCancel"> | ||
<span dojoAttachPoint="closeText"></span> | ||
</span> | ||
</div> | ||
<div class="citrixDialogPaneContent"> | ||
<div class="left alertIcon alertIconLarge alertIconWarning"></div> | ||
<div class="alertMessage" >${DEVICE_PROMPT}</div> | ||
<ul class="connectDevice" dojoType="citrix.common.Repeater" name="devicesOnGPUBus" uniqueId="addr" > | ||
<li template deviceId="%addr%"> | ||
<div class="device" templateType="citrix.common.BoundWidget" binding="disabled" > | ||
<div class="deviceItem deviceName" templateType="citrix.common.BoundWidget" bind="name"></div> | ||
<div class="deviceItem" templateType="citrix.common.BoundWidget" bind="info" mask="${PCI_INFO}"></div> | ||
</div> | ||
</li> | ||
<li empty class="noDevices"></li> | ||
</ul> | ||
</div> | ||
<div dojoAttachPoint="footerNode" class="citrixDialogFooterContent"> | ||
<span class="citrixDialogFooter right"> | ||
<button dojoAttachPoint="continueButton" dojoType="citrix.common.Button" class="citrixDialogItemRight" dojoAttachEvent="onClick: onExecute">${DISPLAY_ACTION}</button> | ||
<button dojoAttachPoint="closeButton" dojoType="citrix.common.Button" class="citrixDialogItemRight" dojoAttachEvent="onClick: onCancel">${DISPLAY_CANCEL}</button> | ||
</span> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters