00001 /* -*- mode: c++ -*- */ 00002 00014 #ifndef PyApp_H 00015 #define PyApp_H 00016 00017 #include <string> 00018 00019 class HdThread; 00020 class Inspector; 00021 class PyCanvas; 00022 class QtApp; 00023 00030 class PyApp 00031 { 00032 private: 00033 00035 static PyApp * s_instance; 00036 00038 QtApp * m_app; 00039 00041 HdThread * m_thread; 00042 00043 public: 00044 00046 PyApp ( ); 00047 00049 PyApp ( int ); 00050 00053 ~PyApp ( ); 00054 00056 static PyApp * instance (); 00057 00059 int exec(); 00060 00063 void quit (); 00064 00066 PyCanvas * currentCanvas (); 00067 00069 void openDocument ( const std::string & filename ); 00070 00071 void lock(); 00072 void unlock(); 00073 }; 00074 00075 #endif // PyApp_H