| 53 | } |
| 54 | |
| 55 | void DurationController::enableInterface(){ |
| 56 | if(!enabled){ |
| 57 | enabled = true; |
| 58 | ofAddListener(ofEvents().update, this, &DurationController::update); |
| 59 | ofAddListener(ofEvents().draw, this, &DurationController::draw); |
| 60 | ofAddListener(ofEvents().keyPressed, this, &DurationController::keyPressed); |
| 61 | gui->enable(); |
| 62 | gui->disableAppEventCallbacks(); |
| 63 | timeline.enable(); |
| 64 | map<string,ofPtr<ofxTLUIHeader> >::iterator it = headers.begin(); |
| 65 | while(it != headers.end()){ |
| 66 | it->second->getGui()->enable(); |
| 67 | it++; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | void DurationController::disableInterface(){ |
| 73 | if(enabled){ |