wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
SelectionCapabilities.cpp File Reference
Include dependency graph for SelectionCapabilities.cpp:

Go to the source code of this file.

Functions

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

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.