VPTissue Reference Manual
SimPT_Editor::SelectByIDWidget Class Reference

Class for selecting an item by ID. More...

#include <SelectByIDWidget.h>

Inheritance diagram for SimPT_Editor::SelectByIDWidget:
Inheritance graph
Collaboration diagram for SimPT_Editor::SelectByIDWidget:
Collaboration graph

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.
 

Detailed Description

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.


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