gala_clients/DIS_group/src/GROUPswApp.cxx
// paste selected Members into the current group.
paste selected Members into the current group.
paste selected Members into the current group .
vbool GROUPswApp::pasteMembers(const symbolArr groups, symbolArr& members)
{
    Initialize(GROUPswApp::pasteMembers);
  vbool hasNestedProject = checkForNestedProjects(members);
  groupHdr::nested_projects_action proj_action = groupHdr::MIRROR_HIERARCHY;
  if (hasNestedProject) {
    if (!getProjectCopyType("Add Members to Subsystem") )
       proj_action = groupHdr::ALL_NESTED_FILES;
  }
    symbolPtr groupSym;
    ForEachS(groupSym, groups) {
        groupHdrPtr group = groupHdr::sym_to_groupHdr(groupSym);
       if (group) {
           group->add_members(members, proj_action, groupHdr::DEFAULT_ACC);
       }
    }
    return(vTRUE);
}
vbool GROUPswApp :: pasteMembers ( const symbolArr groups , symbolArr & members ) { Initialize ( GROUPswApp :: pasteMembers ) ; vbool hasNestedProject = checkForNestedProjects ( members ) ; groupHdr :: nested_projects_action proj_action = groupHdr :: MIRROR_HIERARCHY ; if ( hasNestedProject ) { if ( ! getProjectCopyType ( " " ) ) proj_action = groupHdr :: ALL_NESTED_FILES ; } symbolPtr groupSym ; ForEachS ( groupSym , groups ) { groupHdrPtr group = groupHdr :: sym_to_groupHdr ( groupSym ) ; if ( group ) { group -> add_members ( members , proj_action , groupHdr :: DEFAULT_ACC ) ; } } return ( vTRUE ) ; }
paste selected Members into the current group.
paste selected Members into the current group .
// Create the array of members to paste. // This is needed because the cut will use the Clipboard. //symbolArr pasteArray(MemberClipboard); // Cut any selected Members. //cutMembers(groups, members); // See if there is a nested project in the members list. // Decide how to handle adding projects to the subsystem. // Loop through the selected groups. // Add the selected members to each group.