⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainprogram.h

📁 一个关于snake算法的VISUAL C++的实现
💻 H
字号:
#pragma once

// Qt includes
#include <QtCore/QObject>

// local includes
#include "MainWindow.h"

// forward declarations
class Snake;
class QtCvWrapper;

//! The MainProgram class
/*! 
 * The MainProgram fires up the gui and defines the needed classes
 * for the program
 */
class MainProgram : public QObject
{
	Q_OBJECT;

public:
	//! constructor for connecting Snake Class with the Qt GUI
	MainProgram(int argc, char* argv[]);

	//! desctructor
	~MainProgram(void);

	//! launches the gui application
	void startGui(int argc, char* argv[]);

	// returns the actual loaded image filename
	inline const QString* getFileName(){m_mainWindow->getFileName();};

protected:

private:
	//! Connection to the GUI
	MainWindow* m_mainWindow;
	//! Connection to the Image-Processing Part
	QtCvWrapper* m_wrapper;


};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -