Web Analytics Made Easy - Statcounter
Skip to content

Class SBGWidgetNodeIndexerSelector#

ClassList > SBGWidgetNodeIndexerSelector

More...

  • #include <SBGWidgetNodeIndexerSelector.hpp>

Inherits the following classes: QWidget

Public Slots#

Type Name
slot void onClear
slot void onSelect
slot void onSet

Public Signals#

Type Name
signal void selectionChanged

Public Functions#

Type Name
SBGWidgetNodeIndexerSelector (QWidget * parent=nullptr)
Constructs a selector widget.
bool empty () const
Returns whether the selection contains at least one created node.
QString getLabel () const
Returns the label shown in the selector.
SBPointerIndexer< SBNode > & getSelection ()
Returns the selection.
const SBPointerIndexer< SBNode > & getSelection () const
Returns the selection.
void setLabel (const QString & label)
Sets the label shown in the selector.
virtual ~SBGWidgetNodeIndexerSelector ()
Destructs the selector widget.

Detailed Description#

The SBGWidgetNodeIndexerSelector class is a convenience widget for specifying a selection of nodes - it contains a label and push buttons to set the selection of nodes, to select them in the document, and clear the selection.

Short name: SBNodeIndexerSelector

Public Slots Documentation#

slot onClear#

void onClear;

slot onSelect#

void onSelect;

slot onSet#

void onSet;

Public Signals Documentation#

signal selectionChanged#

void selectionChanged;

Public Functions Documentation#

function SBGWidgetNodeIndexerSelector#

Constructs a selector widget.

SBGWidgetNodeIndexerSelector::SBGWidgetNodeIndexerSelector (
    QWidget * parent=nullptr
) 


function empty#

Returns whether the selection contains at least one created node.

bool SBGWidgetNodeIndexerSelector::empty () const


function getLabel#

Returns the label shown in the selector.

QString SBGWidgetNodeIndexerSelector::getLabel () const


function getSelection [1/2]#

Returns the selection.

SBPointerIndexer< SBNode > & SBGWidgetNodeIndexerSelector::getSelection () 


function getSelection [2/2]#

Returns the selection.

const SBPointerIndexer< SBNode > & SBGWidgetNodeIndexerSelector::getSelection () const


function setLabel#

Sets the label shown in the selector.

void SBGWidgetNodeIndexerSelector::setLabel (
    const QString & label
) 


function ~SBGWidgetNodeIndexerSelector#

Destructs the selector widget.

virtual SBGWidgetNodeIndexerSelector::~SBGWidgetNodeIndexerSelector ()