VPTissue Reference Manual
|
Class for selecting an item by ID. More...
#include <SelectByIDWidget.h>
Signals | |
void | IDsSelected (const std::list< unsigned int > &ids, bool locked) |
Emitted when IDs have been selected. | |
Public Member Functions | |
SelectByIDWidget (QWidget *parent=nullptr) | |
void | SetMaxID (unsigned int maxID) |
Set the maximal ID and reset the text. | |
Class for selecting an item by ID.
The text box only allows valid (partial) input, checked by the following regex.
((0|[1-9]+[0-9]*)(-(0|[1-9]+[0-9]*)(:[1-9]+[0-9]*)?)?(,(0|[1-9]+[0-9]*)(-(0|[1-9]+[0-9]*)(:[1-9]+[0-9]*)?)?)*)?
Basically, it allows a combination of ranges (separated by a comma) of the form "from-to:step", for which 'to' and 'step' are optional.
Definition at line 38 of file SelectByIDWidget.h.