Dans l'editeur d'elements, les changements d'orientations sont desormais annulables

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@121 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-09-10 22:11:47 +00:00
parent a2a65b78a8
commit 55c79617e1
5 changed files with 83 additions and 2 deletions

View File

@@ -131,6 +131,20 @@ const OrientationSet OrientationSet::operator--() {
return(*this);
}
bool OrientationSet::operator==(const OrientationSet &os) const {
if (north_ori != os.north_ori) return(false);
if (east_ori != os.east_ori) return(false);
if (south_ori != os.south_ori) return(false);
if (west_ori != os.west_ori) return(false);
if (default_ori != os.default_ori) return(false);
if (current_ori != os.current_ori) return(false);
return(true);
}
bool OrientationSet::operator!=(const OrientationSet &os) const {
return(!(this -> operator==(os)));
}
bool OrientationSet::fromString(const QString &str) {
QRegExp osv("^([dyn])([dyn])([dyn])([dyn])$"); // osv : Orientation String Validator
if (osv.indexIn(str) == -1) return(false);