-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
/*! \file time.cpp
** \brief Template File
**
** $Id: time.cpp,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $
**
** \legal
-** Copyright (c) 2002 Robert B. Quattlebaum Jr.
+** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
-** This software and associated documentation
-** are CONFIDENTIAL and PROPRIETARY property of
-** the above-mentioned copyright holder.
+** This package is free software; you can redistribute it and/or
+** modify it under the terms of the GNU General Public License as
+** published by the Free Software Foundation; either version 2 of
+** the License, or (at your option) any later version.
**
-** You may not copy, print, publish, or in any
-** other way distribute this software without
-** a prior written agreement with
-** the copyright holder.
+** This package is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+** General Public License for more details.
** \endlegal
*/
/* ========================================================================= */
#endif
#ifdef __APPLE__
-#define isnan __isnan
+#define isnan __isnanf
#endif
#endif
using namespace std;
using namespace etl;
-using namespace sinfg;
+using namespace synfig;
#define tolower ::tolower
// to warn about units if the value is zero
// it is the only case where units are irrelevant.
if(amount!=0)
- sinfg::warning("Time(): No unit provided in time code, assuming SECONDS (\"%s\")",str.c_str());
+ synfig::warning("Time(): No unit provided in time code, assuming SECONDS (\"%s\")",str.c_str());
value_+=amount;
return;
}
if(fps)
value_+=amount/fps;
else
- sinfg::warning("Time(): Individual frames referenced, but frame rate is unknown");
+ synfig::warning("Time(): Individual frames referenced, but frame rate is unknown");
break;
case ':':
// try to read it in as a traditional time format
return;
}
}
- sinfg::warning("Time(): Bad time format");
+ synfig::warning("Time(): Bad time format");
break;
default:
value_+=amount;
- sinfg::warning("Time(): Unexpected character '%c' when parsing time string \"%s\"",str[pos],str.c_str());
+ synfig::warning("Time(): Unexpected character '%c' when parsing time string \"%s\"",str[pos],str.c_str());
break;
}
pos++;