00001 #pragma once 00002 00003 // Qt includes 00004 #include <QtCore/QObject> 00005 00006 // local includes 00007 #include "MainWindow.h" 00008 00009 // forward declarations 00010 class Snake; 00011 class QtCvWrapper; 00012 00014 00018 class MainProgram : public QObject 00019 { 00020 Q_OBJECT; 00021 00022 public: 00024 MainProgram(int argc, char* argv[]); 00025 00027 ~MainProgram(void); 00028 00030 void startGui(int argc, char* argv[]); 00031 00032 // returns the actual loaded image filename 00033 inline const QString* getFileName(){m_mainWindow->getFileName();}; 00034 00035 protected: 00036 00037 private: 00039 MainWindow* m_mainWindow; 00041 QtCvWrapper* m_wrapper; 00042 00043 00044 };