void KnobGui::copyLinkToClipboard(int dimension) const { copyToClipBoard(eKnobClipBoardTypeCopyLink, dimension); }
void KnobGui::copyAnimationToClipboard(int dimension) const { copyToClipBoard(eKnobClipBoardTypeCopyAnim, dimension); }
void KnobGui::copyValuesToClipboard(int dimension ) const { copyToClipBoard(eKnobClipBoardTypeCopyValue, dimension); }
void ofxGLEditor::keyPressed(int key) { bool alt = kmap.isAltDown(); bool shift = kmap.isShiftDown(); bool ctrl = kmap.isControlDown(); int mod = 0; if (shift) { mod = 1; }else if (ctrl) { mod = 2; }else if (alt) { mod = 4; } int special = 0; if ( key == OF_KEY_LEFT || key == OF_KEY_UP || key == OF_KEY_RIGHT || key == OF_KEY_DOWN || key == OF_KEY_PAGE_UP || key == OF_KEY_PAGE_DOWN || key == OF_KEY_HOME || key == OF_KEY_END || key == OF_KEY_INSERT ) { special = key - 256; key = 0; } if (alt && key == 'r') { int i = 0; string script; for (int i = 0; i < glEditor.size(); i++) { script += wstring_to_string(glEditor[i]->GetAllText()); script += "\n"; glEditor[i]->m_haveError = false; glEditor[i]->m_errorLine = 0; } ofNotifyEvent(doCompileEvent, script); }else if (alt && key == 'b') { glEditor[currentEditor]->BlowupCursor(); }else if (alt && key == 'a') { glEditor[currentEditor]->ClearAllText(); glEditor[currentEditor]->m_haveError = false; glEditor[currentEditor]->m_errorLine = 0; }else if (alt && key == 'c') { copyToClipBoard(); }else if (alt && key == 'v') { pasteFromClipBoard(); }else if (alt && key == 's') { saveToFile(); }/*else if (alt && key == '1') { currentEditor = 1; }else if (alt && key == '2') { currentEditor = 2; }else if (alt && key == '3') { currentEditor = 3; }else if (alt && key == '4') { currentEditor = 4; }else if (alt && key == '5') { currentEditor = 5; }else if (alt && key == '6') { currentEditor = 6; }else if (alt && key == '7') { currentEditor = 7; }else if (alt && key == '8') { currentEditor = 8; }else if (alt && key == '9') { currentEditor = 9; }*/ glEditor[currentEditor]->Handle(-1, key, special, 0, ofGetMouseX(), ofGetMouseY(), mod); }