mainprogram.h

来自「一个关于snake算法的VISUAL C++的实现」· C头文件 代码 · 共 45 行

H
45
字号
#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 + =
减小字号Ctrl + -
显示快捷键?