<commit_before>
#ifndef VSCMAINWINDOWS_H
#define VSCMAINWINDOWS_H

#include <QtWidgets/QMainWindow>
#include "ui_vscmainwindows.h"
#include "vevent.hpp"
#include "vscdockwidget.h"
#include "vscview.h"

class VSCDeviceList;
class VSCToolBar;
class VSCMainWindows : public QMainWindow
{
    Q_OBJECT

public:
	void SetupToolBar();
	void SetupMenuBar();
	void CreateActions();
	void CreateDockWindows();
	void SetupConnections();
	void ViewHideFocus();


public slots:
	void AddSurveillance();
	void AddCamera();
	void AddEmap();
	void AddDmining();
	void AddRecorder();

	void Search();
	void Setting();
	void EditCamera(int nId);
	void DeleteCamera(int nId);
	void MainCloseTab(int index);
	void about();
	void UserStatus();
	void SetFullScreen();
	void AddEvent();
	void EditDisk();

	/* Site */
	void AddSite();


	/* VIPC */
	void AddVIPC();
	void EditVIPC(int nId);
	void DeleteVIPC(int nId);

	/* View */
	void DeleteView(int nId);

	/* VIPC */
	void AddVGroup();
	void EditVGroup(int nId);
	void DeleteVGroup(int nId);
	void MapVGroup();
	/* Show Login */
	void ShowLogin();

signals:
    void CameraDeleted();
protected:
       void closeEvent(QCloseEvent* e)
       {
           QMainWindow::closeEvent(e);
           QApplication::quit();
       }
public:
    VSCMainWindows(QWidget *parent = 0);
    ~VSCMainWindows();
private:
    QTabWidget * m_pMainArea;
    VSCView *m_pView;<commit_msg>add closeEvent process<commit_after>
#ifndef VSCMAINWINDOWS_H
#define VSCMAINWINDOWS_H

#include <QtWidgets/QMainWindow>
#include "ui_vscmainwindows.h"
#include "vevent.hpp"
#include "vscdockwidget.h"
#include "vscview.h"

class VSCDeviceList;
class VSCToolBar;
class VSCMainWindows : public QMainWindow
{
    Q_OBJECT

public:
	void SetupToolBar();
	void SetupMenuBar();
	void CreateActions();
	void CreateDockWindows();
	void SetupConnections();
	void ViewHideFocus();
       void closeEvent(QCloseEvent *event); 


public slots:
	void AddSurveillance();
	void AddCamera();
	void AddEmap();
	void AddDmining();
	void AddRecorder();

	void Search();
	void Setting();
	void EditCamera(int nId);
	void DeleteCamera(int nId);
	void MainCloseTab(int index);
	void about();
	void UserStatus();
	void SetFullScreen();
	void AddEvent();
	void EditDisk();

	/* Site */
	void AddSite();


	/* VIPC */
	void AddVIPC();
	void EditVIPC(int nId);
	void DeleteVIPC(int nId);

	/* View */
	void DeleteView(int nId);

	/* VIPC */
	void AddVGroup();
	void EditVGroup(int nId);
	void DeleteVGroup(int nId);
	void MapVGroup();
	/* Show Login */
	void ShowLogin();
	void ExitOpenCVR();

signals:
    void CameraDeleted();

public:
    VSCMainWindows(QWidget *parent = 0);
    ~VSCMainWindows();
private:
    QTabWidget * m_pMainArea;
    VSCView *m_pView;
{'fraction_non_alphanumeric': 0.12755847953216373, 'fraction_numerical': 0.0007309941520467836, 'mean_word_length': 4.463073852295409, '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': '7560528', 'n_tokens_mistral': 999, 'n_tokens_neox': 972, 'n_words': 244}