<commit_before>/*
    Copyright 2005-2007 Adobe Systems Incorporated
    Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
    or a copy at http://stlab.adobe.com/licenses.html)
*/

/****************************************************************************************************/

#define ADOBE_DLL_SAFE 0

#include <GG/ClrConstants.h>
#include <GG/EveGlue.h>

#include <GG/adobe/future/modal_dialog_interface.hpp>
#include <GG/adobe/future/platform_primitives.hpp>

// window.hpp needs to come before widget_factory to hook the overrides
#include <GG/adobe/future/widgets/headers/platform_window.hpp>

#include <GG/adobe/future/widgets/headers/window_factory.hpp>
#include <GG/adobe/future/widgets/headers/widget_factory.hpp>
#include <GG/adobe/future/widgets/headers/widget_factory_registry.hpp>

/****************************************************************************************************/

namespace adobe {

/****************************************************************************************************/

void create_widget(const dictionary_t& parameters,
                   size_enum_t         size,
                   window_t*&          window)
{
    std::string name;
    bool        grow(false);
    bool        move_(false);
    bool        on_top(false);
    bool        modal(true);
    GG::Clr     color(GG::CLR_GRAY);
    GG::Clr     text_color(GG::CLR_BLACK);

    get_value(parameters, key_name, name);
    get_value(parameters, key_grow, grow);
    get_value(parameters, key_move, move_);
    get_value(parameters, key_on_top, on_top);
    get_value(parameters, key_modal, modal);
    implementation::get_color(parameters, static_name_t("color"), color);
    implementation::get_color(parameters, static_name_t("text_color"), text_color);<commit_msg>Changed the default of dialog's move parameter from false to true.<commit_after>/*
    Copyright 2005-2007 Adobe Systems Incorporated
    Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
    or a copy at http://stlab.adobe.com/licenses.html)
*/

/****************************************************************************************************/

#define ADOBE_DLL_SAFE 0

#include <GG/ClrConstants.h>
#include <GG/EveGlue.h>

#include <GG/adobe/future/modal_dialog_interface.hpp>
#include <GG/adobe/future/platform_primitives.hpp>

// window.hpp needs to come before widget_factory to hook the overrides
#include <GG/adobe/future/widgets/headers/platform_window.hpp>

#include <GG/adobe/future/widgets/headers/window_factory.hpp>
#include <GG/adobe/future/widgets/headers/widget_factory.hpp>
#include <GG/adobe/future/widgets/headers/widget_factory_registry.hpp>

/****************************************************************************************************/

namespace adobe {

/****************************************************************************************************/

void create_widget(const dictionary_t& parameters,
                   size_enum_t         size,
                   window_t*&          window)
{
    std::string name;
    bool        grow(false);
    bool        move_(true);
    bool        on_top(false);
    bool        modal(true);
    GG::Clr     color(GG::CLR_GRAY);
    GG::Clr     text_color(GG::CLR_BLACK);

    get_value(parameters, key_name, name);
    get_value(parameters, key_grow, grow);
    get_value(parameters, key_move, move_);
    get_value(parameters, key_on_top, on_top);
    get_value(parameters, key_modal, modal);
    implementation::get_color(parameters, static_name_t("color"), color);
    implementation::get_color(parameters, static_name_t("text_color"), text_color);
{'fraction_non_alphanumeric': 0.2576086956521739, 'fraction_numerical': 0.006521739130434782, 'mean_word_length': 4.5604229607250755, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5758624', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1015, 'n_words': 197}