<commit_before>/*========================================================================

   This file is part of the GOsa project -  http://gosa-project.org

   Copyright:
      (C) 2010-2017 GONICUS GmbH, Germany, http://www.gonicus.de

   License:
      LGPL-2.1: http://www.gnu.org/licenses/lgpl-2.1.html

   See the LICENSE file in the project's top-level directory for details.

======================================================================== */

/*
#asset(gosa/*)
*/

qx.Class.define("gosa.ui.dialogs.RpcError", {

  extend: gosa.ui.dialogs.Dialog,

  construct: function(msg)
  {
    this.base(arguments, this.tr("Error"));

    var message = new qx.ui.basic.Label(msg);
    this.addElement(message);

    var ok = gosa.ui.base.Buttons.getOkButton();
    ok.addListener("execute", this.close, this);
    this.addButton(ok);

    // var retry = gosa.ui.base.Buttons.getButton(this.tr("Retry"), "actions/dialog-retry.png");
    // retry.addListener("execute", function(){
    //     this.close();
    //     this.fireEvent("retry");
    // }, this);
    // this.addButton(retry);
  },

  events: {
    "retry" : "qx.event.type.Event"
  }
});<commit_msg>Style RPC error dialog<commit_after>/*========================================================================

   This file is part of the GOsa project -  http://gosa-project.org

   Copyright:
      (C) 2010-2017 GONICUS GmbH, Germany, http://www.gonicus.de

   License:
      LGPL-2.1: http://www.gnu.org/licenses/lgpl-2.1.html

   See the LICENSE file in the project's top-level directory for details.

======================================================================== */

/*
#asset(gosa/*)
*/

qx.Class.define("gosa.ui.dialogs.RpcError", {

  extend: gosa.ui.dialogs.Dialog,

  construct: function(msg)
  {
    this.base(arguments, this.tr("Error"));

    var message = new qx.ui.basic.Label(msg);
    this.addElement(message);

    var ok = gosa.ui.base.Buttons.getOkButton();
    ok.addListener("execute", this.close, this);
    ok.setAppearance("button-danger");

    this.addButton(ok);
  },

  events: {
    "retry" : "qx.event.type.Event"
  },

  properties : {
    //overridden
    appearance : {
      refine : true,
      init : "window-error"
    }
  }
});
{'fraction_non_alphanumeric': 0.27636849132176233, 'fraction_numerical': 0.010680907877169559, 'mean_word_length': 3.273764258555133, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4154044', 'n_tokens_mistral': 758, 'n_tokens_neox': 714, 'n_words': 129}