MCPcopy Create free account
hub / github.com/YCAMInterlab/Duration / enableInterface

Method enableInterface

Duration/src/DurationController.cpp:55–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void 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
72void DurationController::disableInterface(){
73 if(enabled){

Callers

nothing calls this directly

Calls 1

getGuiMethod · 0.80

Tested by

no test coverage detected