Hi all,
a newbie question.

When you create a new window using parts (window 1) characters
with accents do not look good.

When you create a new window without using parts (window 2) characters
accented if they look good.

All files are encoding with utf-8 without BOM.

Best regards.

[image: Imágenes integradas 2]

*This is my config.json*
{
  "name"    : "myapp",

  "include" :
  [
    {
      "path" : "${QOOXDOO_PATH}/tool/data/config/application.json"
    }
  ],

  "export" :
  [
    "api",
    "api-data",
    "build",
    "clean",
    "distclean",
    "dependencies",
    "fix",
    "info",
    "inspector",
    "lint",
    "migration",
    "pretty",
    "profiling",
    "source",
    "source-all",
    "source-hybrid",
    "source-server",
    "source-server-reload",
    "source-httpd-config",
    "simulation-build",
    "simulation-run",
    "test",
    "test-source",
    "translation",
    "validate-config",
    "validate-manifest",
    "watch"
  ],

  "default-job" : "source-hybrid",

  "let" :
  {
    "APPLICATION"  : "myapp",
    "QOOXDOO_PATH" : "..",
    "QXTHEME"      : "myapp.theme.Theme",
    "API_EXCLUDE"  : ["qx.test.*", "${APPLICATION}.theme.*",
"${APPLICATION}.test.*", "${APPLICATION}.simulation.*"],
    "LOCALES"      : [ "en" ],
    "CACHE"        : "${TMPDIR}/qx${QOOXDOO_VERSION}/cache",
    "ROOT"         : "."
  },

  "jobs" :
  {
    "myappparts":
    {
      "packages" :
      {
        "parts"  :
        {
          "boot"     :
  {
    "include" : [ "${QXTHEME}", "${APPLICATION}.Application" ]
  },
          "settings": {
    "include" : ["${APPLICATION}.view.desktop.PreferenceWindow"]
  }
        }
      }
},
    "source" :
    {
      "extend" : [ "myappparts" ]
    },
    "build" :
    {
      "extend" : [ "myappparts" ]
    }
  }
}


This is my Application.js
qx.Class.define("myapp.Application",
{
  extend : qx.application.Standalone,
  members :
  {
    __Window : null,
    __WindowLoaded : false,
    main : function()
    {
      this.base(arguments);
      if (qx.core.Environment.get("qx.debug"))
      {
        qx.log.appender.Native;
        qx.log.appender.Console;
      }
      var button1 = new qx.ui.form.Button("window 1 áéíóú",
"myapp/test.png");
      var button2 = new qx.ui.form.Button("window 2 áéíóú",
"myapp/test.png");
      var doc = this.getRoot();
      doc.add(button1, {left: 100, top: 50});
      doc.add(button2, {left: 100, top: 150});
      button1.addListener("execute", function(e) {
        qx.io.PartLoader.require(["settings"], function()
        {
          this.__WindowLoaded = true;
          if (!this.__prefWindow)
          {
            this.__Window = new myapp.view.desktop.PreferenceWindow();
          }
          this.__Window.center();
          this.__Window.open();
        }, this);
      });
      button2.addListener("execute", function(e) {
    var w = new qx.ui.window.Window("window 2 áéíóú").set(
        {
          modal         : false,
          showMinimize  : false,
          showMaximize  : false,
          allowMaximize : false
        });
w.center();
w.open();
      });
    }
  }
});


And my PreferenceWindow class.
qx.Class.define("myapp.view.desktop.PreferenceWindow",
{
  extend : qx.ui.window.Window,
  construct : function()
  {
    this.base(arguments, "window 1 áéíóú");
    this.set(
    {
      modal         : false,
      showMinimize  : false,
      showMaximize  : false,
      allowMaximize : false
    });
  },
  members :
  {
  }
});

<<image.png>>

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to