/*! \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
*/
/* ========================================================================= */
#include "canvasview.h"
#include "keyframeactionmanager.h"
+#include "general.h"
+
#endif
/* === U S I N G =========================================================== */
Glib::ustring ui_info =
"<ui>"
" <toolbar action='toolbar-keyframe'>"
- " <toolitem action='action-keyframe_add' />"
- " <toolitem action='action-keyframe_duplicate' />"
- " <toolitem action='action-keyframe_remove' />"
+ " <toolitem action='action-KeyframeAdd' />"
+ " <toolitem action='action-KeyframeDuplicate' />"
+ " <toolitem action='action-KeyframeRemove' />"
" <toolitem action='keyframe-properties' />"
" </toolbar>"
"</ui>"
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();