| 70 | } |
| 71 | |
| 72 | void DurationController::disableInterface(){ |
| 73 | if(enabled){ |
| 74 | enabled = false; |
| 75 | ofRemoveListener(ofEvents().update, this, &DurationController::update); |
| 76 | ofRemoveListener(ofEvents().draw, this, &DurationController::draw); |
| 77 | ofRemoveListener(ofEvents().keyPressed, this, &DurationController::keyPressed); |
| 78 | gui->disable(); |
| 79 | timeline.disable(); |
| 80 | map<string,ofPtr<ofxTLUIHeader> >::iterator it = headers.begin(); |
| 81 | while(it != headers.end()){ |
| 82 | it->second->getGui()->disable(); |
| 83 | it++; |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | bool DurationController::isInterfaceEnabled(){ |
| 89 | return enabled; |