model_server/ui_qac/src/QualityCockpitUI.cxx
////////////////////////////////////////////////////////////////////////////////
//
// UI's API (higher level that Access, lower than Callbacks)
//
////////////////////////////////////////////////////////////////////////////////
UI's API (higher level that Access, lower than Callbacks)
UI ' s API ( higher level that Access lower than Callbacks )
int QualityCockpitUI::runQueries(run_scope scope)
{
  Initialize(QualityCockpitUI::runSelected(void));
  int retval = -1;
  genString query;
  switch ( scope ) {
  case ALL:
    query = ROOT_FOLDER;
    break;
  case SELECTED:
    query = getSelectedQuery();
    break;
  }
  if ( query.not_null() && query != "" )
    if ( enabled(query) )
      if ( execQueryTree(query) == 0 ) {
	updateFields();
	retval = 0;
      }
  return retval;
}
int QualityCockpitUI :: runQueries ( run_scope scope ) { Initialize ( QualityCockpitUI :: runSelected ( void ) ) ; int retval = -1 ; genString query ; switch ( scope ) { case ALL : query = ROOT_FOLDER ; break ; case SELECTED : query = getSelectedQuery ( ) ; break ; } if ( query . not_null ( ) && query != " " ) if ( enabled ( query ) ) if ( execQueryTree ( query ) == 0 ) { updateFields ( ) ; retval = 0 ; } return retval ; }
UI's API (higher level that Access, lower than Callbacks)
UI ' s API ( higher level that Access lower than Callbacks )