Remove .gitignore do nothing is ignored.
[synfig.git] / synfig-studio / trunk / src / gtkmm / dock_keyframes.cpp
index 2733c04..a77c0f5 100644 (file)
@@ -1,20 +1,21 @@
-/* === 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
 */
 /* ========================================================================= */
 #include "canvasview.h"
 #include "keyframeactionmanager.h"
 
+#include "general.h"
+
 #endif
 
 /* === U S I N G =========================================================== */
 
 using namespace std;
 using namespace etl;
-using namespace sinfg;
+using namespace synfig;
 using namespace studio;
 
 /* === M A C R O S ========================================================= */
@@ -60,7 +63,7 @@ using namespace studio;
 /* === 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)
 {
@@ -79,7 +82,7 @@ Dock_Keyframes::Dock_Keyframes():
        );
 
        add_button(
-               Gtk::StockID("sinfg-duplicate"),
+               Gtk::StockID("synfig-duplicate"),
                _("Duplicates the selected keyframe at the current time")
        )->signal_clicked().connect(
                sigc::mem_fun(
@@ -101,9 +104,9 @@ Dock_Keyframes::Dock_Keyframes():
     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>"
@@ -111,7 +114,7 @@ Dock_Keyframes::Dock_Keyframes():
 
        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()
@@ -168,10 +171,10 @@ Dock_Keyframes::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_v
        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();
@@ -179,7 +182,7 @@ Dock_Keyframes::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_v
        else
        {
                clear_previous();
-               
+
                keyframe_action_manager->set_keyframe_tree(0);
                keyframe_action_manager->set_canvas_interface(0);
                keyframe_action_manager->refresh();