Added "--with-userdir" to configure script to change the default user settings directory
[synfig.git] / synfig-studio / trunk / src / gtkmm / dock_history.cpp
index dde2718..af43e04 100644 (file)
@@ -1,20 +1,21 @@
-/* === S I N F G =========================================================== */
+/* === S Y N F I G ========================================================= */
 /*!    \file dialog_history.cpp
 **     \brief Template File
 **
 **     $Id: dock_history.cpp,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
 **
 **     \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 @@
 #include <sigc++/signal.h>
 #include <sigc++/hide.h>
 #include <sigc++/slot.h>
-#include <sinfgapp/action.h>
+#include <synfigapp/action.h>
 #include "historytreestore.h"
 
 #endif
@@ -48,7 +49,7 @@
 
 using namespace std;
 using namespace etl;
-using namespace sinfg;
+using namespace synfig;
 using namespace studio;
 
 /* === M A C R O S ========================================================= */
@@ -70,7 +71,7 @@ Dock_History::Dock_History():
        
        action_group->add(Gtk::Action::create(
                "clear-undo",
-               Gtk::StockID("sinfg-clear_undo"),
+               Gtk::StockID("synfig-clear_undo"),
                _("Clear the UNDO Stack"),
                _("Clear the UNDO Stack")
        ),
@@ -81,7 +82,7 @@ Dock_History::Dock_History():
        );
        action_group->add(Gtk::Action::create(
                "clear-redo",
-               Gtk::StockID("sinfg-clear_redo"),
+               Gtk::StockID("synfig-clear_redo"),
                _("Clear the REDO Stack"),
                _("Clear the REDO Stack")
        ),
@@ -130,7 +131,7 @@ Dock_History::Dock_History():
        
        /*
        add_button(
-               Gtk::StockID("sinfg-clear_undo"),
+               Gtk::StockID("synfig-clear_undo"),
                _("Clear the UNDO Stack")
        )->signal_clicked().connect(
                sigc::mem_fun(
@@ -139,7 +140,7 @@ Dock_History::Dock_History():
                )
        );
        add_button(
-               Gtk::StockID("sinfg-clear_redo"),
+               Gtk::StockID("synfig-clear_redo"),
                _("Clear the REDO Stack")
        )->signal_clicked().connect(
                sigc::mem_fun(
@@ -360,7 +361,7 @@ Dock_History::on_action_event(GdkEvent *event)
                        //signal_user_click()(event->button.button,row,(ColumnID)column->get_sort_column_id());
                        if((ColumnID)column->get_sort_column_id()==COLUMNID_JUMP)
                        {
-                               etl::handle<sinfgapp::Action::Undoable> action(row[model.action]);
+                               etl::handle<synfigapp::Action::Undoable> action(row[model.action]);
                                try{
                                if((bool)row[model.is_undo])
                                {
@@ -399,7 +400,7 @@ Dock_History::on_action_toggle(const Glib::ustring& path_string)
        
        const Gtk::TreeRow row = *(selected_instance->history_tree_store()->get_iter(path));
 
-       handle<sinfgapp::Action::Undoable> action=row[history_tree_model.action];
+       handle<synfigapp::Action::Undoable> action=row[history_tree_model.action];
        
-       selected_instance->sinfgapp::Instance::set_action_status(action,!action->is_active());
+       selected_instance->synfigapp::Instance::set_action_status(action,!action->is_active());
 }