<commit_before>/*!
  \copyright (c) RDO-Team, 2013
  \file      app/rdo_studio/plugins/game5/src/plugin_game5_graph_dialog.cpp
  \author    <NAME> (<EMAIL>)
  \date      22.09.2013
  \brief     
  \indent    4T
*/

// ---------------------------------------------------------------------------- PCH
// ----------------------------------------------------------------------- INCLUDES
#include "utils/src/common/warning_disable.h"
#include <algorithm>
#include <boost/filesystem/path.hpp>
#include "utils/src/common/warning_enable.h"
// ----------------------------------------------------------------------- SYNOPSIS
#include "app/rdo_studio/src/main_window.h"
#include "app/rdo_studio/src/model/model.h"
#include "app/rdo_studio/src/model/model_tab_ctrl.h"
#include "app/rdo_studio/plugins/game5/src/graph_edge.h"
#include "app/rdo_studio/plugins/game5/src/graph_info.h"
#include "app/rdo_studio/plugins/game5/src/plugin_game5_graph_node_info_dialog.h"
#include "app/rdo_studio/plugins/game5/src/plugin_game5_graph_dialog.h"
// --------------------------------------------------------------------------------

namespace
{
	const int SPACER_X  = 20;
	const int SPACER_Y  = 20;

	const int DPS_CO_INDEX = 4;
	const int DPS_TO_INDEX = 5;
	const int DPS_TT_INDEX = 6;

	bool sortingFunction(GraphNode* first, GraphNode* second)
	{
		const int firstParentOLO  = first ->getParentGraphNode()->getGraphOnLevelOrder();
		const int secondParentOLO = second->getParentGraphNode()->getGraphOnLevelOrder();

		return firstParentOLO < secondParentOLO;
	}
} // end anonymous namespace

PluginGame5GraphDialog::PluginGame5GraphDialog(QWidget * pParent)
	: QDialog(pParent, Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
	, m_traceTimeStamp(getTraceTimeStamp())
	, m_clickedNode(NULL)
	, m_nodeWidth(0)
	, m_nodeHeight(0)
{
	setupUi(this);

	if (pParent)
	{
		move(pParent->frameGeometry().center() - frameGeometry().center());
	}
<commit_msg>#20 добавена кнопка "развернуть" в tilebar PluginGame5GraphDialog<commit_after>/*!
  \copyright (c) RDO-Team, 2013
  \file      app/rdo_studio/plugins/game5/src/plugin_game5_graph_dialog.cpp
  \author    <NAME> (<EMAIL>)
  \date      22.09.2013
  \brief     
  \indent    4T
*/

// ---------------------------------------------------------------------------- PCH
// ----------------------------------------------------------------------- INCLUDES
#include "utils/src/common/warning_disable.h"
#include <algorithm>
#include <boost/filesystem/path.hpp>
#include "utils/src/common/warning_enable.h"
// ----------------------------------------------------------------------- SYNOPSIS
#include "app/rdo_studio/src/main_window.h"
#include "app/rdo_studio/src/model/model.h"
#include "app/rdo_studio/src/model/model_tab_ctrl.h"
#include "app/rdo_studio/plugins/game5/src/graph_edge.h"
#include "app/rdo_studio/plugins/game5/src/graph_info.h"
#include "app/rdo_studio/plugins/game5/src/plugin_game5_graph_node_info_dialog.h"
#include "app/rdo_studio/plugins/game5/src/plugin_game5_graph_dialog.h"
// --------------------------------------------------------------------------------

namespace
{
	const int SPACER_X  = 20;
	const int SPACER_Y  = 20;

	const int DPS_CO_INDEX = 4;
	const int DPS_TO_INDEX = 5;
	const int DPS_TT_INDEX = 6;

	bool sortingFunction(GraphNode* first, GraphNode* second)
	{
		const int firstParentOLO  = first ->getParentGraphNode()->getGraphOnLevelOrder();
		const int secondParentOLO = second->getParentGraphNode()->getGraphOnLevelOrder();

		return firstParentOLO < secondParentOLO;
	}
} // end anonymous namespace

PluginGame5GraphDialog::PluginGame5GraphDialog(QWidget * pParent)
    : QDialog(pParent, Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowMaximizeButtonHint| Qt::WindowCloseButtonHint)
	, m_traceTimeStamp(getTraceTimeStamp())
	, m_clickedNode(NULL)
	, m_nodeWidth(0)
	, m_nodeHeight(0)
{
	setupUi(this);

	if (pParent)
	{
		move(pParent->frameGeometry().center() - frameGeometry().center());
	}

{'fraction_non_alphanumeric': 0.2606316836607809, 'fraction_numerical': 0.01666252176075603, 'mean_word_length': 2.4229787234042552, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, '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': '1461795', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1305, 'n_words': 201}