📄 mainprogram.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 + -