1 /****************************************************************************
2 ** ui.h extension file, included from the uic-generated form implementation.
4 ** If you wish to add, delete or rename functions or slots use
5 ** Qt Designer which will update this file, preserving your code. Create an
6 ** init() function in place of a constructor, and a destroy() function in
7 ** place of a destructor.
8 *****************************************************************************/
10 void QG_SnapDistOptions::destroy()
12 RS_SETTINGS->beginGroup("/Snap");
13 RS_SETTINGS->writeEntry("/Distance", leDist->text());
14 RS_SETTINGS->endGroup();
17 void QG_SnapDistOptions::setDist(double * d)
21 RS_SETTINGS->beginGroup("/Snap");
22 QString r = RS_SETTINGS->readEntry("/Distance", "1.0");
23 RS_SETTINGS->endGroup();
28 void QG_SnapDistOptions::updateDist(const QString & d)
31 *dist = RS_Math::eval(d, 1.0);