-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
/*! \file widget_timeslider.cpp
** \brief Time Slider Widget Implementation File
**
** \legal
** Copyright (c) 2004 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
*/
/* ========================================================================= */
using namespace std;
using namespace etl;
-using namespace sinfg;
+using namespace synfig;
using studio::Widget_Timeslider;
/* === P R O C E D U R E S ================================================= */
-Gdk::Color get_interp_color(sinfg::Interpolation x)
+Gdk::Color get_interp_color(synfig::Interpolation x)
{
switch(x)
{
studio::render_time_point_to_window(
const Glib::RefPtr<Gdk::Drawable>& window,
const Gdk::Rectangle& area,
- const sinfg::TimePoint &tp,
+ const synfig::TimePoint &tp,
bool selected
)
{
Glib::RefPtr<Gdk::GC> gc = Gdk::GC::create(window);
if(!gc) return false;
- //sinfg::info("Drawing Timeslider");
+ //synfig::info("Drawing Timeslider");
//clear and update to current values
//invalidated = false;
//update_times();
if(end-start < EPSILON) return true;
- //sinfg::info("Drawing Lines");
+ //synfig::info("Drawing Lines");
//draw all the time stuff
double dtdp = (end - start)/get_width();
scale = *after;
}
- //sinfg::info("Range found: (l %.2lf,u %.2lf - m %.2lf) -> %.2lf",lowerrange,upperrange,midrange,scale);
+ //synfig::info("Range found: (l %.2lf,u %.2lf - m %.2lf) -> %.2lf",lowerrange,upperrange,midrange,scale);
//search around this area to get the right one
//sdindex = (int)floor(t + 0.5); //get how far through the range it is...
sdindex = round_to_int(t); //get how far through the range it is...
- //sinfg::info("Extracted fr %.2lf -> %d", t, sdindex);
+ //synfig::info("Extracted fr %.2lf -> %d", t, sdindex);
}
- //sinfg::info("Initial values: %.4lf t, %.1lf pixels, %d i", time,pixel,sdindex);
+ //synfig::info("Initial values: %.4lf t, %.1lf pixels, %d i", time,pixel,sdindex);
//loop to draw
const int heightbig = 12;
}
}
- //sinfg::info("Scrolling timerange to (%.4f,%.4f)",start,end);
+ //synfig::info("Scrolling timerange to (%.4f,%.4f)",start,end);
adj_timescale->set_lower(start);
adj_timescale->set_upper(end);
end = focuspoint + (end-focuspoint)*zoominfactor;
start = focuspoint + (start-focuspoint)*zoominfactor;
- //sinfg::info("Zooming in timerange to (%.4f,%.4f)",start,end);
+ //synfig::info("Zooming in timerange to (%.4f,%.4f)",start,end);
if(adj_bounds)
{
if(start < adj_bounds->get_lower())
end = focuspoint + (end-focuspoint)*zoomoutfactor;
start = focuspoint + (start-focuspoint)*zoomoutfactor;
- //sinfg::info("Zooming out timerange to (%.4f,%.4f)",start,end);
+ //synfig::info("Zooming out timerange to (%.4f,%.4f)",start,end);
if(adj_bounds)
{
if(start < adj_bounds->get_lower())
t = floor(t*fps + 0.5)/fps;
- /*sinfg::info("Clicking time from %.3lf to %.3lf [(%.2lf,%.2lf) %.2lf / %.2lf ... %.2lf",
+ /*synfig::info("Clicking time from %.3lf to %.3lf [(%.2lf,%.2lf) %.2lf / %.2lf ... %.2lf",
current, vt, start, end, event->x, w, fps);*/
if(t != current)