www.pudn.com > snake_vc++.rar > MainProgram.h
#pragma once // Qt includes #include// 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; };