-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
/*! \file dock_keyframes.cpp
** \brief Template File
**
-** $Id: dock_keyframes.cpp,v 1.3 2005/01/13 20:23:01 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
*/
/* ========================================================================= */
using namespace std;
using namespace etl;
-using namespace sinfg;
+using namespace synfig;
using namespace studio;
/* === M A C R O S ========================================================= */
/* === M E T H O D S ======================================================= */
Dock_Keyframes::Dock_Keyframes():
- Dock_CanvasSpecific("keyframes",_("Keyframes"),Gtk::StockID("sinfg-keyframes")),
+ Dock_CanvasSpecific("keyframes",_("Keyframes"),Gtk::StockID("synfig-keyframes")),
action_group(Gtk::ActionGroup::create()),
keyframe_action_manager(new KeyframeActionManager)
{
);
add_button(
- Gtk::StockID("sinfg-duplicate"),
+ Gtk::StockID("synfig-duplicate"),
_("Duplicates the selected keyframe at the current time")
)->signal_clicked().connect(
sigc::mem_fun(
App::ui_manager()->add_ui_from_string(ui_info);
- set_toolbar(*dynamic_cast<Gtk::Toolbar*>(App::ui_manager()->get_widget("/toolbar-keyframe")));
+ set_toolbar(*dynamic_cast<Gtk::Toolbar*>(App::ui_manager()->get_widget("/toolbar-keyframe")));
}
Dock_Keyframes::~Dock_Keyframes()
if(canvas_view)
{
Gtk::Widget* tree_view(canvas_view->get_ext_widget(get_name()));
-
+
add(*tree_view);
tree_view->show();
-
+
keyframe_action_manager->set_keyframe_tree(dynamic_cast<KeyframeTree*>(canvas_view->get_ext_widget(get_name())));
keyframe_action_manager->set_canvas_interface(canvas_view->canvas_interface());
keyframe_action_manager->refresh();
else
{
clear_previous();
-
+
keyframe_action_manager->set_keyframe_tree(0);
keyframe_action_manager->set_canvas_interface(0);
keyframe_action_manager->refresh();