| 69 | } Tooltip; |
| 70 | |
| 71 | class DurationController : public ofThread { |
| 72 | public: |
| 73 | DurationController(); |
| 74 | ~DurationController(); |
| 75 | |
| 76 | void setup(); |
| 77 | |
| 78 | void enableInterface(); |
| 79 | void disableInterface(); |
| 80 | bool isInterfaceEnabled(); |
| 81 | |
| 82 | void update(ofEventArgs& args); |
| 83 | void draw(ofEventArgs& args); |
| 84 | |
| 85 | void keyPressed(ofKeyEventArgs& keyArgs); |
| 86 | |
| 87 | ofxTimeline& getTimeline(); |
| 88 | |
| 89 | ofRectangle canvasRectangle; |
| 90 | ofxUICanvas* gui; |
| 91 | void guiEvent(ofxUIEventArgs& e); |
| 92 | void exit(ofEventArgs& e); |
| 93 | |
| 94 | ofxTLTrack* addTrack(string trackType, string trackName = "", string xmlFileName = ""); |
| 95 | |
| 96 | //control elements |
| 97 | ofxUIDropDownList* projectDropDown; |
| 98 | ofxUIMultiImageButton* saveButton; |
| 99 | ofxUILabel* timeLabel; |
| 100 | ofxUITextInput* durationLabel; |
| 101 | ofxUIMultiImageToggle* playpauseToggle; |
| 102 | ofxUIMultiImageButton* stopButton; |
| 103 | ofxUIMultiImageToggle* loopToggle; |
| 104 | |
| 105 | //project settings elements |
| 106 | ofxUILabelToggle* useBPMToggle; |
| 107 | ofxUINumberDialer* bpmDialer; |
| 108 | |
| 109 | //TODO: find a place for these |
| 110 | ofxUILabelToggle* snapToKeysToggle; |
| 111 | |
| 112 | ofxUILabelToggle* enableOSCInToggle; |
| 113 | ofxUILabelToggle* enableOSCOutToggle; |
| 114 | ofxUITextInput* oscInPortInput; |
| 115 | ofxUITextInput* oscOutIPInput; |
| 116 | ofxUITextInput* oscOutPortInput; |
| 117 | |
| 118 | vector<string> trackTypes; |
| 119 | ofxUIDropDownList* addTrackDropDown; |
| 120 | |
| 121 | string defaultProjectDirectoryPath; |
| 122 | DurationProjectSettings settings; |
| 123 | |
| 124 | void newProject(string projectPath); |
| 125 | void newProject(string newProjectPath, string newProjectName); |
| 126 | void loadProject(string projectPath, bool forceCreate = false); |
| 127 | void loadProject(string projectPath, string projectName, bool forceCreate = false); |
| 128 | void saveProject(); |
nothing calls this directly
no outgoing calls
no test coverage detected