-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
/*! \file widget_time.cpp
** \brief Template File
**
using namespace std;
//using namespace etl;
-using namespace sinfg;
+using namespace synfig;
using namespace studio;
/* === M A C R O S ========================================================= */
int
Widget_Distance::on_input(double* new_value)
{
- distance_=sinfg::String(get_text());
+ distance_=synfig::String(get_text());
*new_value=distance_.get();
return 1;
}
try{
distance_=get_adjustment()->get_value();
set_text(distance_.get_string(get_digits()));
- } catch (...) { /* sinfg::error("Widget_Distance::on_output(): Caught something..."); */ }
+ } catch (...) { /* synfig::error("Widget_Distance::on_output(): Caught something..."); */ }
return true;
}
void
-Widget_Distance::set_value(const sinfg::Distance &data)
+Widget_Distance::set_value(const synfig::Distance &data)
{
distance_=data;
get_adjustment()->set_value(distance_.get());
}
-sinfg::Distance
+synfig::Distance
Widget_Distance::get_value() const
{
distance_=get_adjustment()->get_value();