Commit 500eeef5 authored by Oleg Korshul's avatar Oleg Korshul

add sizes to plugin window

parent 02584b15
...@@ -1529,6 +1529,10 @@ ...@@ -1529,6 +1529,10 @@
this.isUpdateOleOnResize = false; this.isUpdateOleOnResize = false;
this.buttons = [{"text" : "Ok", "primary" : true}, {"text" : "Cancel", "primary" : false}]; this.buttons = [{"text" : "Ok", "primary" : true}, {"text" : "Cancel", "primary" : false}];
this.size = undefined;
this.maximumSize = undefined;
this.minimumSize = undefined;
} }
CPluginVariation.prototype["get_Description"] = function() CPluginVariation.prototype["get_Description"] = function()
...@@ -1633,6 +1637,30 @@ ...@@ -1633,6 +1637,30 @@
{ {
this.buttons = value; this.buttons = value;
}; };
CPluginVariation.prototype["get_Size"] = function()
{
return this.size;
};
CPluginVariation.prototype["set_Size"] = function(value)
{
this.size = value;
};
CPluginVariation.prototype["get_MinimumSize"] = function()
{
return this.minimumSize;
};
CPluginVariation.prototype["set_MinimumSize"] = function(value)
{
this.minimumSize = value;
};
CPluginVariation.prototype["get_MaximumSize"] = function()
{
return this.maximumSize;
};
CPluginVariation.prototype["set_MaximumSize"] = function(value)
{
this.maximumSize = value;
};
CPluginVariation.prototype["serialize"] = function() CPluginVariation.prototype["serialize"] = function()
{ {
...@@ -1655,8 +1683,13 @@ ...@@ -1655,8 +1683,13 @@
_object["isUpdateOleOnResize"] = this.isUpdateOleOnResize; _object["isUpdateOleOnResize"] = this.isUpdateOleOnResize;
_object["buttons"] = this.buttons; _object["buttons"] = this.buttons;
_object["size"] = this.size;
_object["minimumSize"] = this.minimumSize;
_object["maximumSize"] = this.maximumSize;
return _object; return _object;
} };
CPluginVariation.prototype["deserialize"] = function(_object) CPluginVariation.prototype["deserialize"] = function(_object)
{ {
this.description = (_object["description"] != null) ? _object["description"] : this.description; this.description = (_object["description"] != null) ? _object["description"] : this.description;
...@@ -1677,7 +1710,11 @@ ...@@ -1677,7 +1710,11 @@
this.isUpdateOleOnResize = (_object["isUpdateOleOnResize"] != null) ? _object["isUpdateOleOnResize"] : this.isUpdateOleOnResize; this.isUpdateOleOnResize = (_object["isUpdateOleOnResize"] != null) ? _object["isUpdateOleOnResize"] : this.isUpdateOleOnResize;
this.buttons = (_object["buttons"] != null) ? _object["buttons"] : this.buttons; this.buttons = (_object["buttons"] != null) ? _object["buttons"] : this.buttons;
}
this.size = (_object["size"] != null) ? _object["size"] : this.size;
this.minimumSize = (_object["minimumSize"] != null) ? _object["minimumSize"] : this.minimumSize;
this.maximumSize = (_object["maximumSize"] != null) ? _object["maximumSize"] : this.maximumSize;
};
function CPlugin() function CPlugin()
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment