Beispiel #1
0
    bool isVisible(const SelectionContext &selectionContext) const
    {
        if (selectionContext.singleNodeIsSelected())
            return selectionContext.currentSingleSelectedNode().metaInfo().hasProperty("color");

        return false;
    }
bool AddTabDesignerAction::isVisible(const SelectionContext &selectionContext) const
{
    if (selectionContext.singleNodeIsSelected()) {
        ModelNode selectedModelNode = selectionContext.currentSingleSelectedNode();
        return isTabView(selectedModelNode) || isTabAndParentIsTabView(selectedModelNode);
    }

    return false;
}
Beispiel #3
0
 bool isVisible(const SelectionContext &selectionContext) const
 {
     if (selectionContext.singleNodeIsSelected())
         return modelNodeHasUrlSource(selectionContext.currentSingleSelectedNode());
     return false;
 }