void CSysController::onCheckUpdates() { misFREEBSDCheck= false; mCurrCheckState = eUndefined; mvUpdates.clear(); mFilesLocallyModifyed.clear(); mFilesToRemove.clear(); mFilesToUpdate.clear(); mCurrentFbsdDescription = tr("Base system update"); updateDescriptions(); }
REIXSSampleMoveActionInfo::REIXSSampleMoveActionInfo(int samplePlateId, int sampleIndex, QObject* parent) : AMActionInfo("REIXS Sample Move", "REIXSSampleMove", ":/32x32/gnome-display-properties.png", parent) { x_ = 0; y_ = 0; z_ = 0; theta_ = 45; samplePlateId_ = samplePlateId; sampleIndex_ = sampleIndex; updateDescriptions(); }
REIXSSampleMoveActionInfo::REIXSSampleMoveActionInfo(double x, double y, double z, double theta, QObject* parent) : AMActionInfo("REIXS Sample Move", "REIXS Sample Move", ":/32x32/gnome-display-properties.png", parent) { x_ = x; y_ = y; z_ = z; theta_ = theta; samplePlateId_ = 0; sampleIndex_ = 0; updateDescriptions(); }
REIXSSampleMoveActionInfo::REIXSSampleMoveActionInfo(QObject *parent) : AMActionInfo("REIXS Sample Move", "REIXS Sample Move", ":/32x32/gnome-display-properties.png", parent) { // safe nominal measurement positions x_ = 0; y_ = 0; z_ = 0; theta_ = 45; samplePlateId_ = 0; sampleIndex_ = 0; updateDescriptions(); }
QString CSysController::fbsdUpdateDescription(QString line) { // Example line: "The following files will be updated as part of updating to 10.0-RELEASE-p3:" line = line.trimmed(); QString release = line.right(line.length() - line.lastIndexOf(" ")); release = release.left(release.lastIndexOf("-")).trimmed(); QString patch = line.right(line.length() - line.lastIndexOf("-")).replace("-p","").replace(':',""); int patch_num = patch.toInt(); QVector<SFbsdUpdatesDescription> descrs = updateDescriptions(release); QString ret = tr("Base system update"); for(int i=0; i<descrs.size(); i++) { if (descrs[i].mUpdateNo == patch_num) { ret = descrs[i].mDescription; break; } } return ret; }
REIXSSampleMoveActionInfo::REIXSSampleMoveActionInfo(const AMControlInfoList &targetPosition, QObject *parent) : AMActionInfo("REIXS Sample Move", "REIXS Sample Move", ":/32x32/gnome-display-properties.png", parent) { x_ = 0; y_ = 0; z_ = 0; theta_ = 45; samplePlateId_ = 0; sampleIndex_ = 0; int index; if((index = targetPosition.indexOf("sampleX")) != -1) x_ = targetPosition.at(index).value(); if((index = targetPosition.indexOf("sampleY")) != -1) y_ = targetPosition.at(index).value(); if((index = targetPosition.indexOf("sampleZ")) != -1) z_ = targetPosition.at(index).value(); if((index = targetPosition.indexOf("sampleTheta")) != -1) theta_ = targetPosition.at(index).value(); updateDescriptions(); }