X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_time.cpp;h=04b898bb30afba1f9a5958d7b0befdd410bf473a;hb=f9d8a24a671b759c2be95bc10cd330f310b7dcc2;hp=634d8805daa9293acba3d6d61cf9947fc2b3161f;hpb=3a3c4bca3a17137bec5d7960560934b91ef4146e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_time.cpp b/synfig-studio/trunk/src/gtkmm/widget_time.cpp index 634d880..04b898b 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_time.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_time.cpp @@ -1,20 +1,21 @@ -/* === S I N F G =========================================================== */ +/* === S Y N F I G ========================================================= */ /*! \file widget_time.cpp ** \brief Template File ** -** $Id: widget_time.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** $Id$ ** ** \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 */ /* ========================================================================= */ @@ -39,7 +40,7 @@ using namespace std; //using namespace etl; -using namespace sinfg; +using namespace synfig; using namespace studio; /* === M A C R O S ========================================================= */ @@ -74,13 +75,13 @@ Widget_Time::refresh_text() void -Widget_Time::set_value(const sinfg::Time &data) +Widget_Time::set_value(const synfig::Time &data) { time_=data; refresh_text(); } -sinfg::Time +synfig::Time Widget_Time::get_value() const { return time_; @@ -102,7 +103,7 @@ Widget_Time::refresh_value() if(abs(newtime-time_)>=0.001) { time_=newtime; - refresh_text(); + refresh_text(); signal_value_changed()(); } } @@ -116,7 +117,7 @@ bool Widget_Time::on_event(GdkEvent* event) { const Time scroll_amount(0.25); - + switch(event->type) { case GDK_SCROLL: @@ -137,7 +138,7 @@ Widget_Time::on_event(GdkEvent* event) default: break; } - + return Gtk::Entry::on_event(event); } @@ -145,7 +146,7 @@ bool Widget_Time::on_focus_out_event(GdkEventFocus* event) { refresh_value(); - refresh_text(); + refresh_text(); return Gtk::Entry::on_focus_out_event(event); }