Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
peuter committed Sep 17, 2017
1 parent ef36807 commit 7cb775e
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 71 deletions.
66 changes: 33 additions & 33 deletions source/class/cv/plugins/openhab/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,39 +201,39 @@ qx.Class.define("cv.plugins.openhab.Settings", {
this.setModified(modified);
},

// overridden
_createChildControlImpl : function(id, hash) {
var control;
switch(id) {

case "title":
control = new qx.ui.basic.Label(this.tr("openHAB backend settings"));
control.set({
font: "bold",
marginBottom: 5,
allowGrowX: true,
decorator: "window-caption"
});
this._addAt(control, 0);
break;

case "form":
control = new qx.ui.form.Form();
break;

case "cancel-button":
control = new qx.ui.form.Button(qx.locale.Manager.tr("Cancel"));
control.addListener("execute", this.close, this);
break;

case "save-button":
control = new qx.ui.form.Button(qx.locale.Manager.tr("Save"));
control.addListener("execute", this._saveConfig, this);
this.bind("modified", control, "enabled");
break;
}
return control || this.base(arguments, id, hash);
},
// overridden
_createChildControlImpl : function(id, hash) {
var control;
switch(id) {

case "title":
control = new qx.ui.basic.Label(this.tr("openHAB backend settings"));
control.set({
font: "bold",
marginBottom: 5,
allowGrowX: true,
decorator: "window-caption"
});
this._addAt(control, 0);
break;

case "form":
control = new qx.ui.form.Form();
break;

case "cancel-button":
control = new qx.ui.form.Button(qx.locale.Manager.tr("Cancel"));
control.addListener("execute", this.close, this);
break;

case "save-button":
control = new qx.ui.form.Button(qx.locale.Manager.tr("Save"));
control.addListener("execute", this._saveConfig, this);
this.bind("modified", control, "enabled");
break;
}
return control || this.base(arguments, id, hash);
},

close: function() {
this.setVisibility("excluded");
Expand Down
72 changes: 36 additions & 36 deletions source/class/cv/plugins/openhab/renderer/Single.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,41 +51,41 @@ qx.Class.define("cv.plugins.openhab.renderer.Single", {
}
},

// overridden
_createChildControlImpl : function(id, hash) {
var control;
switch(id) {

case "content":
control = new qx.ui.container.Composite(new qx.ui.layout.VBox(8));
this._addAt(control, 1);
break;

case "bottom-text":
control = new qx.ui.basic.Label(this.getBottomText());
control.set({
rich: true,
wrap: true
});
this._addAt(control, 2);
if (this.getBottomText()) {
control.show();
} else {
control.exclude();
}
break;

case "button-container":
var hbox = new qx.ui.layout.HBox();
hbox.setAlignX("right");
hbox.setSpacing(5);
control = new qx.ui.container.Composite(hbox);
this._addAt(control, 3);
break;

}
return control || this.base(arguments, id, hash);
},
// overridden
_createChildControlImpl : function(id, hash) {
var control;
switch(id) {

case "content":
control = new qx.ui.container.Composite(new qx.ui.layout.VBox(8));
this._addAt(control, 1);
break;

case "bottom-text":
control = new qx.ui.basic.Label(this.getBottomText());
control.set({
rich: true,
wrap: true
});
this._addAt(control, 2);
if (this.getBottomText()) {
control.show();
} else {
control.exclude();
}
break;

case "button-container":
var hbox = new qx.ui.layout.HBox();
hbox.setAlignX("right");
hbox.setSpacing(5);
control = new qx.ui.container.Composite(hbox);
this._addAt(control, 3);
break;

}
return control || this.base(arguments, id, hash);
},

/**
* Add a group of form items with the corresponding names. The names are
Expand Down Expand Up @@ -118,7 +118,7 @@ qx.Class.define("cv.plugins.openhab.renderer.Single", {
box.add(item, {width: "50%"});
container.add(box);
}
else {
else {
container.add(label);
container.add(item);
}
Expand Down
4 changes: 2 additions & 2 deletions source/class/cv/ui/MHandleMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ qx.Mixin.define("cv.ui.MHandleMessage", {
* e.g. messages get mes_1, mes_2, ... mes_ is the messageElementId)
*/
messageElementId: {
check: "String",
nullable: true
check: "String",
nullable: true
},

delegate: {
Expand Down

0 comments on commit 7cb775e

Please sign in to comment.