//------------------------------------------------------------------------------ // deleteData() -- delete this object's data //------------------------------------------------------------------------------ void Component::deleteData() { // just in case our components haven't heard, we're shutting down! shutdownNotification(); // Delete component selection setSelectionName(0); selected = 0; // Delete list of components components = 0; }
//----------------------------------------------------------------------------- // onEscKey() - from event handler //----------------------------------------------------------------------------- bool GlutDisplay::onEscKey() { if (isMainDisplay()) { shutdownNotification(); if (isMessageEnabled(MSG_INFO)) { std::cout<<"Eaagles::Glut::GlutDisplay::onEscKey()Exit by the ESC key!"<<std::endl; } #ifdef __FREEGLUT_EXT_H__ /* freeglut only */ glutLeaveMainLoop(); return true; #else std::exit(0); #endif } return false; }
void Component::deleteData() { // just in case our components haven't heard, we're shutting down! shutdownNotification(); // Delete component selection setSelectionName(nullptr); selected = nullptr; // Delete list of components components = nullptr; if (timingStats != nullptr) { timingStats->unref(); timingStats = nullptr; } }