<commit_before>/***********************************************************************************************************************
 * MainView.h
 *
 *  Created on: Jan 10, 2011
 *      Author: <NAME>
 **********************************************************************************************************************/

#ifndef MAINVIEW_H_
#define MAINVIEW_H_

#include "visualizationbase_api.h"

#include "View.h"
#include "MiniMap.h"

namespace Visualization {

class Scene;

class VISUALIZATIONBASE_API MainView: public View
{
	public:
		MainView(Scene *scene);
		virtual ~MainView();

		void setMiniMapSize(int width, int height);

		static const int MINIMAP_DEFAULT_WIDTH = 200;
		static const int MINIMAP_DEFAULT_HEIGHT = 200;

	protected:
		virtual void resizeEvent( QResizeEvent *event );
		virtual void wheelEvent(QWheelEvent *event);
		virtual void scrollContentsBy(int dx, int dy);

	private:
		MiniMap* miniMap;

		static const int SCALING_FACTOR = 10;
		int scaleLevel;
};

}

#endif /* MAINVIEW_H_ */<commit_msg>Changed the scaling factor to 2, essentially limitting how zoomed in the view can be.<commit_after>/***********************************************************************************************************************
 * MainView.h
 *
 *  Created on: Jan 10, 2011
 *      Author: <NAME>
 **********************************************************************************************************************/

#ifndef MAINVIEW_H_
#define MAINVIEW_H_

#include "visualizationbase_api.h"

#include "View.h"
#include "MiniMap.h"

namespace Visualization {

class Scene;

class VISUALIZATIONBASE_API MainView: public View
{
	public:
		MainView(Scene *scene);
		virtual ~MainView();

		void setMiniMapSize(int width, int height);

		static const int MINIMAP_DEFAULT_WIDTH = 200;
		static const int MINIMAP_DEFAULT_HEIGHT = 200;

	protected:
		virtual void resizeEvent( QResizeEvent *event );
		virtual void wheelEvent(QWheelEvent *event);
		virtual void scrollContentsBy(int dx, int dy);

	private:
		MiniMap* miniMap;

		static const int SCALING_FACTOR = 2;
		int scaleLevel;
};

}

#endif /* MAINVIEW_H_ */
{'fraction_non_alphanumeric': 0.29480580252690686, 'fraction_numerical': 0.013102480112306972, 'mean_word_length': 5.896774193548387, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '515586', 'n_tokens_mistral': 672, 'n_tokens_neox': 593, 'n_words': 166}