MCPcopy Create free account
hub / github.com/VASTDynamics/Vaporizer2 / buttonClicked

Method buttonClicked

VASTvaporizer/Source/Plugin/VASTMatrixComponent.cpp:198–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void VASTMatrixComponent::buttonClicked(Button* buttonThatWasClicked) {
199 //ICONS
200 if (buttonThatWasClicked == c_iconDelSlots.get()) {
201 myProcessor->m_pVASTXperience.m_Set.modMatrixRemoveAll();
202 myProcessor->requestUIUpdate();
203 }
204
205 if (buttonThatWasClicked == c_iconMaximizeEditor.get()) {
206 if (!myEditor->vaporizerComponent->isTabConcertinaMaximized()) {
207 myEditor->vaporizerComponent->maximizeTabConcertina();
208 }
209 else {
210 myEditor->vaporizerComponent->defaultConcertina();
211 }
212 return;
213 }
214}
215
216void VASTMatrixComponent::startAutoUpdate() {
217 if (isShowing()) grabKeyboardFocus();

Callers

nothing calls this directly

Calls 5

modMatrixRemoveAllMethod · 0.80
maximizeTabConcertinaMethod · 0.80
defaultConcertinaMethod · 0.80
requestUIUpdateMethod · 0.45

Tested by

no test coverage detected