**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
#include "historytreestore.h"
#include <synfig/valuenode.h>
-#include "iconcontroler.h"
+#include "iconcontroller.h"
#include <synfig/valuenode_timedswap.h>
#include <gtkmm/button.h>
#include <synfigapp/action.h>
#include "instance.h"
+#include "general.h"
+
#endif
/* === U S I N G =========================================================== */
HistoryTreeStore::~HistoryTreeStore()
{
- synfig::info("HistoryTreeStore::~HistoryTreeStore(): Deleted");
+ if (getenv("SYNFIG_DEBUG_DESTRUCTORS"))
+ synfig::info("HistoryTreeStore::~HistoryTreeStore(): Deleted");
}
Glib::RefPtr<HistoryTreeStore>
{
insert_action(*(append()),*iter,true,false,true);
}
+
+ signal_undo_tree_changed()();
}
void
-HistoryTreeStore::insert_action(Gtk::TreeRow row,etl::handle<synfigapp::Action::Undoable> action, bool is_active, bool is_undo, bool is_redo)
+HistoryTreeStore::insert_action(Gtk::TreeRow row,etl::handle<synfigapp::Action::Undoable> action, bool /*is_active*/, bool is_undo, bool is_redo)
{
assert(action);
row=*insert(iter);
insert_action(row,action);
+
+ signal_undo_tree_changed()();
}
void
}
}
}
+
+bool
+HistoryTreeStore::search_func(const Glib::RefPtr<Gtk::TreeModel>&,int,const Glib::ustring& x,const Gtk::TreeModel::iterator& iter)
+{
+ const Model model;
+
+ Glib::ustring substr(x.uppercase());
+ Glib::ustring name((*iter)[model.name]);
+ name=name.uppercase();
+
+ return name.find(substr)==Glib::ustring::npos;
+}