+
+void StdMeshersGUI_SubShapeSelectorWdg::updateButtons()
+{
+ if ( myPreviewActor ) {
+ int total = myPreviewActor->count();
+ int chunk = myPreviewActor->currentChunk();
+ int chunkSize = myPreviewActor->chunkSize();
+ int imin = chunk*chunkSize+1;
+ int imax = std::min((chunk+1)*chunkSize, total);
+ bool vis = imax > 0 && total > chunkSize;
+ myInfoLabel->setVisible( vis );
+ myPrevButton->setVisible( vis );
+ myNextButton->setVisible( vis );
+ myInfoLabel->setText( tr( "X_FROM_Y_ITEMS_SHOWN" ).arg(imin).arg(imax).arg(total) );
+ myPrevButton->setEnabled( myPreviewActor->hasPrevious() );
+ myNextButton->setEnabled( myPreviewActor->hasNext() );
+ }
+}