wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
SelectionCapabilities.h File Reference

SelectionCapabilities struct and computeCapabilities() free function. More...

#include <QList>
#include "App/Core/Enums.h"
Include dependency graph for SelectionCapabilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SelectionCapabilities
 Computed capabilities and consensus state of the current element selection. More...

Functions

SelectionCapabilities computeCapabilities (const QList< GraphicElement * > &elements)
 Computes the SelectionCapabilities for a list of selected elements.

Detailed Description

SelectionCapabilities struct and computeCapabilities() free function.

Definition in file SelectionCapabilities.h.

Function Documentation

◆ computeCapabilities()

SelectionCapabilities computeCapabilities ( const QList< GraphicElement * > & elements)

Computes the SelectionCapabilities for a list of selected elements.

Parameters
elementsThe currently selected GraphicElements (may be empty).
Returns
A fully populated SelectionCapabilities; all flags false if elements is empty.

Definition at line 10 of file SelectionCapabilities.cpp.

References SelectionCapabilities::canChangeAppearance, SelectionCapabilities::canChangeInputSize, SelectionCapabilities::canChangeOutputSize, SelectionCapabilities::canMorph, SelectionCapabilities::elementType, SelectionCapabilities::hasAudio, SelectionCapabilities::hasAudioBox, SelectionCapabilities::hasColors, SelectionCapabilities::hasDelay, SelectionCapabilities::hasElements, SelectionCapabilities::hasFrequency, SelectionCapabilities::hasLabel, SelectionCapabilities::hasLatchedValue, SelectionCapabilities::hasOnlyInputs, SelectionCapabilities::hasSameAudio, SelectionCapabilities::hasSameColors, SelectionCapabilities::hasSameDelay, SelectionCapabilities::hasSameFrequency, SelectionCapabilities::hasSameInputSize, SelectionCapabilities::hasSameLabel, SelectionCapabilities::hasSameOutputSize, SelectionCapabilities::hasSameOutputValue, SelectionCapabilities::hasSameTrigger, SelectionCapabilities::hasSameType, SelectionCapabilities::hasSameVolume, SelectionCapabilities::hasTrigger, SelectionCapabilities::hasTruthTable, SelectionCapabilities::hasVolume, SelectionCapabilities::hasWirelessMode, SelectionCapabilities::isEmbedded, SelectionCapabilities::isFileBacked, SelectionCapabilities::maxCurrentOutputSize, SelectionCapabilities::maximumInputs, SelectionCapabilities::maximumOutputs, SelectionCapabilities::minimumInputs, SelectionCapabilities::minimumOutputs, and SelectionCapabilities::sameCheckState.