{
}
+bool VisuGUI_Slider::checkHolderList()
+{
+ THolderList aHolderList;
+ THolderList::const_iterator anIter = myHolderList.begin();
+ THolderList::const_iterator anIterEnd = myHolderList.end();
+ for(; anIter != anIterEnd; anIter++){
+ VISU::ColoredPrs3dHolder_var aHolder = *anIter;
+ if(!aHolder->_non_existent())
+ aHolderList.push_back(aHolder);
+ }
+ myHolderList.swap(aHolderList);
+ return myHolderList.empty();
+}
+
void VisuGUI_Slider::enableControls( bool on )
{
widget()->setEnabled( on );
if( on )
{
- if( myHolderList.empty() )
+ if( checkHolderList() )
return;
myTimeStampStrings->clear();
void VisuGUI_Slider::updateMemoryState()
{
- if( myHolderList.empty() )
+ if( checkHolderList() )
return;
VISU::ColoredPrs3dHolder_var aHolder = myHolderList.front();
}
}
- enableControls( !myHolderList.empty() );
+ enableControls( !checkHolderList() );
updateMemoryState();
}
void VisuGUI_Slider::onValueChanged( int value )
{
- if( myHolderList.empty() )
+ if( checkHolderList() ){
+ enableControls( false );
return;
+ }
VISU::ColoredPrs3dHolder_var aHolder = myHolderList.front();