00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #include "DlgValidatorDegreesMinutesSeconds.h" 00008 #include "FormatDegreesMinutesSecondsBase.h" 00009 #include "Logger.h" 00010 00011 DlgValidatorDegreesMinutesSeconds::DlgValidatorDegreesMinutesSeconds(CoordScale coordScale, 00012 QObject *parent) : 00013 DlgValidatorAbstract(parent), 00014 m_coordScale (coordScale) 00015 { 00016 LOG4CPP_INFO_S ((*mainCat)) << "DlgValidatorDegreesMinutesSeconds::DlgValidatorDegreesMinutesSeconds"; 00017 } 00018 00019 QValidator::State DlgValidatorDegreesMinutesSeconds::validate (QString &input, 00020 int & /* pos */) const 00021 { 00022 FormatDegreesMinutesSecondsBase formatDegreesMinutesSeconds; 00023 00024 double value; 00025 return formatDegreesMinutesSeconds.parseInput (input, 00026 value); 00027 }