KINECT STATS GENERATOR FOR SPORTS VISUALISATION  1.0
ExtendedQMdiSubWindow.cpp
Go to the documentation of this file.
00001 #include "ExtendedQMdiSubWindow.h"
00002 #include "MainWindow.h"
00003 
00004 #include <iostream>
00005 
00006 /*
00007   LICENSING: You are free to use any part of this project provided I am informed about it via email
00008   at santoshwins@hotmail.com and referenced appropriately in your works
00009   */
00010 
00011 const std::string statsWindowName = "Statsvz";
00012 const std::string trackingWindowName = "Foregroundlive";
00013 const std::string rgbWindowName = "Rgbvz";
00014 const std::string depthWindowName = "Depthlive";
00015 ExtendedQMdiSubWindow::ExtendedQMdiSubWindow(MainWindow *_parent)
00016 {
00017     m_ptrToMainWindow = _parent;
00018 }
00019 
00020 void ExtendedQMdiSubWindow::closeEvent(QCloseEvent *closeEvent)
00021 {
00022     std::cout<<"closing..";
00023     std::cout<<this->accessibleName().toStdString();
00024 
00025     if(this->accessibleName().toStdString() == statsWindowName)
00026     {
00027         m_ptrToMainWindow->deleteCurrentStatsvz();
00028         std::cout<<"statsclosed";
00029     }
00030 
00031     if(this->accessibleName().toStdString() == trackingWindowName)
00032     {
00033         m_ptrToMainWindow->deleteCurrentTrackingvz();
00034         std::cout<<"trakingvzclosed";
00035     }
00036 
00037     if(this->accessibleName().toStdString() == rgbWindowName)
00038     {
00039         m_ptrToMainWindow->deleteCurrentRGBvz();
00040         std::cout<<"rgbclosed";
00041     }
00042 
00043     if(this->accessibleName().toStdString() == depthWindowName)
00044     {
00045         m_ptrToMainWindow->deleteCurrentDepthvz();
00046         std::cout<<"depthclosed";
00047     }
00048 
00049     //emit closed( this->objectName() );
00050     closeEvent->accept();
00051 }
 All Classes Files Functions Variables Enumerations Enumerator