qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
Public Member Functions | Static Public Member Functions | List of all members
ccItemSelectionDlg Class Reference

Dialog to select one or multiple items. More...

#include <ccItemSelectionDlg.h>

Inheritance diagram for ccItemSelectionDlg:
Inheritance graph
[legend]
Collaboration diagram for ccItemSelectionDlg:
Collaboration graph
[legend]

Public Member Functions

 ccItemSelectionDlg (bool multiSelectionEnabled, QWidget *parent=nullptr, QString itemName="entities", QString label=QString())
 Default constructor.
 
void setItems (const QStringList &items, int defaultSelectedIndex=0)
 Sets the list of items.
 
int getSelectedIndex () const
 Returns selected index (unique selection mode)
 
void getSelectedIndexes (std::vector< int > &indexes) const
 Returns selected indexes (multi-selection mode)
 

Static Public Member Functions

static int SelectEntity (const ccHObject::Container &entities, int defaultSelectedIndex=0, QWidget *parent=nullptr, QString label=QString())
 Static shortcut: unique selection mode.
 
static bool SelectEntities (const ccHObject::Container &entities, std::vector< int > &indexes, QWidget *parent=nullptr, QString label=QString())
 Static shortcut: multi-selection mode.
 

Detailed Description

Dialog to select one or multiple items.


The documentation for this class was generated from the following files: