bool perform()
 {
     showCorrectTab();
     getComponent()->setExplicitFocusOrder (newValue);
     changed();
     return true;
 }
 bool undo()
 {
     showCorrectTab();
     getComponent()->setExplicitFocusOrder (oldValue);
     changed();
     return true;
 }
Ejemplo n.º 3
0
 bool perform()
 {
     showCorrectTab();
     Component* comp = layout.getComponent (oldIndex);
     layout.moveComponentZOrder (oldIndex, newIndex);
     newIndex = layout.indexOfComponent (comp);
     return true;
 }
Ejemplo n.º 4
0
    bool perform()
    {
        showCorrectTab();

        PaintElementPath* const path = getElement();
        jassert (path != nullptr);

        path->deletePoint (indexToRemove, false);
        return path != nullptr;
    }
Ejemplo n.º 5
0
    bool undo()
    {
        showCorrectTab();

        PaintElementPath* const path = getElement();
        jassert (path != nullptr);

        path->deletePoint (indexAdded, false);
        return true;
    }
Ejemplo n.º 6
0
    bool perform()
    {
        showCorrectTab();
        PaintElement* newElement = routine.addElementFromXml (*xml, -1, false);
        jassert (newElement != nullptr);

        indexAdded = routine.indexOfElement (newElement);
        jassert (indexAdded >= 0);
        return indexAdded >= 0;
    }
Ejemplo n.º 7
0
    bool perform()
    {
        showCorrectTab();
        Component* const newComp = layout.addComponentFromXml (*xml, false);
        jassert (newComp != nullptr);

        indexAdded = layout.indexOfComponent (newComp);
        jassert (indexAdded >= 0);
        return indexAdded >= 0;
    }
Ejemplo n.º 8
0
    bool undo()
    {
        Component* c = layout.addComponentFromXml (*xml, false);
        jassert (c != nullptr);

        layout.moveComponentZOrder (layout.indexOfComponent (c), oldIndex);

        showCorrectTab();
        return c != nullptr;
    }
Ejemplo n.º 9
0
    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;
        }
Ejemplo n.º 11
0
        bool undo()
        {
            showCorrectTab();

            if (SettableTooltipClient* ttc = dynamic_cast <SettableTooltipClient*> (getComponent()))
            {
                ttc->setTooltip (oldValue);
                changed();
                return true;
            }

            return false;
        }
Ejemplo n.º 12
0
    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;
    }
Ejemplo n.º 13
0
    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;
    }
Ejemplo n.º 14
0
 bool undo()
 {
     showCorrectTab();
     layout.moveComponentZOrder (newIndex, oldIndex);
     return true;
 }
Ejemplo n.º 15
0
 bool undo()
 {
     showCorrectTab();
     routine.removeElement (routine.getElement (indexAdded), false);
     return true;
 }
Ejemplo n.º 16
0
 bool undo()
 {
     showCorrectTab();
     getElement()->setPosition (oldState, false);
     return true;
 }
Ejemplo n.º 17
0
 bool perform()
 {
     showCorrectTab();
     getElement()->setPosition (newState, false);
     return true;
 }
Ejemplo n.º 18
0
 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;
 }
Ejemplo n.º 21
0
 bool perform()
 {
     showCorrectTab();
     layout.removeComponent (getComponent(), false);
     return true;
 }
 bool undo()
 {
     showCorrectTab();
     getElement()->enableStroke (oldState, false);
     return true;
 }
Ejemplo n.º 23
0
 bool undo()
 {
     showCorrectTab();
     layout.removeComponent (layout.getComponent (indexAdded), false);
     return true;
 }
 bool undo()
 {
     showCorrectTab();
     getElement()->setStrokeFill (oldState, false);
     return true;
 }
Ejemplo n.º 25
0
 bool perform()
 {
     showCorrectTab();
     getElement()->setNonZeroWinding (newValue, false);
     return true;
 }