Skip to content

Commit

Permalink
Replace silly messages in demo by more boring ones
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulanger committed Dec 28, 2020
1 parent 00bec52 commit 01b5e37
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Then search and replace `dialog.` with `qxl.dialog.` and `dialog/` with `qxl/dia

## Changelog

### v3.1.0
### v3.1.0 (Enhancements by @derrell)
- Refactored `qxl.dialog.Dialog` and `qxl.dialog.Form`
- The mass of functionality for Dialog and Form now resides in
mixins, MDialog and MForm. The MDialog mixin is included by two
Expand Down Expand Up @@ -126,7 +126,9 @@ Then search and replace `dialog.` with `qxl.dialog.` and `dialog/` with `qxl/dia
- Fixed the non-functioning `labelColumnWidth`

### v3.0.0
Moved package from cboulanger/qx-contrib-Dialog and changed namespace to `qxl.dialog`

- Moved package from cboulanger/qx-contrib-Dialog
and changed namespace to `qxl.dialog`

### v2.0.0
- Dropped support for qx v5.0 and the python generator
Expand Down
18 changes: 9 additions & 9 deletions source/class/qxl/dialog/demo/Application.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,21 @@ qx.Class.define("qxl.dialog.demo.Application",

createWarning: function (caption, button) {
let dlg = qxl.dialog.Dialog
.warning("I warned you!")
.warning("This is a warning!")
.set({caption});
this._replaceOwnedObject(button, dlg, "dialog");
},

createError: function (caption, button) {
let dlg = qxl.dialog.Dialog
.error("Error, error, error, errr....!")
.error("This is an error!")
.set({caption});
this._replaceOwnedObject(button, dlg, "dialog");
},

createConfirm: function (caption, button) {
let dlg = qxl.dialog.Dialog
.confirm("Do you really want to erase your hard drive?")
.confirm("Proceed with the some action?")
.set({caption});
this._replaceOwnedObject(button, dlg, "dialog1");

Expand All @@ -220,7 +220,7 @@ qx.Class.define("qxl.dialog.demo.Application",

createPrompt: function (caption, button) {
let dlg = qxl.dialog.Dialog
.prompt("Please enter the root password for your server")
.prompt("Please enter a message")
.set({caption});
this._replaceOwnedObject(button, dlg, "dialog1");
dlg.promise()
Expand Down Expand Up @@ -268,13 +268,13 @@ qx.Class.define("qxl.dialog.demo.Application",
*/
createSelect: function (caption, button) {
let dlg1 = qxl.dialog.Dialog
.select("Select the type of record to create:")
.select("Select an option:")
.set({
caption: caption,
options: [
{label: "Database record", value: "database"},
{label: "World record", value: "world"},
{label: "Pop record", value: "pop"}
{label: "Option A", value: "a"},
{label: "Option B", value: "b"},
{label: "Option C", value: "c"}
]
});
this._replaceOwnedObject(button, dlg1, "dialog1");
Expand Down Expand Up @@ -465,7 +465,7 @@ qx.Class.define("qxl.dialog.demo.Application",
var renderer = new qxl.dialog.MultiColumnFormRenderer(form);
var layout = new qx.ui.layout.Grid();
const col = renderer.column;

layout.setSpacing(6);

layout.setColumnMaxWidth(col(0), this.getLabelColumnWidth());
Expand Down

0 comments on commit 01b5e37

Please sign in to comment.