- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/UIElements/Views/Qt4/QtInfoBox.cpp ¶
r2b596f r5dcb3c 57 57 58 58 setMinimumWidth(200); 59 setMinimumHeight(2 00);59 setMinimumHeight(220); 60 60 currentPage = 0; 61 61 … … 178 178 addInfo(this, "Mass", QString("%1").arg(atomRef->getMass())); 179 179 addInfo(this, "Charge", QString("%1").arg(atomRef->getCharge())); 180 addInfo(this, "Position", QString(toString(atomRef->getPosition()).c_str()));181 180 addInfo(this, "Bonds", QString("%1").arg(atomRef->getListOfBonds().size())); 181 addInfo(this, "Position x", QString(toString(atomRef->getPosition()[0]).c_str())); 182 addInfo(this, "Position y", QString(toString(atomRef->getPosition()[1]).c_str())); 183 addInfo(this, "Position z", QString(toString(atomRef->getPosition()[2]).c_str())); 182 184 } 183 185 … … 218 220 addInfo(this, "Formula", QString(mol->getFormula().toString().c_str())); 219 221 addInfo(this, "Atoms", QString("%1").arg(mol->getAtomCount())); 222 addInfo(this, "NonHydrogens", QString("%1").arg(mol->getNoNonHydrogen())); 220 223 addInfo(this, "Bonds", QString("%1").arg(mol->getBondCount())); 224 const Vector molCenter = mol->DetermineCenterOfAll(); 225 addInfo(this, "Center x", QString("%1").arg(molCenter[0])); 226 addInfo(this, "Center y", QString("%1").arg(molCenter[1])); 227 addInfo(this, "Center z", QString("%1").arg(molCenter[2])); 221 228 } 222 229
Note:
See TracChangeset
for help on using the changeset viewer.