void DrumTools::editDrumset() { EditDrumset eds(drumset, this); if (eds.exec()) { _score->startCmd(); _score->undo(new ChangeDrumset(staff->part()->instrument(), eds.drumset())); mscore->updateDrumTools(eds.drumset()); if (_score->undoStack()->active()) { _score->setLayoutAll(); _score->endCmd(); } } }
void CodeCompletionManager::ProcessMacros(clEditor* editor) { // Sanity CHECK_PTR_RET(editor); /// disable the editor pre-processor dimming EditorDimmerDisabler eds(editor); wxArrayString macros; wxArrayString includePaths; if(!GetDefinitionsAndSearchPaths(editor, includePaths, macros)) return; // Queue this request in the worker thread m_preProcessorThread.QueueFile(editor->GetFileName().GetFullPath(), macros, includePaths); }
void DrumTools::editDrumset() { EditDrumset eds(drumset, this); eds.exec(); }