std::vector<std::string>::iterator namesIt = paramNames.begin();
std::vector<std::string>::iterator valuesIt = paramValues.begin();
- if ( *entIt == "GaussViewer" ) {
+ if ( *entIt == "GaussViewer" )
+ {
// parameter names are view window's captions, values - visual parameters.
- for ( ; namesIt != paramNames.end(); ++namesIt, ++valuesIt ) {
+ for ( ; namesIt != paramNames.end(); ++namesIt, ++valuesIt )
+ {
SUIT_ViewManager* vman = onCreateViewManager();
SUIT_ViewWindow* vwin = vman->getActiveView();
+ vwin->show();
vwin->setCaption( (*namesIt).c_str() );
// wait untill the window is really shown. This step fixes MANY bugs..
- while ( !vwin->isVisible() )
+ while ( !vman->isVisible() )
qApp->processEvents();
vwin->setVisualParameters( (*valuesIt).c_str() );
}
continue; // skip to next entry
- }
+ }
// entry is a normal entry - it should be "decoded" (setting base adress of component)
QString entry( ip->decodeEntry( *entIt ).c_str() );