#include "app/Application.h" #include "common/RecourceHelper.h" #include "workspace/WorkSpaceManager.h" #include "entities/EntitiesManager.h" #include "viewer/OsgViewer.h" #include "scene/MeshManager.h" #include "network/NetDriver.h" #include "python/PythonModule.h" Application::Application(int& argc, char** argv, int /*= ApplicationFlags*/) : QApplication(argc, argv) { Init(); } Application::~Application() { Uninit(); } QString Application::GetWorkSpacePath() { const QString path = QString("%1/workspace").arg(applicationDirPath()); return path; } void Application::Init() { Singleton::Create(this); Singleton::Create(this); Singleton::Create(this); Singleton::Create(this); Singleton::Create(this); Singleton::Create(this); //Singleton::Create(this); } void Application::Uninit() { //Singleton::Destory(); Singleton::Destory(); Singleton::Destory(); Singleton::Destory(); Singleton::Destory(); Singleton::Destory(); Singleton::Destory(); }