void onelabGroup::rebuildSolverList() { updateGearMenu(); std::vector<std::string> names, exes, hosts; for(int i = 0; i < NUM_SOLVERS; i++){ if(opt_solver_name(i, GMSH_GET, "").size()){ names.push_back(opt_solver_name(i, GMSH_GET, "")); exes.push_back(opt_solver_executable(i, GMSH_GET, "")); hosts.push_back(opt_solver_remote_login(i, GMSH_GET, "")); } } for(unsigned int i = 0; i < NUM_SOLVERS; i++){ if(i < names.size()){ onelab::server::citer it = onelab::server::instance()->findClient(names[i]); if(it != onelab::server::instance()->lastClient()) (*it)->setIndex(i); opt_solver_name(i, GMSH_SET, names[i]); opt_solver_executable(i, GMSH_SET, exes[i]); opt_solver_remote_login(i, GMSH_SET, hosts[i]); } else{ opt_solver_name(i, GMSH_SET, ""); opt_solver_executable(i, GMSH_SET, ""); opt_solver_remote_login(i, GMSH_SET, ""); } } setButtonVisibility(); //refreshTree(true); }
//============================================================================== ScrollBar::ScrollBar (const bool vertical_, const bool buttonsAreVisible) : totalRange (0.0, 1.0), visibleRange (0.0, 0.1), singleStepSize (0.1), thumbAreaStart (0), thumbAreaSize (0), thumbStart (0), thumbSize (0), initialDelayInMillisecs (100), repeatDelayInMillisecs (50), minimumDelayInMillisecs (10), vertical (vertical_), isDraggingThumb (false), autohides (true) { setButtonVisibility (buttonsAreVisible); setRepaintsOnMouseActivity (true); setFocusContainer (true); }