bool perform() { showCorrectTab(); getComponent()->setExplicitFocusOrder (newValue); changed(); return true; }
bool undo() { showCorrectTab(); getComponent()->setExplicitFocusOrder (oldValue); changed(); return true; }
bool perform() { showCorrectTab(); Component* comp = layout.getComponent (oldIndex); layout.moveComponentZOrder (oldIndex, newIndex); newIndex = layout.indexOfComponent (comp); return true; }
bool perform() { showCorrectTab(); PaintElementPath* const path = getElement(); jassert (path != nullptr); path->deletePoint (indexToRemove, false); return path != nullptr; }
bool undo() { showCorrectTab(); PaintElementPath* const path = getElement(); jassert (path != nullptr); path->deletePoint (indexAdded, false); return true; }
bool perform() { showCorrectTab(); PaintElement* newElement = routine.addElementFromXml (*xml, -1, false); jassert (newElement != nullptr); indexAdded = routine.indexOfElement (newElement); jassert (indexAdded >= 0); return indexAdded >= 0; }
bool perform() { showCorrectTab(); Component* const newComp = layout.addComponentFromXml (*xml, false); jassert (newComp != nullptr); indexAdded = layout.indexOfComponent (newComp); jassert (indexAdded >= 0); return indexAdded >= 0; }
bool undo() { Component* c = layout.addComponentFromXml (*xml, false); jassert (c != nullptr); layout.moveComponentZOrder (layout.indexOfComponent (c), oldIndex); showCorrectTab(); return c != nullptr; }
bool undo() { showCorrectTab(); PaintElementPath* const path = getElement(); jassert (path != nullptr); PathPoint* p = path->addPoint (indexToRemove - 1, false); *p = oldValue; return path != nullptr; }
bool undo() { showCorrectTab(); SettableTooltipClient* ttc = dynamic_cast <SettableTooltipClient*> (getComponent()); jassert (ttc != 0); if (ttc == 0) return false; ttc->setTooltip (oldValue); changed(); return true; }
bool undo() { showCorrectTab(); if (SettableTooltipClient* ttc = dynamic_cast <SettableTooltipClient*> (getComponent())) { ttc->setTooltip (oldValue); changed(); return true; } return false; }
bool perform() { showCorrectTab(); PaintElementPath* const path = getElement(); jassert (path != nullptr); PathPoint* const p = path->addPoint (pointIndexToAddItAfter, false); jassert (p != nullptr); indexAdded = path->indexOfPoint (p); jassert (indexAdded >= 0); return true; }
bool changeTo (const PathPoint& value) const { showCorrectTab(); PaintElementPath* const path = getElement(); jassert (path != nullptr); PathPoint* const p = path->getPoint (index); jassert (p != nullptr); const bool typeChanged = (p->type != value.type); *p = value; p->owner = path; if (typeChanged) path->pointListChanged(); path->changed(); return true; }
bool undo() { showCorrectTab(); layout.moveComponentZOrder (newIndex, oldIndex); return true; }
bool undo() { showCorrectTab(); routine.removeElement (routine.getElement (indexAdded), false); return true; }
bool undo() { showCorrectTab(); getElement()->setPosition (oldState, false); return true; }
bool perform() { showCorrectTab(); getElement()->setPosition (newState, false); return true; }
bool undo() { showCorrectTab(); getElement()->setNonZeroWinding (oldValue, false); return true; }
bool perform() { showCorrectTab(); getElement()->setStrokeFill (newState, false); return true; }
bool perform() { showCorrectTab(); getElement()->enableStroke (newState, false); return true; }
bool perform() { showCorrectTab(); layout.removeComponent (getComponent(), false); return true; }
bool undo() { showCorrectTab(); getElement()->enableStroke (oldState, false); return true; }
bool undo() { showCorrectTab(); layout.removeComponent (layout.getComponent (indexAdded), false); return true; }
bool undo() { showCorrectTab(); getElement()->setStrokeFill (oldState, false); return true; }
bool perform() { showCorrectTab(); getElement()->setNonZeroWinding (newValue, false); return true; }