コード例 #1
0
ファイル: syscontroller.cpp プロジェクト: DJHartley/pcbsd
void CSysController::onCheckUpdates()
{
    misFREEBSDCheck= false;
    mCurrCheckState = eUndefined;
    mvUpdates.clear();
    mFilesLocallyModifyed.clear();
    mFilesToRemove.clear();
    mFilesToUpdate.clear();
    mCurrentFbsdDescription = tr("Base system update");
    updateDescriptions();
}
コード例 #2
0
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();
}
コード例 #3
0
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();
}
コード例 #4
0
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();
}
コード例 #5
0
ファイル: syscontroller.cpp プロジェクト: DJHartley/pcbsd
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;
}
コード例 #6
0
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();
}